org.idoox.wasp.serialization.xsdbuiltin
Class HexBinary

java.lang.Object
  extended byorg.idoox.wasp.serialization.xsdbuiltin.HexBinary
All Implemented Interfaces:
java.io.Serializable

public class HexBinary
extends java.lang.Object
implements java.io.Serializable

Represent hexBinary type in the xsd built-in.

See Also:
Serialized Form
Component:
Core

Constructor Summary
HexBinary(byte[] value)
          Translates the representation of a HexBinary as bytes array into an internal data.
HexBinary(java.lang.String value)
          Translates the String representation of a HexBinary into an internal data.
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals based on contained binary data.
 int hashCode()
           
 void set(byte[] value)
          Translates the representation of a HexBinary as bytes array into an internal data.
 void set(java.lang.String value)
          Translates the String representation of a HexBinary into an internal data.
 byte[] toByteArray()
          Returns the bytes array representation of this HexBinary.
 java.lang.String toString()
          Returns the hexa binary String representation of this HexBinary.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HexBinary

public HexBinary(java.lang.String value)
          throws InvalidFormatException
Translates the String representation of a HexBinary into an internal data.

Parameters:
value - the string representation of a HexBinary.
Throws:
InvalidFormatException - thrown if input string value is ivalid.

HexBinary

public HexBinary(byte[] value)
          throws InvalidFormatException
Translates the representation of a HexBinary as bytes array into an internal data.

Parameters:
value - a given byte array representation of a HexBinary.
Throws:
InvalidFormatException - thrown if input string value is ivalid.
Method Detail

set

public void set(java.lang.String value)
         throws InvalidFormatException
Translates the String representation of a HexBinary into an internal data.

Parameters:
value - the string representation of a HexBinary.
Throws:
InvalidFormatException - thrown if input string value is ivalid.

set

public void set(byte[] value)
         throws InvalidFormatException
Translates the representation of a HexBinary as bytes array into an internal data.

Parameters:
value - a given byte array representation of a HexBinary.
Throws:
InvalidFormatException - thrown if input string value is ivalid.

toString

public java.lang.String toString()
Returns the hexa binary String representation of this HexBinary.

Returns:
String the String representation.

toByteArray

public byte[] toByteArray()
Returns the bytes array representation of this HexBinary.

Returns:
the bytes array representation.

equals

public boolean equals(java.lang.Object o)
Equals based on contained binary data.


hashCode

public int hashCode()