public class SecsFormat00 extends java.util.Vector<SecsFormat> implements SecsFormat
Modifier and Type | Field and Description |
---|---|
int |
currentPosition
This is a convienence variable.
|
static java.lang.String |
cvsRev |
static java.lang.String |
indentCharacters
sets the indent charaters for SML formatting.
|
static boolean |
JSON
Set to true to output the "toString" as JSON.
|
Constructor and Description |
---|
SecsFormat00()
Required default constructor
|
SecsFormat00(int newValue)
Creates an empty list of the provided length.
|
SecsFormat00(SecsFormat onlyOne)
Creates a list of length one containing only the object provided.
|
SecsFormat00(SecsFormat[] theData)
Create the list from an array of SecsFormat objects.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
SecsFormat element)
Check for null element
|
boolean |
add(SecsFormat obj)
Check for null element
|
void |
addBinaryValue(byte value)
Add a simple type to the list
|
void |
addBinaryValues(byte[] values)
Add a simple type to the list
|
void |
addBoolValue(boolean value)
Add a simple type to the list
|
void |
addByteValue(byte value)
Add a simple type to the list
|
void |
addDoubleValue(double value)
Add a simple type to the list
|
void |
addElement(SecsFormat obj)
Provides backwards compatibility.
|
void |
addFloatValue(float value)
Add a simple type to the list
|
void |
addIntValue(int value)
Add a simple type to the list
|
void |
addLongValue(long value)
Add a simple type to the list
|
void |
addShortValue(short value)
Add a simple type to the list
|
void |
addStringValue(java.lang.String value)
Add a simple type to the list
|
void |
addUByteValue(short value)
Add a simple type to the list
|
void |
addUIntValue(long value)
Add a simple type to the list
|
void |
addULongValue(long value)
Add a simple type to the list
|
void |
addUShortValue(int value)
Add a simple type to the list
|
SecsFormat |
elementAt(int index)
Provides backwards compatibility.
|
SecsFormat[] |
getArray()
This allows for arrays of secsformats (not a list of secsformats).
|
boolean |
getBoolValue()
This method is required by the interface and has no meaning to the list.
|
byte |
getByteValue()
This method is required by the interface and has no meaning to the list.
|
double |
getDoubleValue()
Add a simple type to the list
|
float |
getFloatValue()
Add a simple type to the list
|
byte[] |
getFormattedBytes()
Returns the list in a manner suitable for encoding directly into a SECS
message byte stream used over SECSI or HSMS transport.
|
int |
getIntValue()
This method is required by the interface and has no meaning to the list.
|
int |
getLength()
Returns the number of elements in the SecsFormat00.
|
long |
getLongValue()
This method is required by the interface and has no meaning to the list.
|
int |
getNumberOfLengthBytes()
Returns the number of length bytes.
|
short |
getShortValue()
This method is required by the interface and has no meaning to the list.
|
java.lang.String |
getStringValue()
This method is required by the interface and has no meaning to the list.
|
void |
insertElementAt(SecsFormat obj,
int index)
Check for null element
|
SecsFormat |
set(int index,
SecsFormat element)
Check for null element
|
void |
setArray(SecsFormat[] newValues)
This allows for a standard way to set arrays of secsformats.
|
void |
setDataFromByteArray(byte[] temp,
int offset,
int length)
This method should not be called.
|
void |
setElementAt(SecsFormat obj,
int index)
Check for null element
|
void |
setLength(int newValue)
Requests that the length of the list be set to the provided length.
|
void |
setNumberOfLengthBytes(int numberOfLengthBytes)
Sets the number of length bytes to send when the format is encoded.
|
static void |
setUnrecoverableErrorHandler(UnrecoverableErrorInterface errorHandler) |
java.lang.String |
toSMLString()
Returns the SML string representing this value
|
java.lang.String |
toString() |
java.lang.String |
toString(int indentCount)
Returns the indented SML string representing this value.
|
boolean |
zeroLength()
Ask if the list is a zero length list.
|
addAll, addAll, capacity, clear, clone, contains, containsAll, copyInto, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSize
public int currentPosition
public static final java.lang.String cvsRev
public static java.lang.String indentCharacters
public static boolean JSON
public SecsFormat00()
public SecsFormat00(int newValue)
newValue
- the length of the new listpublic SecsFormat00(SecsFormat onlyOne)
onlyOne
- the object to place in the List.public SecsFormat00(SecsFormat[] theData)
theData
- and array of SecsFormat objects as defined by the message definition.public void add(int index, SecsFormat element)
add
in interface java.util.List<SecsFormat>
add
in class java.util.Vector<SecsFormat>
public boolean add(SecsFormat obj)
add
in interface java.util.Collection<SecsFormat>
add
in interface java.util.List<SecsFormat>
add
in class java.util.Vector<SecsFormat>
public void addBinaryValue(byte value)
public void addBinaryValues(byte[] values)
public void addBoolValue(boolean value)
public void addByteValue(byte value)
public void addDoubleValue(double value)
public void addElement(SecsFormat obj)
addElement
in class java.util.Vector<SecsFormat>
public void addFloatValue(float value)
public void addIntValue(int value)
public void addLongValue(long value)
public void addShortValue(short value)
public void addStringValue(java.lang.String value)
public void addUByteValue(short value)
public void addUIntValue(long value)
public void addULongValue(long value)
public void addUShortValue(int value)
public SecsFormat elementAt(int index)
elementAt
in class java.util.Vector<SecsFormat>
public SecsFormat[] getArray()
getArray
in interface SecsFormat
public boolean getBoolValue()
getBoolValue
in interface SecsFormat
public byte getByteValue()
getByteValue
in interface SecsFormat
public double getDoubleValue()
getDoubleValue
in interface SecsFormat
public float getFloatValue()
getFloatValue
in interface SecsFormat
public byte[] getFormattedBytes() throws SecsException
getFormattedBytes
in interface SecsFormat
SecsException
public int getIntValue()
getIntValue
in interface SecsFormat
public int getLength()
getLength
in interface SecsFormat
public long getLongValue()
getLongValue
in interface SecsFormat
public int getNumberOfLengthBytes()
getNumberOfLengthBytes
in interface SecsFormat
public short getShortValue()
getShortValue
in interface SecsFormat
public java.lang.String getStringValue()
getStringValue
in interface SecsFormat
public void insertElementAt(SecsFormat obj, int index)
insertElementAt
in class java.util.Vector<SecsFormat>
public SecsFormat set(int index, SecsFormat element)
set
in interface java.util.List<SecsFormat>
set
in class java.util.Vector<SecsFormat>
public void setArray(SecsFormat[] newValues) throws SecsException
setArray
in interface SecsFormat
SecsException
public void setDataFromByteArray(byte[] temp, int offset, int length)
setDataFromByteArray
in interface SecsFormat
public void setElementAt(SecsFormat obj, int index)
setElementAt
in class java.util.Vector<SecsFormat>
public void setLength(int newValue)
setLength
in interface SecsFormat
newValue
- the new requested length for the listpublic void setNumberOfLengthBytes(int numberOfLengthBytes) throws java.lang.IllegalArgumentException
setNumberOfLengthBytes
in interface SecsFormat
numberOfLengthBytes
- the new number of length bytes. This should
be 1, 2,3 or -1 to indicate the defaultjava.lang.IllegalArgumentException
- if the value is not 1, 2, 3 or -1public static void setUnrecoverableErrorHandler(UnrecoverableErrorInterface errorHandler)
public java.lang.String toSMLString()
public java.lang.String toString()
toString
in class java.util.Vector<SecsFormat>
public java.lang.String toString(int indentCount)
toString
in interface SecsFormat
the
- indentationpublic boolean zeroLength()
zeroLength
in interface SecsFormat
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.