es.uc3m.it.xbe32
Class XBE32Element

java.lang.Object
  extended byes.uc3m.it.xbe32.XBE32Element
All Implemented Interfaces:
XBE32Parseable, XBE32Writable

public class XBE32Element
extends Object
implements XBE32Parseable, XBE32Writable

This class models a XBE32 Element employed by the XBE32 encoding.

There are two kinds of Elements in XBE32, whether they carry data or not. "Attribute Elements" contain primitive type values. "Complex Elements", on the other hand, cannot carry data, but they are the parents of other XBE32 Elements, that could be Attribute Elements or other Complex Elements themselves.

The, so called, "Compact Elements" are encoded with a single XBE32 TLV, although "Extensible" Elements require two or three TLVs. Moreover Complex Elements are encoded using Complex XBE32 TLVs, whereas Attribute Elements employ Simple XBE32 TLVs.

Therefore, Compact Elements are identified by the Type field of the TLV they are encoded with (thus it also defines its C and E bits). On the other hand, Extensible Elements may be identified by a 4-octet long binary identifier, or by a String name.

Extensible Elements are encoded inside a Complex TLV, carrying inside a Identifier/Name TLV, followed by more TLVs carrying its Values in the case of an Extensible Attribute or the TLVs of other XBE32 Elements in the case of a Extensible Complex Element.

Both, Complex and Attribute Elements can be created with this class, including Extensible and Compact ones.

XBE32 Attribute Elements could carry the following primitive type Values:

Value Type Java type
OPAQUE_VALUE_TYPE byte[]
STRING_VALUE_TYPE String
OPAQUE1_VALUES_TYPE byte[]
INT8_VALUES_TYPE byte[]
BOOLEAN_VALUES_TYPE boolean[]
OPAQUE2_VALUES_TYPE byte[2][]
INT16_VALUES_TYPE short[]
OPAQUE4_VALUES_TYPE byte[4][]
INT32_VALUES_TYPE int[]
FLOAT32_VALUES_TYPE float[]
OPAQUE8_VALUES_TYPE byte[8][]
INT64_VALUES_TYPE long[]
FLOAT64_VALUES_TYPE double[]
OPAQUE12_VALUES_TYPE byte[12][]
OPAQUE16_VALUES_TYPE byte[16][]


Field Summary
static int BOOLEAN_VALUES_TYPE
          Type of an array of Boolean Values (boolean[])
static int COMPLEX_TYPE
          Type of a Complex Element
static int FLOAT32_VALUES_TYPE
          Type of an array of Float32 Values (float[])
static int FLOAT64_VALUES_TYPE
          Type of an array of Float64 Values (double[])
static int INT16_VALUES_TYPE
          Type of an array of Int16 Values (short[])
static int INT32_VALUES_TYPE
          Type of an array of Int32 Values (int[])
static int INT64_VALUES_TYPE
          Type of an array of Int64 Values (long[])
static int INT8_VALUES_TYPE
          Type of an array of Int8 Values (byte[])
static int OPAQUE_VALUE_TYPE
          Type of an Opaque Value (byte[])
static int OPAQUE1_VALUES_TYPE
          Type of an array of Opaque1 Values (byte[])
static int OPAQUE12_VALUES_TYPE
          Type of an array of Opaque12 Value (byte[12][])
static int OPAQUE16_VALUES_TYPE
          Type of an array of Opaque16 Value (byte[16][])
static int OPAQUE2_VALUES_TYPE
          Type of an array of Opaque2 Values (byte[2][])
static int OPAQUE4_VALUES_TYPE
          Type of an array of Opaque4 Value (byte[4][])
static int OPAQUE8_VALUES_TYPE
          Type of an array of Opaque8 Value (byte[8][])
static int STRING_VALUE_TYPE
          Type of a String Value (String)
 
Constructor Summary
XBE32Element(boolean ext, int id, String name, boolean c, boolean e)
          Creates a XBE32 Extensible or Compact Complex Element with the specified Identifier, Name, Continue and Notify Error flags.
XBE32Element(boolean ext, int id, String name, boolean c, boolean e, int type, Object vals)
          Creates a XBE32 Extensible or Compact Attribute Element with the specified Identifier, Name, Values, Continue and Notify Error flags.
XBE32Element(int type)
          Creates a XBE32 Compact Complex Element with the specified Simple TLV Type (thus also defining the Continue and Notify Error flags).
XBE32Element(int type, Object vals)
          Creates a XBE32 Compact Attribute Element with the specified Values and Simple TLV Type (thus defining the Continue and Notify Error flags).
XBE32Element(int id, String name, boolean c, boolean e)
          Creates a XBE32 Extensible Complex Element with the specified Identifier, Name, Continue and Notify Error flags.
XBE32Element(int id, String name, boolean c, boolean e, int type, Object vals)
          Creates a XBE32 Extensible Attribute Element with the specified Identifier, Name, Values, Continue and Notify Error flags.
 
Method Summary
static XBE32Element createBooleanAttribute(int type, boolean val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Boolean Value.
static XBE32Element createBooleanAttribute(int type, boolean[] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Boolean Values array.
static XBE32Element createComplexElement(int type)
          Creates a Compact XBE32 Complex Element with the specified Type.
static XBE32Element createExtBooleanAttribute(int id, String name, boolean c, boolean e, boolean val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and a single Boolean Value.
static XBE32Element createExtBooleanAttribute(int id, String name, boolean c, boolean e, boolean[] vals)
          Creates an Extensible XBE32 Attribute Element with the specified Type and Boolean Values array.
static XBE32Element createExtComplexElement(int id, String name, boolean c, boolean e)
          Creates an Extensible XBE32 Complex Element with the specified Identifier, Name, Value, Continue and Notify Error flags
static XBE32Element createExtFloat32Attribute(int id, String name, boolean c, boolean e, float val)
          Creates an Extensible XBE32 Float32 Attribute Element with the specified Type and a single Value.
static XBE32Element createExtFloat32Attribute(int id, String name, boolean c, boolean e, float[] vals)
          Creates an Extensible XBE32 Float32 Attribute Element with the specified Type and Value array.
static XBE32Element createExtFloat64Attribute(int id, String name, boolean c, boolean e, double val)
          Creates an Extensible XBE32 Float64 Attribute Element with the specified Type and a single Value.
static XBE32Element createExtFloat64Attribute(int id, String name, boolean c, boolean e, double[] vals)
          Creates an Extensible XBE32 Float64 Attribute Element with the specified Type and Value array.
static XBE32Element createExtInt16Attribute(int id, String name, boolean c, boolean e, short val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and a single Int16 Value.
static XBE32Element createExtInt16Attribute(int id, String name, boolean c, boolean e, short[] vals)
          Creates an Extensible XBE32 Attribute Element with the specified Type and Int16 Values array.
static XBE32Element createExtInt32Attribute(int id, String name, boolean c, boolean e, int val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and a single Int32 Value.
static XBE32Element createExtInt32Attribute(int id, String name, boolean c, boolean e, int[] vals)
          Creates an Extensible XBE32 Int32 Attribute Element with the specified Type and Value array.
static XBE32Element createExtInt64Attribute(int id, String name, boolean c, boolean e, long val)
          Creates an Extensible XBE32 Int64 Attribute Element with the specified Type and a single Value.
static XBE32Element createExtInt64Attribute(int id, String name, boolean c, boolean e, long[] vals)
          Creates an Extensible XBE32 Int64 Attribute Element with the specified Type and Value array.
static XBE32Element createExtInt8Attribute(int id, String name, boolean c, boolean e, byte val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and a single Int8 Value.
static XBE32Element createExtInt8Attribute(int id, String name, boolean c, boolean e, byte[] vals)
          Creates an Extensible XBE32 Attribute Element with the specified Type and Int8 Values array.
static XBE32Element createExtOpaque12Attribute(int id, String name, boolean c, boolean e, byte[] val)
          Creates an Extensible XBE32 Opaque12 Attribute Element with the specified Type and a single Value.
static XBE32Element createExtOpaque12Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
          Creates an Extensible XBE32 Opaque12 Attribute Element with the specified Type and Value array.
static XBE32Element createExtOpaque16Attribute(int id, String name, boolean c, boolean e, byte[] val)
          Creates an Extensible XBE32 Opaque16 Attribute Element with the specified Type and a single Value.
static XBE32Element createExtOpaque16Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
          Creates an Extensible XBE32 Opaque16 Attribute Element with the specified Type and Value array.
static XBE32Element createExtOpaque1Attribute(int id, String name, boolean c, boolean e, byte val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and a single Opaque1 Value.
static XBE32Element createExtOpaque1Attribute(int id, String name, boolean c, boolean e, byte[] vals)
          Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque1 Values array.
static XBE32Element createExtOpaque2Attribute(int id, String name, boolean c, boolean e, byte[] val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and a single Opaque2 Value.
static XBE32Element createExtOpaque2Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
          Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque2 Values array.
static XBE32Element createExtOpaque4Attribute(int id, String name, boolean c, boolean e, byte[] val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and a single Opaque4 Value.
static XBE32Element createExtOpaque4Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
          Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque4 Values array.
static XBE32Element createExtOpaque8Attribute(int id, String name, boolean c, boolean e, byte[] val)
          Creates an Extensible XBE32 Opaque8 Attribute Element with the specified Type and a single Value.
static XBE32Element createExtOpaque8Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
          Creates an Extensible XBE32 Opaque8 Attribute Element with the specified Type and Value array.
static XBE32Element createExtOpaqueAttribute(int id, String name, boolean c, boolean e, byte[] val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque Value.
static XBE32Element createExtStringAttribute(int id, String name, boolean c, boolean e, String val)
          Creates an Extensible XBE32 Attribute Element with the specified Type and String Value.
static XBE32Element createFloat32Attribute(int type, float val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Float32 Value.
static XBE32Element createFloat32Attribute(int type, float[] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Float32 Values array.
static XBE32Element createFloat64Attribute(int type, double val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Float64 Value.
static XBE32Element createFloat64Attribute(int type, double[] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Float64 Values array.
static XBE32Element createInt16Attribute(int type, short val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Int16 Value.
static XBE32Element createInt16Attribute(int type, short[] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Int16 Values array.
static XBE32Element createInt32Attribute(int type, int val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Int32 Value.
static XBE32Element createInt32Attribute(int type, int[] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Int32 Values array.
static XBE32Element createInt64Attribute(int type, long val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Int64 Value.
static XBE32Element createInt64Attribute(int type, long[] vals)
          Creates a Compact XBE32 Int64 Attribute Element with the specified Type and Int64 Values array.
static XBE32Element createInt8Attribute(int type, byte val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Int8 Value.
static XBE32Element createInt8Attribute(int type, byte[] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Int8 Values array.
static XBE32Element createOpaque12Attribute(int type, byte[] val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque12 Value.
static XBE32Element createOpaque12Attribute(int type, byte[][] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Opaque12 Values array.
static XBE32Element createOpaque16Attribute(int type, byte[] val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque16 Value.
static XBE32Element createOpaque16Attribute(int type, byte[][] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Opaque16 Values array.
static XBE32Element createOpaque1Attribute(int type, byte val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque1 Value.
static XBE32Element createOpaque1Attribute(int type, byte[] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Opaque1 Values array.
static XBE32Element createOpaque2Attribute(int type, byte[] val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque2 Value.
static XBE32Element createOpaque2Attribute(int type, byte[][] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Opaque2 Values array.
static XBE32Element createOpaque4Attribute(int type, byte[] val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque4 Value.
static XBE32Element createOpaque4Attribute(int type, byte[][] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Opaque4 Values array.
static XBE32Element createOpaque8Attribute(int type, byte[] val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque8 Value.
static XBE32Element createOpaque8Attribute(int type, byte[][] vals)
          Creates a Compact XBE32 Attribute Element with the specified Type and Opaque8 Values array.
static XBE32Element createOpaqueAttribute(int type, byte[] val)
          Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque Value.
static XBE32Element createStringAttribute(int type, String val)
          Creates a Compact XBE32 Attribute Element with the specified Type and String Value.
 Object createXBE32Element(boolean ext, int id, String name, boolean c, boolean e)
          The XBE32ObjectParser calls this method when an XBE32 Complex Element is parsed and neither an accessible class attribute, nor an appropiate 'create' method are found.
 boolean equals(int id, String name)
          Returns whether this XBE32 Element has the specified identifier or name.
 boolean equals(Object obj)
          Returns whether this XBE32 Element is equal to the specified one.
 boolean getContinueFlag()
          Returns the Continue flag of this XBE32 Element.
 boolean getErrorFlag()
          Returns the Notify Error flag of this XBE32 Element.
 int getId()
          Returns the identifier of this XBE32 Element.
 String getName()
          Returns the name of this XBE32 Element.
 XBE32Element getSubelement(int id, String name)
          Returns the first subelement of this XBE32 Complex Element with the specified id/name.
 Object getValues()
          Returns the Values of this XBE32 Attribute Element.
 int getValueType()
          Returns the Type of this XBE32 Attribute Element.
 boolean isComplex()
          Returns whether this is a XBE32 Complex Element or an Attribute one.
 boolean isExtensible()
          Returns whether the specified XBE32 Element is an Extensible or a Compact one.
 void setXBE32Attribute(boolean ext, int id, String name, boolean c, boolean e, int valtype, Object vals)
          The XBE32ObjectParser calls this method when an XBE32 Attribute Element is parsed and neither an accessible class attribute, nor an appropiate 'set' method are found.
 Vector subelements()
          Returns the list of subelements of this XBE32 Complex Element.
 void writeXBE32Object(XBE32Writer writer)
          Objects that are going to be serialized into a XBE32-encoded stream should implement this method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPLEX_TYPE

public static final int COMPLEX_TYPE
Type of a Complex Element

See Also:
Constant Field Values

OPAQUE_VALUE_TYPE

public static final int OPAQUE_VALUE_TYPE
Type of an Opaque Value (byte[])

See Also:
Constant Field Values

STRING_VALUE_TYPE

public static final int STRING_VALUE_TYPE
Type of a String Value (String)

See Also:
Constant Field Values

OPAQUE1_VALUES_TYPE

public static final int OPAQUE1_VALUES_TYPE
Type of an array of Opaque1 Values (byte[])

See Also:
Constant Field Values

INT8_VALUES_TYPE

public static final int INT8_VALUES_TYPE
Type of an array of Int8 Values (byte[])

See Also:
Constant Field Values

BOOLEAN_VALUES_TYPE

public static final int BOOLEAN_VALUES_TYPE
Type of an array of Boolean Values (boolean[])

See Also:
Constant Field Values

OPAQUE2_VALUES_TYPE

public static final int OPAQUE2_VALUES_TYPE
Type of an array of Opaque2 Values (byte[2][])

See Also:
Constant Field Values

INT16_VALUES_TYPE

public static final int INT16_VALUES_TYPE
Type of an array of Int16 Values (short[])

See Also:
Constant Field Values

OPAQUE4_VALUES_TYPE

public static final int OPAQUE4_VALUES_TYPE
Type of an array of Opaque4 Value (byte[4][])

See Also:
Constant Field Values

INT32_VALUES_TYPE

public static final int INT32_VALUES_TYPE
Type of an array of Int32 Values (int[])

See Also:
Constant Field Values

FLOAT32_VALUES_TYPE

public static final int FLOAT32_VALUES_TYPE
Type of an array of Float32 Values (float[])

See Also:
Constant Field Values

OPAQUE8_VALUES_TYPE

public static final int OPAQUE8_VALUES_TYPE
Type of an array of Opaque8 Value (byte[8][])

See Also:
Constant Field Values

INT64_VALUES_TYPE

public static final int INT64_VALUES_TYPE
Type of an array of Int64 Values (long[])

See Also:
Constant Field Values

FLOAT64_VALUES_TYPE

public static final int FLOAT64_VALUES_TYPE
Type of an array of Float64 Values (double[])

See Also:
Constant Field Values

OPAQUE12_VALUES_TYPE

public static final int OPAQUE12_VALUES_TYPE
Type of an array of Opaque12 Value (byte[12][])

See Also:
Constant Field Values

OPAQUE16_VALUES_TYPE

public static final int OPAQUE16_VALUES_TYPE
Type of an array of Opaque16 Value (byte[16][])

See Also:
Constant Field Values
Constructor Detail

XBE32Element

public XBE32Element(int type)
Creates a XBE32 Compact Complex Element with the specified Simple TLV Type (thus also defining the Continue and Notify Error flags).

Parameters:
type - the XBE32 Element identifier
Throws:
IllegalArgumentException - If the speficied type is not a Complex one

XBE32Element

public XBE32Element(int id,
                    String name,
                    boolean c,
                    boolean e)
             throws IllegalArgumentException
Creates a XBE32 Extensible Complex Element with the specified Identifier, Name, Continue and Notify Error flags.

Parameters:
id - the XBE32 Element identifier, or 0 if unknown
name - the XBE32 Element name, or null if unknown
c - the XBE32 Element Continue flag
e - the XBE32 Element Notify Error flag

XBE32Element

public XBE32Element(boolean ext,
                    int id,
                    String name,
                    boolean c,
                    boolean e)
             throws IllegalArgumentException
Creates a XBE32 Extensible or Compact Complex Element with the specified Identifier, Name, Continue and Notify Error flags.

The XBE32 Compact Type is modified according to the specified Continue and Error flags.

Parameters:
ext - whether the XBE32 Element is an Extensible or a Compact one
id - the XBE32 Element identifier, or 0 if unknown
name - the XBE32 Element name, or null if unknown
c - the XBE32 Element Continue flag
e - the XBE32 Element Notify Error flag

XBE32Element

public XBE32Element(int type,
                    Object vals)
             throws IllegalArgumentException,
                    NullPointerException
Creates a XBE32 Compact Attribute Element with the specified Values and Simple TLV Type (thus defining the Continue and Notify Error flags).

Parameters:
type - the XBE32 Element identifier
vals - the XBE32 Element Values
Throws:
IllegalArgumentException - If the specified Type does not match with the specified Values, or the Values have an incorrect length
NullPointerException - If the specified Values is null

XBE32Element

public XBE32Element(int id,
                    String name,
                    boolean c,
                    boolean e,
                    int type,
                    Object vals)
             throws IllegalArgumentException,
                    NullPointerException
Creates a XBE32 Extensible Attribute Element with the specified Identifier, Name, Values, Continue and Notify Error flags.

Parameters:
id - the XBE32 Element identifier, or 0 if unknown
name - the XBE32 Element name, or null if unknown
c - the XBE32 Element Continue flag
e - the XBE32 Element Notify Error flag
type - the Type of XBE32 Attribute Values
vals - the XBE32 Element Values
Throws:
NullPointerException - If no id and name is specified, or the val is null
IllegalArgumentException - If the specified type does not match with the specified Values, or the Value array has an incorrect length
See Also:
OPAQUE_VALUE_TYPE, STRING_VALUE_TYPE, OPAQUE1_VALUES_TYPE, INT8_VALUES_TYPE, BOOLEAN_VALUES_TYPE, OPAQUE2_VALUES_TYPE, INT16_VALUES_TYPE, OPAQUE4_VALUES_TYPE, INT32_VALUES_TYPE, FLOAT32_VALUES_TYPE, OPAQUE8_VALUES_TYPE, INT64_VALUES_TYPE, FLOAT64_VALUES_TYPE, OPAQUE12_VALUES_TYPE, OPAQUE16_VALUES_TYPE

XBE32Element

public XBE32Element(boolean ext,
                    int id,
                    String name,
                    boolean c,
                    boolean e,
                    int type,
                    Object vals)
             throws IllegalArgumentException,
                    NullPointerException
Creates a XBE32 Extensible or Compact Attribute Element with the specified Identifier, Name, Values, Continue and Notify Error flags.

Parameters:
ext - whether the XBE32 Element is an Extensible or a Compact one
id - the XBE32 Element identifier, or 0 if unknown
name - the XBE32 Element name, or null if unknown
c - the XBE32 Element Continue flag
e - the XBE32 Element Notify Error flag
type - the Type of XBE32 Attribute Values
vals - the XBE32 Element Values
Throws:
NullPointerException - If no id and name is specified, or the val is null
IllegalArgumentException - If the specified compact id do not match with the specified Value, or the value array has an incorrect length
See Also:
OPAQUE_VALUE_TYPE, STRING_VALUE_TYPE, OPAQUE1_VALUES_TYPE, INT8_VALUES_TYPE, BOOLEAN_VALUES_TYPE, OPAQUE2_VALUES_TYPE, INT16_VALUES_TYPE, OPAQUE4_VALUES_TYPE, INT32_VALUES_TYPE, FLOAT32_VALUES_TYPE, OPAQUE8_VALUES_TYPE, INT64_VALUES_TYPE, FLOAT64_VALUES_TYPE, OPAQUE12_VALUES_TYPE, OPAQUE16_VALUES_TYPE
Method Detail

isExtensible

public boolean isExtensible()
Returns whether the specified XBE32 Element is an Extensible or a Compact one.

Returns:
true if the XBE32 Element is an Extensible one or false when it is a Compact one.

getId

public int getId()
Returns the identifier of this XBE32 Element.

Returns:
the XBE32 Element identifier, or 0 is unknown

getName

public String getName()
Returns the name of this XBE32 Element.

Returns:
the XBE32 Element name, or null is unknown

getContinueFlag

public boolean getContinueFlag()
Returns the Continue flag of this XBE32 Element.

Returns:
true if the Continue flag of this XBE32 Element is set or false when it is not

getErrorFlag

public boolean getErrorFlag()
Returns the Notify Error flag of this XBE32 Element.

Returns:
true if the Notify Error flag of this XBE32 Element is set or false when it is not

isComplex

public boolean isComplex()
Returns whether this is a XBE32 Complex Element or an Attribute one.

Returns:
true if this XBE32 Element is a Complex one, or false when it is an Attribute one.

getValueType

public int getValueType()
Returns the Type of this XBE32 Attribute Element.

Returns:
the Type of the XBE32 Attrbiute Element's Value, or COMPLEX_TYPE if it is a Complex one
See Also:
COMPLEX_TYPE, OPAQUE_VALUE_TYPE, STRING_VALUE_TYPE, OPAQUE1_VALUES_TYPE, INT8_VALUES_TYPE, BOOLEAN_VALUES_TYPE, OPAQUE2_VALUES_TYPE, INT16_VALUES_TYPE, OPAQUE4_VALUES_TYPE, INT32_VALUES_TYPE, FLOAT32_VALUES_TYPE, OPAQUE8_VALUES_TYPE, INT64_VALUES_TYPE, FLOAT64_VALUES_TYPE, OPAQUE12_VALUES_TYPE, OPAQUE16_VALUES_TYPE

getValues

public Object getValues()
Returns the Values of this XBE32 Attribute Element.

Returns:
the XBE32 Attribute Element Values, or null if it is a Complex one

subelements

public Vector subelements()
Returns the list of subelements of this XBE32 Complex Element.

Returns:
the children of this XBE32 Complex Element. null if this is a XBE32 Attribute.

getSubelement

public XBE32Element getSubelement(int id,
                                  String name)
Returns the first subelement of this XBE32 Complex Element with the specified id/name.

Returns:
the first matching subelement or null if none is found or this is an Attribute Element.

equals

public boolean equals(int id,
                      String name)
Returns whether this XBE32 Element has the specified identifier or name.

Parameters:
id - the XBE32 Element identifier to be compared
name - the XBE32 Element name to be compared
Returns:
false if this Element does not have the specified identifier nor name, true otherwise

equals

public boolean equals(Object obj)
Returns whether this XBE32 Element is equal to the specified one. Two XBE32 Elements are equal if they have the same id or name, the same value in the case of XBE32 Attributes, and all its subelements are also equal in the case of Complex Elements.

Returns:
true if these XBE32 Elements are equal, false otherwise

createComplexElement

public static XBE32Element createComplexElement(int type)
Creates a Compact XBE32 Complex Element with the specified Type.

Parameters:
type - the XBE32 Element identifier
Returns:
the new XBE32 Complex Element

createExtComplexElement

public static XBE32Element createExtComplexElement(int id,
                                                   String name,
                                                   boolean c,
                                                   boolean e)
Creates an Extensible XBE32 Complex Element with the specified Identifier, Name, Value, Continue and Notify Error flags

Parameters:
id - the XBE32 Element identifier, or 0 if unknown
name - the XBE32 Element name, or null if unknown
c - the XBE32 Element Continue flag
e - the XBE32 Element Notify Error flag
Returns:
the new XBE32 Complex Element

createOpaqueAttribute

public static XBE32Element createOpaqueAttribute(int type,
                                                 byte[] val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaqueAttribute

public static XBE32Element createExtOpaqueAttribute(int id,
                                                    String name,
                                                    boolean c,
                                                    boolean e,
                                                    byte[] val)
Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createStringAttribute

public static XBE32Element createStringAttribute(int type,
                                                 String val)
Creates a Compact XBE32 Attribute Element with the specified Type and String Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtStringAttribute

public static XBE32Element createExtStringAttribute(int id,
                                                    String name,
                                                    boolean c,
                                                    boolean e,
                                                    String val)
Creates an Extensible XBE32 Attribute Element with the specified Type and String Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createOpaque1Attribute

public static XBE32Element createOpaque1Attribute(int type,
                                                  byte val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque1 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createOpaque1Attribute

public static XBE32Element createOpaque1Attribute(int type,
                                                  byte[] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Opaque1 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtOpaque1Attribute

public static XBE32Element createExtOpaque1Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte val)
Creates an Extensible XBE32 Attribute Element with the specified Type and a single Opaque1 Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaque1Attribute

public static XBE32Element createExtOpaque1Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte[] vals)
Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque1 Values array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createInt8Attribute

public static XBE32Element createInt8Attribute(int type,
                                               byte val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Int8 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createInt8Attribute

public static XBE32Element createInt8Attribute(int type,
                                               byte[] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Int8 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtInt8Attribute

public static XBE32Element createExtInt8Attribute(int id,
                                                  String name,
                                                  boolean c,
                                                  boolean e,
                                                  byte val)
Creates an Extensible XBE32 Attribute Element with the specified Type and a single Int8 Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtInt8Attribute

public static XBE32Element createExtInt8Attribute(int id,
                                                  String name,
                                                  boolean c,
                                                  boolean e,
                                                  byte[] vals)
Creates an Extensible XBE32 Attribute Element with the specified Type and Int8 Values array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createBooleanAttribute

public static XBE32Element createBooleanAttribute(int type,
                                                  boolean val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Boolean Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createBooleanAttribute

public static XBE32Element createBooleanAttribute(int type,
                                                  boolean[] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Boolean Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtBooleanAttribute

public static XBE32Element createExtBooleanAttribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     boolean val)
Creates an Extensible XBE32 Attribute Element with the specified Type and a single Boolean Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtBooleanAttribute

public static XBE32Element createExtBooleanAttribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     boolean[] vals)
Creates an Extensible XBE32 Attribute Element with the specified Type and Boolean Values array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createOpaque2Attribute

public static XBE32Element createOpaque2Attribute(int type,
                                                  byte[] val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque2 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createOpaque2Attribute

public static XBE32Element createOpaque2Attribute(int type,
                                                  byte[][] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Opaque2 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtOpaque2Attribute

public static XBE32Element createExtOpaque2Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte[] val)
Creates an Extensible XBE32 Attribute Element with the specified Type and a single Opaque2 Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaque2Attribute

public static XBE32Element createExtOpaque2Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte[][] vals)
Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque2 Values array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createInt16Attribute

public static XBE32Element createInt16Attribute(int type,
                                                short val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Int16 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createInt16Attribute

public static XBE32Element createInt16Attribute(int type,
                                                short[] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Int16 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtInt16Attribute

public static XBE32Element createExtInt16Attribute(int id,
                                                   String name,
                                                   boolean c,
                                                   boolean e,
                                                   short val)
Creates an Extensible XBE32 Attribute Element with the specified Type and a single Int16 Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtInt16Attribute

public static XBE32Element createExtInt16Attribute(int id,
                                                   String name,
                                                   boolean c,
                                                   boolean e,
                                                   short[] vals)
Creates an Extensible XBE32 Attribute Element with the specified Type and Int16 Values array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createOpaque4Attribute

public static XBE32Element createOpaque4Attribute(int type,
                                                  byte[] val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque4 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createOpaque4Attribute

public static XBE32Element createOpaque4Attribute(int type,
                                                  byte[][] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Opaque4 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtOpaque4Attribute

public static XBE32Element createExtOpaque4Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte[] val)
Creates an Extensible XBE32 Attribute Element with the specified Type and a single Opaque4 Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaque4Attribute

public static XBE32Element createExtOpaque4Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte[][] vals)
Creates an Extensible XBE32 Attribute Element with the specified Type and Opaque4 Values array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createInt32Attribute

public static XBE32Element createInt32Attribute(int type,
                                                int val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Int32 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createInt32Attribute

public static XBE32Element createInt32Attribute(int type,
                                                int[] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Int32 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtInt32Attribute

public static XBE32Element createExtInt32Attribute(int id,
                                                   String name,
                                                   boolean c,
                                                   boolean e,
                                                   int val)
Creates an Extensible XBE32 Attribute Element with the specified Type and a single Int32 Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtInt32Attribute

public static XBE32Element createExtInt32Attribute(int id,
                                                   String name,
                                                   boolean c,
                                                   boolean e,
                                                   int[] vals)
Creates an Extensible XBE32 Int32 Attribute Element with the specified Type and Value array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createFloat32Attribute

public static XBE32Element createFloat32Attribute(int type,
                                                  float val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Float32 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createFloat32Attribute

public static XBE32Element createFloat32Attribute(int type,
                                                  float[] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Float32 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtFloat32Attribute

public static XBE32Element createExtFloat32Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     float val)
Creates an Extensible XBE32 Float32 Attribute Element with the specified Type and a single Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtFloat32Attribute

public static XBE32Element createExtFloat32Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     float[] vals)
Creates an Extensible XBE32 Float32 Attribute Element with the specified Type and Value array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createOpaque8Attribute

public static XBE32Element createOpaque8Attribute(int type,
                                                  byte[] val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque8 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createOpaque8Attribute

public static XBE32Element createOpaque8Attribute(int type,
                                                  byte[][] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Opaque8 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtOpaque8Attribute

public static XBE32Element createExtOpaque8Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte[] val)
Creates an Extensible XBE32 Opaque8 Attribute Element with the specified Type and a single Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaque8Attribute

public static XBE32Element createExtOpaque8Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     byte[][] vals)
Creates an Extensible XBE32 Opaque8 Attribute Element with the specified Type and Value array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createInt64Attribute

public static XBE32Element createInt64Attribute(int type,
                                                long val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Int64 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createInt64Attribute

public static XBE32Element createInt64Attribute(int type,
                                                long[] vals)
Creates a Compact XBE32 Int64 Attribute Element with the specified Type and Int64 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtInt64Attribute

public static XBE32Element createExtInt64Attribute(int id,
                                                   String name,
                                                   boolean c,
                                                   boolean e,
                                                   long val)
Creates an Extensible XBE32 Int64 Attribute Element with the specified Type and a single Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtInt64Attribute

public static XBE32Element createExtInt64Attribute(int id,
                                                   String name,
                                                   boolean c,
                                                   boolean e,
                                                   long[] vals)
Creates an Extensible XBE32 Int64 Attribute Element with the specified Type and Value array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createFloat64Attribute

public static XBE32Element createFloat64Attribute(int type,
                                                  double val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Float64 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createFloat64Attribute

public static XBE32Element createFloat64Attribute(int type,
                                                  double[] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Float64 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtFloat64Attribute

public static XBE32Element createExtFloat64Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     double val)
Creates an Extensible XBE32 Float64 Attribute Element with the specified Type and a single Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtFloat64Attribute

public static XBE32Element createExtFloat64Attribute(int id,
                                                     String name,
                                                     boolean c,
                                                     boolean e,
                                                     double[] vals)
Creates an Extensible XBE32 Float64 Attribute Element with the specified Type and Value array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createOpaque12Attribute

public static XBE32Element createOpaque12Attribute(int type,
                                                   byte[] val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque12 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createOpaque12Attribute

public static XBE32Element createOpaque12Attribute(int type,
                                                   byte[][] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Opaque12 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createOpaque16Attribute

public static XBE32Element createOpaque16Attribute(int type,
                                                   byte[] val)
Creates a Compact XBE32 Attribute Element with the specified Type and a single Opaque16 Value.

Parameters:
type - the Attribute Element identifier
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaque12Attribute

public static XBE32Element createExtOpaque12Attribute(int id,
                                                      String name,
                                                      boolean c,
                                                      boolean e,
                                                      byte[] val)
Creates an Extensible XBE32 Opaque12 Attribute Element with the specified Type and a single Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaque12Attribute

public static XBE32Element createExtOpaque12Attribute(int id,
                                                      String name,
                                                      boolean c,
                                                      boolean e,
                                                      byte[][] vals)
Creates an Extensible XBE32 Opaque12 Attribute Element with the specified Type and Value array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createOpaque16Attribute

public static XBE32Element createOpaque16Attribute(int type,
                                                   byte[][] vals)
Creates a Compact XBE32 Attribute Element with the specified Type and Opaque16 Values array.

Parameters:
type - the Attribute Element identifier
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createExtOpaque16Attribute

public static XBE32Element createExtOpaque16Attribute(int id,
                                                      String name,
                                                      boolean c,
                                                      boolean e,
                                                      byte[] val)
Creates an Extensible XBE32 Opaque16 Attribute Element with the specified Type and a single Value.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
val - the Attribute Element Value
Returns:
the new XBE32 Attribute Element

createExtOpaque16Attribute

public static XBE32Element createExtOpaque16Attribute(int id,
                                                      String name,
                                                      boolean c,
                                                      boolean e,
                                                      byte[][] vals)
Creates an Extensible XBE32 Opaque16 Attribute Element with the specified Type and Value array.

Parameters:
id - the Attribute Element Identifier
name - the Attribute Element Name
c - the Attribute Element Continue flag
e - the Attribute Element Notify Error flag
vals - the Attribute Element Values
Returns:
the new XBE32 Attribute Element

createXBE32Element

public Object createXBE32Element(boolean ext,
                                 int id,
                                 String name,
                                 boolean c,
                                 boolean e)
                          throws XBE32ParseException
Description copied from interface: XBE32Parseable
The XBE32ObjectParser calls this method when an XBE32 Complex Element is parsed and neither an accessible class attribute, nor an appropiate 'create' method are found.

Specified by:
createXBE32Element in interface XBE32Parseable
Parameters:
ext - whether the Complex Element being parsed is an Extensible or a Compact one
id - the Complex Element identifier
name - the Complex Element name
c - the Continue Processing flag
e - the Notify Error flag
Returns:
the new XBE32 Element, to continue parsing
Throws:
XBE32ParseException - if an error occurs while processing this Element

setXBE32Attribute

public void setXBE32Attribute(boolean ext,
                              int id,
                              String name,
                              boolean c,
                              boolean e,
                              int valtype,
                              Object vals)
                       throws XBE32ParseException
Description copied from interface: XBE32Parseable
The XBE32ObjectParser calls this method when an XBE32 Attribute Element is parsed and neither an accessible class attribute, nor an appropiate 'set' method are found.

Specified by:
setXBE32Attribute in interface XBE32Parseable
Parameters:
ext - whether the Attribute Element being parsed is an Extensible or a Compact one
id - the Attribute Element identifier
name - the Attribute Element name
c - the Continue Processing flag
e - the Notify Error flag
valtype - the type of the Attribute Element Values
vals - the Attribute Element Values
Throws:
XBE32ParseException - if an error occurs while processing this Element
See Also:
XBE32Element

writeXBE32Object

public void writeXBE32Object(XBE32Writer writer)
Description copied from interface: XBE32Writable
Objects that are going to be serialized into a XBE32-encoded stream should implement this method.

Specified by:
writeXBE32Object in interface XBE32Writable
Parameters:
writer - the XBE32Writer to be used