Class MByteArrayProp

java.lang.Object
chemaxon.struc.MProp
chemaxon.struc.prop.MByteArrayProp
All Implemented Interfaces:
Serializable, Cloneable

@PublicApi public class MByteArrayProp extends MProp
Byte array property.
Since:
Marvin 5.5, 02/27/2011
See Also:
  • Constructor Details

    • MByteArrayProp

      public MByteArrayProp(byte[] x)
      Constructs a property object from an byte[] value.
      Parameters:
      x - the array
    • MByteArrayProp

      public MByteArrayProp(String sval, int size, int c) throws IllegalArgumentException
      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:
      getPropArraySize in class MProp
      Returns:
      the array size
    • getPropValue

      public Object getPropValue()
      Gets the property value as an object.
      Specified by:
      getPropValue in class MProp
      Returns:
      the byte array
    • getByteArray

      public final byte[] getByteArray()
      Gets the byte array value.
      Returns:
      the value
    • getPropType

      public String getPropType()
      Gets the type name of the property.
      Specified by:
      getPropType in class MProp
      Returns:
      "byte"
    • getPropXSDType

      public String getPropXSDType()
      Gets the XSD type name of the property.
      Specified by:
      getPropXSDType in class MProp
      Returns:
      "byte"
    • cloneProp

      public MByteArrayProp cloneProp()
      Clones the object.
      Specified by:
      cloneProp in class MProp
      Returns:
      the clone
    • clone

      public MByteArrayProp clone()
      Clones the object.
      Overrides:
      clone in class Object
      Returns:
      the clone
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Create base64 representation of the byte array.
      Overrides:
      toString in class MProp
      Returns:
      a string representation of this object
      Throws:
      IllegalArgumentException - if conversion to base64 fails
      Since:
      Marvin 5.7, 07/25/2011