org.jscience.ml.openmath
Class OMRoot

java.lang.Object
  extended by org.jscience.ml.openmath.OMObject
      extended by org.jscience.ml.openmath.OMRoot
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class OMRoot
extends OMObject

Models an OpenMath root object.

Note: this object was created because the OpenMath 2.0 standard allows additional attributes to be associated with the base XML element.

See Also:
"The OpenMath standard 2.0, 3.1.1", Serialized Form

Field Summary
protected  OMObject object
          Stores the 'real' object.
 
Fields inherited from class org.jscience.ml.openmath.OMObject
attributes
 
Constructor Summary
OMRoot()
           
 
Method Summary
 java.lang.Object clone()
          Clones a OMRoot object.
 java.lang.Object copy()
          Copies an OMRoot object.
 OMObject getObject()
          Get the object.
 java.lang.String getType()
          Get the type of the object.
 boolean isAtom()
          Returns if this object is an atom object.
 boolean isComposite()
          Returns if this object is a composite object.
 boolean isSame(OMObject object)
          Returns if this object is the same with the given object.
 boolean isValid()
          Returns if this object is a valid object.
 void setObject(OMObject newObject)
          Set the object.
 java.lang.String toString()
          toString.
 
Methods inherited from class org.jscience.ml.openmath.OMObject
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

object

protected OMObject object
Stores the 'real' object.

Constructor Detail

OMRoot

public OMRoot()
Method Detail

clone

public java.lang.Object clone()
Clones a OMRoot object.

Specified by:
clone in class OMObject
Returns:
the clone.

copy

public java.lang.Object copy()
Copies an OMRoot object.

Specified by:
copy in class OMObject
Returns:
the copy.

getType

public java.lang.String getType()
Get the type of the object.

Specified by:
getType in class OMObject
Returns:
the type

isAtom

public boolean isAtom()
Returns if this object is an atom object.

Specified by:
isAtom in class OMObject
Returns:
false

isComposite

public boolean isComposite()
Returns if this object is a composite object.

Specified by:
isComposite in class OMObject
Returns:
true

isSame

public boolean isSame(OMObject object)
Returns if this object is the same with the given object.

Specified by:
isSame in class OMObject
Parameters:
object - the object to test against.
Returns:
true if it is the same, false if it is not.

isValid

public boolean isValid()
Returns if this object is a valid object.

Specified by:
isValid in class OMObject
Returns:
true if valid, false if not

toString

public java.lang.String toString()
toString.

Specified by:
toString in class OMObject
Returns:
the string representation of the object.

setObject

public void setObject(OMObject newObject)
Set the object.


getObject

public OMObject getObject()
Get the object.