|
||||||||||
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.OMByteArray
Models an OpenMath byte array.
Field Summary | |
protected byte[] |
byteArray
Stores the byte array. |
Fields inherited from class nl.tue.win.riaca.openmath.lang.OMObject |
attributes |
Constructor Summary | |
OMByteArray()
Constructor. |
|
OMByteArray(java.lang.String newByteArray)
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Clones the object (shallow copy). |
java.lang.Object |
copy()
Copies the object (full copy). |
byte[] |
getByteArray()
Gets the byte array. |
java.lang.String |
getByteArrayAsString()
Get the byte array as string. |
java.lang.String |
getType()
Gets the type. |
boolean |
isAtom()
Is this an atom object. |
boolean |
isComposite()
Is this a composite object. |
boolean |
isSame(OMObject object)
Determines if this is the same object. |
boolean |
isValid()
Determines if this is a valid object. |
void |
setByteArray(byte[] newByteArray)
Sets the byte array. |
void |
setByteArray(java.lang.String newByteArray)
Sets the byte array. |
java.lang.String |
toString()
Returns a string representation of the object. |
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 byte[] byteArray
Constructor Detail |
public OMByteArray()
public OMByteArray(java.lang.String newByteArray)
Method Detail |
public java.lang.String getType()
getType
in class OMObject
public void setByteArray(java.lang.String newByteArray)
newByteArray
- the byte array to set (as string).public void setByteArray(byte[] newByteArray)
newByteArray
- the byte array to set (as byte[]).public byte[] getByteArray()
public java.lang.String getByteArrayAsString()
public boolean isAtom()
isAtom
in class OMObject
public boolean isComposite()
isComposite
in class OMObject
public java.lang.String toString()
toString
in class OMObject
public java.lang.Object clone()
clone
in class OMObject
public java.lang.Object copy()
copy
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |