Interface FixedBinaryDef

  • All Superinterfaces:
    FieldDef

    public interface FixedBinaryDef
    extends FieldDef
    FixedBinaryDef is an extension of FieldDef to encapsulate a fixed length binary value.
    Since:
    3.0
    • Method Detail

      • getSize

        int getSize()
        Returns:
        the size of the binary value in bytes
      • getName

        java.lang.String getName()
        Returns:
        the name of the type. A name is required for serialization.
      • clone

        FixedBinaryDef clone()
        Description copied from interface: FieldDef
        Perform a deep copy of this FieldDef instance.
        Specified by:
        clone in interface FieldDef
        Returns:
        a deep copy of this object
      • fromString

        FixedBinaryValue fromString​(java.lang.String encodedString)
        Creates a FixedBinaryValue instance from a String. The String must be a Base64 encoded string returned from FixedBinaryValue.toString().
        Returns:
        a String representation of the value
        Throws:
        java.lang.IllegalArgumentException - if the string cannot be decoded