|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.uc3m.it.xbe32.XBE32Element
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 |
|
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 |
public static final int COMPLEX_TYPE
public static final int OPAQUE_VALUE_TYPE
byte[]
)
public static final int STRING_VALUE_TYPE
String
)
public static final int OPAQUE1_VALUES_TYPE
byte[]
)
public static final int INT8_VALUES_TYPE
byte[]
)
public static final int BOOLEAN_VALUES_TYPE
boolean[]
)
public static final int OPAQUE2_VALUES_TYPE
byte[2][]
)
public static final int INT16_VALUES_TYPE
short[]
)
public static final int OPAQUE4_VALUES_TYPE
byte[4][]
)
public static final int INT32_VALUES_TYPE
int[]
)
public static final int FLOAT32_VALUES_TYPE
float[]
)
public static final int OPAQUE8_VALUES_TYPE
byte[8][]
)
public static final int INT64_VALUES_TYPE
long[]
)
public static final int FLOAT64_VALUES_TYPE
double[]
)
public static final int OPAQUE12_VALUES_TYPE
byte[12][]
)
public static final int OPAQUE16_VALUES_TYPE
byte[16][]
)
Constructor Detail |
public XBE32Element(int type)
type
- the XBE32 Element identifier
IllegalArgumentException
- If the speficied
type
is not a Complex onepublic XBE32Element(int id, String name, boolean c, boolean e) throws IllegalArgumentException
id
- the XBE32 Element identifier, or 0
if unknownname
- the XBE32 Element name, or null
if unknownc
- the XBE32 Element Continue flage
- the XBE32 Element Notify Error flagpublic XBE32Element(boolean ext, int id, String name, boolean c, boolean e) throws IllegalArgumentException
The XBE32 Compact Type is modified according to the specified Continue and Error flags.
ext
- whether the XBE32 Element is an Extensible or a Compact oneid
- the XBE32 Element identifier, or 0
if unknownname
- the XBE32 Element name, or null
if unknownc
- the XBE32 Element Continue flage
- the XBE32 Element Notify Error flagpublic XBE32Element(int type, Object vals) throws IllegalArgumentException, NullPointerException
type
- the XBE32 Element identifiervals
- the XBE32 Element Values
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
public XBE32Element(int id, String name, boolean c, boolean e, int type, Object vals) throws IllegalArgumentException, NullPointerException
id
- the XBE32 Element identifier, or 0
if unknownname
- the XBE32 Element name, or null
if unknownc
- the XBE32 Element Continue flage
- the XBE32 Element Notify Error flagtype
- the Type of XBE32 Attribute Valuesvals
- the XBE32 Element Values
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 lengthOPAQUE_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
public XBE32Element(boolean ext, int id, String name, boolean c, boolean e, int type, Object vals) throws IllegalArgumentException, NullPointerException
ext
- whether the XBE32 Element is an Extensible or a Compact oneid
- the XBE32 Element identifier, or 0 if unknownname
- the XBE32 Element name, or null
if unknownc
- the XBE32 Element Continue flage
- the XBE32 Element Notify Error flagtype
- the Type of XBE32 Attribute Valuesvals
- the XBE32 Element Values
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 lengthOPAQUE_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 |
public boolean isExtensible()
true
if the XBE32 Element is an Extensible one or
false
when it is a Compact one.public int getId()
public String getName()
null
is unknownpublic boolean getContinueFlag()
true
if the Continue flag of this XBE32 Element is
set or false
when it is notpublic boolean getErrorFlag()
true
if the Notify Error flag of this XBE32 Element
is set or false
when it is notpublic boolean isComplex()
true
if this XBE32 Element is a Complex one, or
false
when it is an Attribute one.public int getValueType()
COMPLEX_TYPE
if it is a Complex oneCOMPLEX_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
public Object getValues()
null
if it
is a Complex onepublic Vector subelements()
null
if this is a XBE32 Attribute.public XBE32Element getSubelement(int id, String name)
id/name
.
null
if none is
found or this is an Attribute Element.public boolean equals(int id, String name)
id
- the XBE32 Element identifier to be comparedname
- the XBE32 Element name to be compared
false
if this Element does not have the specified
identifier nor name, true
otherwisepublic boolean equals(Object obj)
true
if these XBE32 Elements are equal,
false
otherwisepublic static XBE32Element createComplexElement(int type)
type
- the XBE32 Element identifier
public static XBE32Element createExtComplexElement(int id, String name, boolean c, boolean e)
id
- the XBE32 Element identifier, or 0 if unknownname
- the XBE32 Element name, or null
if unknownc
- the XBE32 Element Continue flage
- the XBE32 Element Notify Error flag
public static XBE32Element createOpaqueAttribute(int type, byte[] val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createExtOpaqueAttribute(int id, String name, boolean c, boolean e, byte[] val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createStringAttribute(int type, String val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createExtStringAttribute(int id, String name, boolean c, boolean e, String val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createOpaque1Attribute(int type, byte val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createOpaque1Attribute(int type, byte[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtOpaque1Attribute(int id, String name, boolean c, boolean e, byte val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtOpaque1Attribute(int id, String name, boolean c, boolean e, byte[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createInt8Attribute(int type, byte val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createInt8Attribute(int type, byte[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtInt8Attribute(int id, String name, boolean c, boolean e, byte val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtInt8Attribute(int id, String name, boolean c, boolean e, byte[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createBooleanAttribute(int type, boolean val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createBooleanAttribute(int type, boolean[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtBooleanAttribute(int id, String name, boolean c, boolean e, boolean val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtBooleanAttribute(int id, String name, boolean c, boolean e, boolean[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createOpaque2Attribute(int type, byte[] val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createOpaque2Attribute(int type, byte[][] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtOpaque2Attribute(int id, String name, boolean c, boolean e, byte[] val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtOpaque2Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createInt16Attribute(int type, short val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createInt16Attribute(int type, short[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtInt16Attribute(int id, String name, boolean c, boolean e, short val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtInt16Attribute(int id, String name, boolean c, boolean e, short[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createOpaque4Attribute(int type, byte[] val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createOpaque4Attribute(int type, byte[][] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtOpaque4Attribute(int id, String name, boolean c, boolean e, byte[] val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtOpaque4Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createInt32Attribute(int type, int val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createInt32Attribute(int type, int[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtInt32Attribute(int id, String name, boolean c, boolean e, int val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtInt32Attribute(int id, String name, boolean c, boolean e, int[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createFloat32Attribute(int type, float val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createFloat32Attribute(int type, float[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtFloat32Attribute(int id, String name, boolean c, boolean e, float val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtFloat32Attribute(int id, String name, boolean c, boolean e, float[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createOpaque8Attribute(int type, byte[] val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createOpaque8Attribute(int type, byte[][] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtOpaque8Attribute(int id, String name, boolean c, boolean e, byte[] val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtOpaque8Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createInt64Attribute(int type, long val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createInt64Attribute(int type, long[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtInt64Attribute(int id, String name, boolean c, boolean e, long val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtInt64Attribute(int id, String name, boolean c, boolean e, long[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createFloat64Attribute(int type, double val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createFloat64Attribute(int type, double[] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtFloat64Attribute(int id, String name, boolean c, boolean e, double val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtFloat64Attribute(int id, String name, boolean c, boolean e, double[] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createOpaque12Attribute(int type, byte[] val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createOpaque12Attribute(int type, byte[][] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createOpaque16Attribute(int type, byte[] val)
type
- the Attribute Element identifierval
- the Attribute Element Value
public static XBE32Element createExtOpaque12Attribute(int id, String name, boolean c, boolean e, byte[] val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtOpaque12Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public static XBE32Element createOpaque16Attribute(int type, byte[][] vals)
type
- the Attribute Element identifiervals
- the Attribute Element Values
public static XBE32Element createExtOpaque16Attribute(int id, String name, boolean c, boolean e, byte[] val)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagval
- the Attribute Element Value
public static XBE32Element createExtOpaque16Attribute(int id, String name, boolean c, boolean e, byte[][] vals)
id
- the Attribute Element Identifiername
- the Attribute Element Namec
- the Attribute Element Continue flage
- the Attribute Element Notify Error flagvals
- the Attribute Element Values
public Object createXBE32Element(boolean ext, int id, String name, boolean c, boolean e) throws XBE32ParseException
XBE32Parseable
XBE32ObjectParser
calls this method when an XBE32 Complex
Element is parsed and neither an accessible class attribute, nor an
appropiate 'create' method are found.
createXBE32Element
in interface XBE32Parseable
ext
- whether the Complex Element being parsed is an Extensible or a
Compact oneid
- the Complex Element identifiername
- the Complex Element namec
- the Continue Processing flage
- the Notify Error flag
XBE32ParseException
- if an error occurs while processing this
Elementpublic void setXBE32Attribute(boolean ext, int id, String name, boolean c, boolean e, int valtype, Object vals) throws XBE32ParseException
XBE32Parseable
XBE32ObjectParser
calls this method when an XBE32 Attribute
Element is parsed and neither an accessible class attribute, nor an
appropiate 'set' method are found.
setXBE32Attribute
in interface XBE32Parseable
ext
- whether the Attribute Element being parsed is an Extensible or
a Compact oneid
- the Attribute Element identifiername
- the Attribute Element namec
- the Continue Processing flage
- the Notify Error flagvaltype
- the type of the Attribute Element Valuesvals
- the Attribute Element Values
XBE32ParseException
- if an error occurs while processing this
ElementXBE32Element
public void writeXBE32Object(XBE32Writer writer)
XBE32Writable
writeXBE32Object
in interface XBE32Writable
writer
- the XBE32Writer to be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |