Package chemaxon.struc.prop
Class MByteArrayProp
java.lang.Object
chemaxon.struc.MProp
chemaxon.struc.prop.MByteArrayProp
- All Implemented Interfaces:
Serializable,Cloneable
Byte array property.
- Since:
- Marvin 5.5, 02/27/2011
- See Also:
-
Field Summary
Fields inherited from class chemaxon.struc.MProp
COORDDEP, TYPE_3D_COORDS, TYPE_ARRAY_BYTE, TYPE_ARRAY_DOUBLE, TYPE_ARRAY_INTEGER, TYPE_BOOLEAN, TYPE_COLLECTION_HASH, TYPE_COLLECTION_LIST, TYPE_DOUBLE, TYPE_FONT, TYPE_INTEGER, TYPE_MDOCUMENT_PROP, TYPE_MOLECULE, TYPE_OBJECT, TYPE_STRING -
Constructor Summary
ConstructorsConstructorDescriptionMByteArrayProp(byte[] x) Constructs a property object from anbyte[]value.MByteArrayProp(String sval, int size, int c) Constructs a byte array property from a string value. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the object.Clones the object.booleanfinal byte[]Gets the byte array value.intGets the array size.Gets the type name of the property.Gets the property value as an object.Gets the XSD type name of the property.inthashCode()toString()Create base64 representation of the byte array.Methods inherited from class chemaxon.struc.MProp
getGrinvCC, isCoordDependent, of, setCoordDependent
-
Constructor Details
-
MByteArrayProp
public MByteArrayProp(byte[] x) Constructs a property object from anbyte[]value.- Parameters:
x- the array
-
MByteArrayProp
Constructs a byte array property from a string value.- Parameters:
sval- the string value- Throws:
IllegalArgumentException
-
-
Method Details
-
getPropArraySize
public int getPropArraySize()Gets the array size.- Overrides:
getPropArraySizein classMProp- Returns:
- the array size
-
getPropValue
Gets the property value as an object.- Specified by:
getPropValuein classMProp- Returns:
- the byte array
-
getByteArray
public final byte[] getByteArray()Gets the byte array value.- Returns:
- the value
-
getPropType
Gets the type name of the property.- Specified by:
getPropTypein classMProp- Returns:
- "byte"
-
getPropXSDType
Gets the XSD type name of the property.- Specified by:
getPropXSDTypein classMProp- Returns:
- "byte"
-
cloneProp
Clones the object. -
clone
Clones the object. -
equals
-
hashCode
public int hashCode() -
toString
Create base64 representation of the byte array.- Overrides:
toStringin classMProp- Returns:
- a string representation of this object
- Throws:
IllegalArgumentException- if conversion to base64 fails- Since:
- Marvin 5.7, 07/25/2011
-