|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.latencybusters.lbm.sdm.LBMSDM
com.latencybusters.lbm.sdm.LBMSDMField
com.latencybusters.lbm.sdm.LBMSDMFieldDecimal
com.latencybusters.lbm.sdm.LBMSDMArrayDecimal
public class LBMSDMArrayDecimal
Implements an SDM Field that is an array of Decimals.
Field Summary |
---|
Fields inherited from class com.latencybusters.lbm.sdm.LBMSDMFieldDecimal |
---|
internalValue |
Fields inherited from class com.latencybusters.lbm.sdm.LBMSDM |
---|
DEBUG_BASIC, debug_level, DEBUG_VERBOSE_PARSING |
Constructor Summary | |
---|---|
LBMSDMArrayDecimal(java.lang.String name)
Constructor for a new array field |
|
LBMSDMArrayDecimal(java.lang.String name,
boolean nullfield)
Constructor for a new array field |
Method Summary | |
---|---|
void |
append(LBMSDMField newfield)
Append a value to the end of the array |
void |
append(LBMSDMRawDecimal v)
Append a value to the end of the array |
LBMSDMArrayDecimal |
clone()
Get a copy of this object |
int |
format(byte[] buf,
int offset)
Format the array in to a byte buffer |
int |
get_len()
Get the length of formatted field |
LBMSDMRawDecimal |
get()
Get the current field for this array |
LBMSDMRawDecimal |
get(int idx)
Get the field for a specific array index |
boolean |
hasNext()
Check to see if there is a next value |
int |
length()
Get the length of this array |
LBMSDMRawDecimal |
next()
Get the next element in the array |
int |
parse(byte[] buf,
int offset)
Parse a byte buffer and store the value |
void |
remove()
Remove the current element |
void |
remove(int element)
Remove an array element |
void |
reset()
Reset the current element to the first |
void |
Reset()
Reset the current element to the first |
void |
set(LBMSDMField newfield,
int arrayindex)
Set the current element based on the array index |
void |
set(LBMSDMRawDecimal v)
Set the current element |
void |
set(LBMSDMRawDecimal v,
int idx)
Set the current element based on the index |
java.lang.String |
toDbgString()
Get a string useful for debugging |
java.lang.String |
toString()
Get the string form of the raw decimal |
Methods inherited from class com.latencybusters.lbm.sdm.LBMSDMFieldDecimal |
---|
fixed_size, get_base_len |
Methods inherited from class com.latencybusters.lbm.sdm.LBMSDMField |
---|
add_element, format_name, format_type, get_name, getType, getType, getTypeString, internalString, isNull, name_len, sameBaseType, sameType, set_name, setNull, type_len |
Methods inherited from class com.latencybusters.lbm.sdm.LBMSDM |
---|
log, set_debug_level |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LBMSDMArrayDecimal(java.lang.String name)
name
- The name of the fieldpublic LBMSDMArrayDecimal(java.lang.String name, boolean nullfield)
name
- The name of the fieldnullfield
- Boolean indicating if the field is a null field (true) or if its an array of 0 elements (non-null)Method Detail |
---|
public LBMSDMRawDecimal get()
get
in class LBMSDMFieldDecimal
public LBMSDMRawDecimal get(int idx) throws LBMSDMException
idx
- The array index
LBMSDMOutOfRangeException
- when idx exceeds the number of elements in the array
LBMSDMException
public int get_len()
get_len
in class LBMSDMFieldDecimal
public void set(LBMSDMRawDecimal v) throws LBMSDMException
set
in class LBMSDMFieldDecimal
v
- The value to be set
LBMSDMException
public void set(LBMSDMRawDecimal v, int idx) throws LBMSDMException
v
- The value to be setidx
- The element of the array to be set
LBMSDMBadRawObjectException
- when a null raw object is passed in
LBMSDMException
public void set(LBMSDMField newfield, int arrayindex) throws LBMSDMException
set
in class LBMSDMField
newfield
- The new fieldarrayindex
- The array index in the field
LBMSDMOutOfRangeException
- when the array index exceeds the number of fields in the array
LBMSDMAddingFieldException
- when a field doesnt exist at the array index
LBMSDMException
public void append(LBMSDMField newfield) throws LBMSDMException
append
in class LBMSDMField
newfield
- The field value to be appended
LBMSDMException
- when a non array field tries to call append()public void append(LBMSDMRawDecimal v) throws LBMSDMException
v
- The field value to be appended
LBMSDMException
public java.lang.String toDbgString()
toDbgString
in class LBMSDMFieldDecimal
public int format(byte[] buf, int offset) throws LBMSDMException
format
in class LBMSDMFieldDecimal
buf
- The byte buffer to have the array formatted inoffset
- The offset to begin formatting in the buffer
LBMSDMException
- when an unexpected error occurs within LBMSDMpublic java.lang.String toString()
toString
in class LBMSDMFieldDecimal
public int parse(byte[] buf, int offset) throws LBMSDMException
parse
in class LBMSDMFieldDecimal
buf
- The byte buffer to be parsed for the arrayoffset
- The offset to begin parsing the buffer
LBMSDMException
- parse() should be overriddenpublic int length()
length
in class LBMSDMField
public LBMSDMArrayDecimal clone() throws java.lang.CloneNotSupportedException
clone
in class LBMSDMFieldDecimal
java.lang.CloneNotSupportedException
public void remove()
remove
in interface java.util.Iterator
public LBMSDMRawDecimal next()
next
in interface java.util.Iterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
public void reset()
public void Reset()
public void remove(int element)
remove
in class LBMSDMField
element
- The element index to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |