Package com.webmethods.jms.transport
Class TransportField
- java.lang.Object
-
- com.webmethods.jms.transport.TransportField
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
TransportBasicField
,TransportSequenceField
,TransportStructField
public abstract class TransportField extends java.lang.Object implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_fieldLength
protected int
_headerSize
protected java.lang.String
_name
protected byte[]
_nameEncoded
protected short
_nameLength
protected short
_type
protected int
_valueLength
protected static int
ELEMENT_TYPE_SIZE
protected static int
FIELD_LENGTH_SIZE
static short
FIELD_TYPE_BOOLEAN
static short
FIELD_TYPE_BYTE
static short
FIELD_TYPE_CHAR
static short
FIELD_TYPE_DATE
static short
FIELD_TYPE_DOUBLE
static short
FIELD_TYPE_EVENT
static short
FIELD_TYPE_FLOAT
static short
FIELD_TYPE_INT
static short
FIELD_TYPE_LONG
static short
FIELD_TYPE_SEQUENCE
static short
FIELD_TYPE_SHORT
static short
FIELD_TYPE_STRING
static short
FIELD_TYPE_STRUCT
static short
FIELD_TYPE_UNICODE_CHAR
static short
FIELD_TYPE_UNICODE_STRING
static short
FIELD_TYPE_UNKNOWN
static short
FIELD_TYPE_VIRTUAL
protected static int
LOC_FIELD_LENGTH
protected static int
LOC_FIELD_NAME
protected static int
LOC_FIELD_NAME_LENGTH
protected static int
LOC_FIELD_TYPE
protected static int
NAME_LENGTH_SIZE
protected static int
SEQUENCE_SIZE
protected static int
TYPE_SIZE
protected static int
VALUE_LENGTH_SIZE
-
Constructor Summary
Constructors Modifier Constructor Description TransportField()
protected
TransportField(int length, short type, short nameLength, byte[] nameEncoded)
protected
TransportField(TransportField sourceField)
TransportField(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected int
calcHeaderSize()
protected void
changeName(java.lang.String name)
java.lang.Object
clone()
int
getLength()
java.lang.String
getName()
short
getType()
int
getValueLength()
int
marshal(byte[] dest, int offset)
static TransportField
unmarshal(byte[] data, int offset)
protected abstract int
unmarshalValue(byte[] data, int offset)
-
-
-
Field Detail
-
FIELD_TYPE_BYTE
public static final short FIELD_TYPE_BYTE
- See Also:
- Constant Field Values
-
FIELD_TYPE_SHORT
public static final short FIELD_TYPE_SHORT
- See Also:
- Constant Field Values
-
FIELD_TYPE_INT
public static final short FIELD_TYPE_INT
- See Also:
- Constant Field Values
-
FIELD_TYPE_LONG
public static final short FIELD_TYPE_LONG
- See Also:
- Constant Field Values
-
FIELD_TYPE_FLOAT
public static final short FIELD_TYPE_FLOAT
- See Also:
- Constant Field Values
-
FIELD_TYPE_DOUBLE
public static final short FIELD_TYPE_DOUBLE
- See Also:
- Constant Field Values
-
FIELD_TYPE_BOOLEAN
public static final short FIELD_TYPE_BOOLEAN
- See Also:
- Constant Field Values
-
FIELD_TYPE_UNICODE_STRING
public static final short FIELD_TYPE_UNICODE_STRING
- See Also:
- Constant Field Values
-
FIELD_TYPE_SEQUENCE
public static final short FIELD_TYPE_SEQUENCE
- See Also:
- Constant Field Values
-
FIELD_TYPE_STRUCT
public static final short FIELD_TYPE_STRUCT
- See Also:
- Constant Field Values
-
FIELD_TYPE_EVENT
public static final short FIELD_TYPE_EVENT
- See Also:
- Constant Field Values
-
FIELD_TYPE_DATE
public static final short FIELD_TYPE_DATE
- See Also:
- Constant Field Values
-
FIELD_TYPE_CHAR
public static final short FIELD_TYPE_CHAR
- See Also:
- Constant Field Values
-
FIELD_TYPE_UNICODE_CHAR
public static final short FIELD_TYPE_UNICODE_CHAR
- See Also:
- Constant Field Values
-
FIELD_TYPE_STRING
public static final short FIELD_TYPE_STRING
- See Also:
- Constant Field Values
-
FIELD_TYPE_UNKNOWN
public static final short FIELD_TYPE_UNKNOWN
- See Also:
- Constant Field Values
-
FIELD_TYPE_VIRTUAL
public static final short FIELD_TYPE_VIRTUAL
- See Also:
- Constant Field Values
-
FIELD_LENGTH_SIZE
protected static final int FIELD_LENGTH_SIZE
- See Also:
- Constant Field Values
-
TYPE_SIZE
protected static final int TYPE_SIZE
- See Also:
- Constant Field Values
-
NAME_LENGTH_SIZE
protected static final int NAME_LENGTH_SIZE
- See Also:
- Constant Field Values
-
VALUE_LENGTH_SIZE
protected static final int VALUE_LENGTH_SIZE
- See Also:
- Constant Field Values
-
SEQUENCE_SIZE
protected static final int SEQUENCE_SIZE
- See Also:
- Constant Field Values
-
ELEMENT_TYPE_SIZE
protected static final int ELEMENT_TYPE_SIZE
- See Also:
- Constant Field Values
-
LOC_FIELD_LENGTH
protected static final int LOC_FIELD_LENGTH
- See Also:
- Constant Field Values
-
LOC_FIELD_TYPE
protected static final int LOC_FIELD_TYPE
- See Also:
- Constant Field Values
-
LOC_FIELD_NAME_LENGTH
protected static final int LOC_FIELD_NAME_LENGTH
- See Also:
- Constant Field Values
-
LOC_FIELD_NAME
protected static final int LOC_FIELD_NAME
- See Also:
- Constant Field Values
-
_headerSize
protected int _headerSize
-
_valueLength
protected int _valueLength
-
_fieldLength
protected int _fieldLength
-
_type
protected short _type
-
_nameLength
protected short _nameLength
-
_nameEncoded
protected byte[] _nameEncoded
-
_name
protected java.lang.String _name
-
-
Constructor Detail
-
TransportField
public TransportField()
-
TransportField
public TransportField(java.lang.String name)
-
TransportField
protected TransportField(int length, short type, short nameLength, byte[] nameEncoded)
-
TransportField
protected TransportField(TransportField sourceField)
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
changeName
protected void changeName(java.lang.String name)
-
calcHeaderSize
protected int calcHeaderSize()
-
getLength
public int getLength()
-
getType
public short getType()
-
getValueLength
public int getValueLength()
-
unmarshalValue
protected abstract int unmarshalValue(byte[] data, int offset)
-
getName
public java.lang.String getName()
-
marshal
public int marshal(byte[] dest, int offset)
-
unmarshal
public static TransportField unmarshal(byte[] data, int offset)
-
-