org.jscience.ml.openmath
Class OMReference

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

public class OMReference
extends OMObject

Models a OpenMath reference.

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

Field Summary
 
Fields inherited from class org.jscience.ml.openmath.OMObject
attributes
 
Constructor Summary
OMReference()
          Constructor.
OMReference(java.lang.String href)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Create a clone of this OMReference.
 java.lang.Object copy()
          Create a copy of this OMReference.
 java.lang.String getHref()
          Get the href.
 java.lang.String getType()
          Get the type of the OpenMath object.
 boolean isAtom()
          Return if this is an atom object.
 boolean isComposite()
          Return if this a composite object.
 boolean isSame(OMObject object)
          Return if the given is the same as this object.
 boolean isValid()
          Return if this object is a valid object.
 void setHref(java.lang.String href)
          Set the href.
 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
 

Constructor Detail

OMReference

public OMReference()
Constructor.


OMReference

public OMReference(java.lang.String href)
Constructor.

Parameters:
href - the href.

Method Detail

clone

public java.lang.Object clone()
Create a clone of this OMReference.

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

copy

public java.lang.Object copy()
Create a copy of this OMReference.

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

getType

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

Specified by:
getType in class OMObject
Returns:
the type.

isAtom

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

Specified by:
isAtom in class OMObject
Returns:
true

isComposite

public boolean isComposite()
Return if this a composite object.

Specified by:
isComposite in class OMObject
Returns:
false

isSame

public boolean isSame(OMObject object)
Return if the given is the same as this object.

Specified by:
isSame in class OMObject
Parameters:
object - DOCUMENT ME!
Returns:
true if same object, false if not.

isValid

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

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

getHref

public java.lang.String getHref()
Get the href.

Returns:
the href of the reference.

setHref

public void setHref(java.lang.String href)
Set the href.

Parameters:
href - the href of the reference.

toString

public java.lang.String toString()
toString.

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