|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajax.catalog.LibCatalog
LibCatalog stores functions and algorithms
Constructor Summary | |
LibCatalog()
Constructor for the catalog. |
Method Summary | |
void |
addAlgorithm(Algorithm algo)
This method add an algorithm to the catalog. verifies if there is already one defined with the same name if there is, throws an exception. |
void |
addComposedType(ComposedType composedType)
This method adds a composed type to the catalog. verifies if there is already one defined with the same name if there is, throws an exception. |
void |
addConstantDeclaration(ConstantDeclaration constantDeclaration)
This method adds a constant to the catalog. verifies if there is already one defined with the same name if there is, throws an exception. |
void |
addFunction(Function function)
This method adds a function to the catalog. verifies if there is already one defined with the same name if there is, throws an exception. |
boolean |
exists(java.lang.String objname)
Checks if a given object exists in the catalog |
Algorithm |
getAlgorithm(java.lang.String algoName)
Given an algorithm name, this method looks for the corresponding algorithm in the catalog and returns the corresponding algorithm object. if not found it returns null. |
ComposedType |
getComposedType(java.lang.String composedTypeName)
Given a composed type name, this method looks for the corresponding composed type in the catalog and returns the corresponding composed type object. |
java.util.Enumeration |
getComposedTypes()
Returns an enumeration of functions. |
ConstantDeclaration |
getConstantDeclaration(java.lang.String constantName)
Given a constant name, this method looks for the corresponding constant in the catalog and returns it. |
Function |
getFunction(java.lang.String functionName)
Given a function name, this method looks for the corresponding function in the catalog and returns the corresponding function object. if not found it returns null. |
java.util.Enumeration |
getFunctions()
Returns an enumeration of functions. |
void |
removeAlgorithm(java.lang.String algoName)
Removes an algorithm from the catalog. |
void |
removeFunction(java.lang.String functionName)
Removes a function from the catalog. |
java.lang.String |
toString()
Converts the transformation into a human read-able object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LibCatalog()
Method Detail |
public void addComposedType(ComposedType composedType) throws CatalogException
public ComposedType getComposedType(java.lang.String composedTypeName)
public java.util.Enumeration getComposedTypes()
public void addConstantDeclaration(ConstantDeclaration constantDeclaration) throws CatalogException
public ConstantDeclaration getConstantDeclaration(java.lang.String constantName)
public void addFunction(Function function) throws CatalogException
public void removeFunction(java.lang.String functionName)
public Function getFunction(java.lang.String functionName)
public java.util.Enumeration getFunctions()
public void addAlgorithm(Algorithm algo) throws CatalogException
the
- algorithm to add.public void removeAlgorithm(java.lang.String algoName)
algoName
- is the algorithm name.public Algorithm getAlgorithm(java.lang.String algoName)
public boolean exists(java.lang.String objname)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |