Class OMSymbol
java.lang.Object
org.episteme.core.mathematics.loaders.openmath.OMObject
org.episteme.core.mathematics.loaders.openmath.OMSymbol
- All Implemented Interfaces:
Serializable, Cloneable
Models an OpenMath symbol.
- Version:
- $Revision: 1.3 $
- Author:
- Manfred N. Riem (mriem@manorrock.org)
- See Also:
-
Field Summary
Fields inherited from class OMObject
attributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the object (shallow copy).copy()Copies the object (full copy).getCd()Gets the CD for this OpenMath symbol.getName()Gets the name for this OpenMath symbol.getType()Gets the type.booleanisAtom()Is this an atom object.booleanIs this a composite object.booleanDetermines if this is the same object.booleanisValid()Determines if this object is valid.voidSets the CD for this OpenMath symbol.voidSets the name for this OpenMath symbol.toString()Returns a string representation of the object.Methods inherited from class OMObject
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
-
Constructor Details
-
OMSymbol
public OMSymbol()Constructor. -
OMSymbol
-
-
Method Details
-
getCd
Gets the CD for this OpenMath symbol.- Returns:
- the CD of the symbol, or null if not set.
-
setCD
Sets the CD for this OpenMath symbol.- Parameters:
cd- the CD of the symbol.
-
getName
Gets the name for this OpenMath symbol.- Returns:
- the name of the symbol, or null if not set.
-
setName
Sets the name for this OpenMath symbol.- Parameters:
name- the name of the symbol.
-
getType
-
isAtom
-
isComposite
public boolean isComposite()Is this a composite object.- Specified by:
isCompositein classOMObject- Returns:
- true if this is a composite object, false if it is not.
-
toString
-
clone
-
copy
-
isSame
-
isValid
-