Class OMRoot

java.lang.Object
org.episteme.core.mathematics.loaders.openmath.OMObject
org.episteme.core.mathematics.loaders.openmath.OMRoot
All Implemented Interfaces:
Serializable, 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.

Version:
$Revision: 1.2 $
Author:
Manfred N. Riem (mriem@manorrock.org)
See Also:
  • Field Details

    • object

      protected OMObject object
      Stores the 'real' object.

  • Constructor Details

    • OMRoot

      public OMRoot()
  • Method Details

    • clone

      public Object clone()
      Clones a OMRoot object.

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

      public Object copy()
      Copies an OMRoot object.

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

      public 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 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.