|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.compounder.OMCompounder
An OpenMath objects compounder.
The elements to compound are identified by name. These elements are compounded
thanks to a "pattern" OpenMath object (the source) where the different elements
are identified by means of variables whose values are the identifiers of the elements.
For example, lets assume the source is the following OpenMath object :
The compounded OpenMath object is :
| Constructor Summary | |
OMCompounder()
|
|
| Method Summary | |
void |
addElement(java.lang.String id,
OpenMathizable elem)
Adds an element to compound. |
void |
compound()
Builds the compounded OpenMath object. |
java.lang.String |
getCompounded()
Gets the compounded OpenMath object. |
java.lang.String |
getSource()
Returns thesource OpenMath object. |
void |
removeElement(java.lang.String id)
Removes the element with the specified identifier. |
void |
setSource(java.lang.String source)
Sets the source OpenMath object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OMCompounder()
| Method Detail |
public void addElement(java.lang.String id,
OpenMathizable elem)
id - the identifier of the element.elem - the element.public void removeElement(java.lang.String id)
id - the identifier of the element.public java.lang.String getCompounded()
public void compound()
public void setSource(java.lang.String source)
source - the source.public java.lang.String getSource()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||