Class OMForeign
java.lang.Object
org.episteme.core.mathematics.loaders.openmath.OMObject
org.episteme.core.mathematics.loaders.openmath.OMForeign
- All Implemented Interfaces:
Serializable, Cloneable
Models an OpenMath foreign 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 TypeMethodDescriptionclone()Clones the object.copy()Copies the object.Get the object.getType()Returns the type of the object.booleanisAtom()Returns if this is an atom.booleanReturns if this is a composite.booleanReturns if this is the same object.booleanisValid()Returns if the OMForeign is valid.voidSet the object.toString()Returns a string representation.Methods inherited from class OMObject
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
-
Field Details
-
object
Stores the foreign object.
-
-
Constructor Details
-
OMForeign
public OMForeign()Constructor.
-
-
Method Details
-
clone
-
copy
Copies the object.
Note: the copy method of this object does NOT deep copy the foreign object. It does basically the same thing as clone. This behavior is intended. If you want a copy of the foreign object you will have to make your own copy! -
getType
-
isAtom
-
isComposite
public boolean isComposite()Returns if this is a composite.- Specified by:
isCompositein classOMObject- Returns:
- true if an composite, false if not.
-
isSame
-
isValid
-
toString
-
setObject
-
getObject
-