Class OMByteArray
java.lang.Object
org.episteme.core.mathematics.loaders.openmath.OMObject
org.episteme.core.mathematics.loaders.openmath.OMByteArray
- All Implemented Interfaces:
Serializable, Cloneable
Models an OpenMath byte array.
- Version:
- $Revision: 1.3 $
- Author:
- Manfred N. Riem (mriem@manorrock.org)
- See Also:
-
Field Summary
FieldsFields inherited from class OMObject
attributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the object (shallow copy).copy()Copies the object (full copy).byte[]Gets the byte array.Get the byte array as string.getType()Gets the type.booleanisAtom()Is this an atom object.booleanIs this a composite object.booleanDetermines if this is the same object.booleanisValid()Determines if this is a valid object.voidsetByteArray(byte[] newByteArray) Sets the byte array.voidsetByteArray(String newByteArray) Sets the byte array.toString()Returns a string representation of the object.Methods inherited from class OMObject
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes
-
Field Details
-
byteArray
protected byte[] byteArrayStores the byte array.
-
-
Constructor Details
-
OMByteArray
public OMByteArray()Constructor. -
OMByteArray
Constructor.
-
-
Method Details
-
getType
-
setByteArray
Sets the byte array.- Parameters:
newByteArray- the byte array to set (as string).
-
setByteArray
public void setByteArray(byte[] newByteArray) Sets the byte array.- Parameters:
newByteArray- the byte array to set (as byte[]).
-
getByteArray
public byte[] getByteArray()Gets the byte array.- Returns:
- the byte array.
-
getByteArrayAsString
Get the byte array as string.- Returns:
- the byte array (as string).
-
isAtom
-
isComposite
public boolean isComposite()Is this a composite object.- Specified by:
isCompositein classOMObject- Returns:
- false because we are not composite.
-
toString
-
clone
-
copy
-
isSame
-
isValid
-