Class OMVariable

java.lang.Object
org.episteme.core.mathematics.loaders.openmath.OMObject
org.episteme.core.mathematics.loaders.openmath.OMVariable
All Implemented Interfaces:
Serializable, Cloneable

public class OMVariable extends OMObject
Models an OpenMath variable.

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

    • OMVariable

      public OMVariable()
      Constructor.

    • OMVariable

      public OMVariable(String newName)
      Constructor.

      Parameters:
      newName - set the name.
  • Method Details

    • getName

      public String getName()
      Gets the name.

      Returns:
      the name.
    • setName

      public void setName(String newName)
      Sets the name.

      Parameters:
      newName - set the variable name.
    • getType

      public String getType()
      Gets the type.

      Specified by:
      getType in class OMObject
      Returns:
      the type of the object.
    • isAtom

      public boolean isAtom()
      Is this an atom object.

      Specified by:
      isAtom in class OMObject
      Returns:
      if we are an atomic object.
    • isComposite

      public boolean isComposite()
      Is this a composite object.

      Specified by:
      isComposite in class OMObject
      Returns:
      if we are a composite object.
    • toString

      public String toString()
      Returns a string representation of the object.

      Specified by:
      toString in class OMObject
      Returns:
      a string representation.
    • clone

      public Object clone()
      Clones the object (shallow copy).

      Specified by:
      clone in class OMObject
      Returns:
      a shallow copy.
    • copy

      public Object copy()
      Copies the object (full copy).

      Specified by:
      copy in class OMObject
      Returns:
      a full copy.
    • isSame

      public boolean isSame(OMObject object)
      Determines if this is the same object.

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

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

      Specified by:
      isValid in class OMObject
      Returns:
      true if the object is valid, false if it is not.