org.rubato.logeo.reform
Class Reformer

java.lang.Object
  extended by org.rubato.logeo.reform.Reformer

public abstract class Reformer
extends java.lang.Object

A reformer transforms a denotator of a given form to a new denotator of another given form. Instances are not created directly, but by using the static make method. For each pair of forms, the corresponding reformer is cached.

Author:
Gérard Milmeister

Method Summary
static Reformer make(Form from, Form to)
          Creates a reformer that converts a denotator of form from to a denotator of form to.
abstract  Denotator reform(Denotator d)
          Creates a new denotator from d with the configured form.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reform

public abstract Denotator reform(Denotator d)
                          throws RubatoException
Creates a new denotator from d with the configured form.

Throws:
RubatoException - if d does not have the configured form

make

public static Reformer make(Form from,
                            Form to)
Creates a reformer that converts a denotator of form from to a denotator of form to.

Returns:
null if a reformer for the specified forms could not be created