All Packages Class Hierarchy This Package Previous Next Index
Interface aioli.vtp.Formalism
- public interface Formalism
- extends Serializable
Defines the notion of formalism .
A formalism contains two kinds of objects:
-
beginOperator()
- Returns An OperatorIterator positioned on the first element.
-
beginPhylum()
- Returns An PhylumIterator positioned on the first element.
-
checkOperator(String)
-
Checks if an operator belongs to the formalism.
-
checkPhylum(String)
-
Checks if a phylum belongs to the formalism.
-
genDTD(PrintWriter)
- Returns the DTD version of the formalism
-
genJava(PrintWriter)
- Returns the java version of the formalism
-
insert(Operator)
-
Adds an operator to a formalism.
-
insert(Phylum)
-
Adds a phylum to a formalism.
-
insertCheck(Operator)
-
Adds am operator to a formalism.
-
insertCheck(Phylum)
-
Adds a phylum to a formalism.
-
name()
- Returns the name of the formalism
-
operator(String)
-
Gets an operator from the formalism by its name.
-
phylum(String)
-
Gets a phylum from the formalism by its name.
-
toString()
- Returns the Metal version of the formalism
insertCheck
public abstract boolean insertCheck(Operator op)
- Adds am operator to a formalism.
First checks if the operator is yet in the formalism.
- Parameters:
- op - The operator to be added.
- Returns:
- true if op is inserted, false if op is yet in the formalism.
insert
public abstract void insert(Operator op)
- Adds an operator to a formalism.
- Parameters:
- op - The operator to be added.
insertCheck
public abstract boolean insertCheck(Phylum ph)
- Adds a phylum to a formalism.
First checks if the phylum is yet in the formalism.
- Parameters:
- ph - The phylum to be added.
- Returns:
- true if ph is inserted, false if ph is yet in the formalism.
insert
public abstract void insert(Phylum ph)
- Adds a phylum to a formalism.
- Parameters:
- ph - The phylum to be added.
name
public abstract String name()
- Returns the name of the formalism
toString
public abstract String toString()
- Returns the Metal version of the formalism
- Overrides:
- toString in class Object
operator
public abstract Operator operator(String name)
- Gets an operator from the formalism by its name.
Triggers an error if the operator doesn't exist.
- Parameters:
- name - The name of the operator.
- Returns:
- The operator if it exists otherwise null.
checkOperator
public abstract Operator checkOperator(String name)
- Checks if an operator belongs to the formalism.
- Parameters:
- name - The name of the operator.
- Returns:
- The operator or null
phylum
public abstract Phylum phylum(String name)
- Gets a phylum from the formalism by its name.
Triggers an error if the phylum doesn't exist.
- Parameters:
- name - The name of the phylum.
- Returns:
- The phylum if it exists otherwise null.
checkPhylum
public abstract Phylum checkPhylum(String name)
- Checks if a phylum belongs to the formalism.
- Parameters:
- name - is the name of the phylum.
- Returns:
- The phylum if it exists otherwise null.
beginOperator
public abstract OperatorIterator beginOperator()
- Returns An OperatorIterator positioned on the first element.
beginPhylum
public abstract PhylumIterator beginPhylum()
- Returns An PhylumIterator positioned on the first element.
genJava
public abstract void genJava(PrintWriter ps)
- Returns the java version of the formalism
genDTD
public abstract void genDTD(PrintWriter ps)
- Returns the DTD version of the formalism
All Packages Class Hierarchy This Package Previous Next Index