|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.latencybusters.pdm.PDMFieldInfo
public class PDMFieldInfo
A handle to field information returned from a PDMDefinition
that is used when adding a field value to a PDMMessage
.
Field Summary | |
---|---|
protected static int |
INT_NAME_KNOWN_LEN
|
Constructor Summary | |
---|---|
protected |
PDMFieldInfo()
|
protected |
PDMFieldInfo(int id,
int name,
PDMFieldType type,
boolean required)
Constructor used for single value fields with int names (except for fixed length strings) |
protected |
PDMFieldInfo(int id,
int name,
PDMFieldType type,
int fixedStrLen,
boolean required)
Constructor used for single value fixed-length string fields with int names |
protected |
PDMFieldInfo(int id,
java.lang.String strName,
int intName,
PDMFieldType type,
int fixedStrLen,
boolean required,
int numElements)
General constructor used for any single value or array field of fixed length or variable length with string or int names |
protected |
PDMFieldInfo(int id,
java.lang.String name,
PDMFieldType type,
boolean required)
Constructor used for single value fields with string names (except for fixed length strings) |
protected |
PDMFieldInfo(int id,
java.lang.String name,
PDMFieldType type,
int fixedStrLen,
boolean required)
Constructor used for single value fixed-length string fields with String names |
Method Summary | |
---|---|
protected int |
getFixedStrLen()
|
protected int |
getId()
|
int |
getIntName()
|
protected int |
getLen()
|
protected int |
getNumElements()
|
java.lang.String |
getStrName()
|
PDMFieldType |
getType()
|
protected boolean |
isArray()
|
protected boolean |
isFixed()
|
protected boolean |
isRequired()
|
protected int |
parse(PDMDeserializer deser,
byte[] ba)
Parses the byte array into this object |
protected int |
parse(PDMDeserializer deser,
byte[] ba,
int pos)
Parses the byte array at position into this object |
protected byte[] |
toBytes(PDMSerializer ser)
Serializes this object to a new byte array |
protected int |
toBytes(PDMSerializer ser,
byte[] ba,
int pos)
Serializes this object to an existing byte array at position |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int INT_NAME_KNOWN_LEN
Constructor Detail |
---|
protected PDMFieldInfo()
protected PDMFieldInfo(int id, java.lang.String name, PDMFieldType type, boolean required)
id
- the internal idname
- the string nametype
- the typerequired
- whether or not the field is requiredprotected PDMFieldInfo(int id, int name, PDMFieldType type, boolean required)
id
- the internal idname
- the int nametype
- the typerequired
- whether or not the field is requiredprotected PDMFieldInfo(int id, java.lang.String name, PDMFieldType type, int fixedStrLen, boolean required)
id
- the internal idname
- the string nametype
- the typefixedStrLen
- the fixed string length for this fieldrequired
- whether or not the field is requiredprotected PDMFieldInfo(int id, int name, PDMFieldType type, int fixedStrLen, boolean required)
id
- the internal idname
- the int nametype
- the typefixedStrLen
- the fixed string length for this fieldrequired
- whether or not the field is requiredprotected PDMFieldInfo(int id, java.lang.String strName, int intName, PDMFieldType type, int fixedStrLen, boolean required, int numElements)
id
- the internal id of the field infostrName
- the string nameintName
- the int nametype
- the typefixedStrLen
- the fixed string length for this fieldrequired
- whether or not the field is requirednumElements
- the number of array elements for fixed-size arrays or 0Method Detail |
---|
protected int getId()
protected boolean isRequired()
protected boolean isFixed()
protected int getLen()
protected int getFixedStrLen()
protected int getNumElements()
public PDMFieldType getType()
protected boolean isArray()
public java.lang.String getStrName()
public int getIntName()
protected byte[] toBytes(PDMSerializer ser)
ser
-
protected int toBytes(PDMSerializer ser, byte[] ba, int pos)
ser
- ba
- pos
-
protected int parse(PDMDeserializer deser, byte[] ba)
deser
- ba
-
protected int parse(PDMDeserializer deser, byte[] ba, int pos)
deser
- ba
- pos
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |