Class OMApplication
java.lang.Object
org.episteme.core.mathematics.loaders.openmath.OMObject
org.episteme.core.mathematics.loaders.openmath.OMApplication
- All Implemented Interfaces:
Serializable, Cloneable
Models an OpenMath application object.
- Version:
- $Revision: 1.2 $
- Author:
- Manfred N. Riem (mriem@manorrock.org)
- See Also:
-
Field Summary
FieldsFields inherited from class OMObject
attributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(OMObject object) clone()This will perform a shallow copy of the object.copy()Creates a copy of the OMObject.getElementAt(int index) intgetType()Gets the type.voidinsertElementAt(OMObject object, int index) booleanisAtom()Is this an atom.booleanIs this a composite object.booleanIs this the same object.booleanisValid()Is this a valid object.voidbooleanremoveElement(OMObject object) voidremoveElementAt(int index) voidsetElementAt(OMObject object, int index) voidsetElements(Vector<OMObject> newElements) toString()Returns a string representation of the object.Methods inherited from class OMObject
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
-
Field Details
-
elements
-
-
Constructor Details
-
OMApplication
public OMApplication()Constructor.
-
-
Method Details
-
getType
-
toString
Returns a string representation of the object.
Note: this is quite similar to the OpenMath XML-encoding, but it is not complete. It returns the OpenMath object without the outer OMOBJ element. -
clone
-
copy
-
isComposite
public boolean isComposite()Description copied from class:OMObjectIs this a composite object.- Specified by:
isCompositein classOMObject- Returns:
- true if it is composite, false if it is not.
-
isAtom
-
getLength
public int getLength() -
getElements
-
setElements
-
getElementAt
-
setElementAt
-
insertElementAt
-
removeElementAt
public void removeElementAt(int index) -
addElement
-
removeElement
-
removeAllElements
public void removeAllElements() -
firstElement
-
lastElement
-
isSame
-
isValid
-
replace
-