|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.win.riaca.openmath.lang.OMObject
nl.tue.win.riaca.openmath.lang.OMForeign
Models an OpenMath foreign object.
Field Summary | |
protected java.lang.Object |
object
Stores the foreign object. |
Fields inherited from class nl.tue.win.riaca.openmath.lang.OMObject |
attributes |
Constructor Summary | |
OMForeign()
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Clones the object. |
java.lang.Object |
copy()
Copies the object. |
java.lang.Object |
getObject()
Get the object. |
java.lang.String |
getType()
Returns the type of the object. |
boolean |
isAtom()
Returns if this is an atom. |
boolean |
isComposite()
Returns if this is a composite. |
boolean |
isSame(OMObject object)
Returns if this is the same object. |
boolean |
isValid()
Returns if the OMForeign is valid. |
void |
setObject(java.lang.Object object)
Set the object. |
java.lang.String |
toString()
Returns a string representation. |
Methods inherited from class nl.tue.win.riaca.openmath.lang.OMObject |
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object object
Constructor Detail |
public OMForeign()
Method Detail |
public java.lang.Object clone()
clone
in class OMObject
public java.lang.Object copy()
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!
copy
in class OMObject
public java.lang.String getType()
getType
in class OMObject
public boolean isAtom()
isAtom
in class OMObject
public boolean isComposite()
isComposite
in class OMObject
public boolean isSame(OMObject object)
isSame
in class OMObject
object
- the object to test against.
public boolean isValid()
isValid
in class OMObject
public java.lang.String toString()
toString
in class OMObject
public void setObject(java.lang.Object object)
object
- the object to set.public java.lang.Object getObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |