public class SecsFormat11 extends java.lang.Object implements SecsFormat
| Modifier and Type | Field and Description |
|---|---|
SecsFormat[] |
dataArray
This is the array of data if we receive an array.
|
int |
length
The length of this data, defaults to one.
|
boolean |
theData
The data value for this format.
|
| Constructor and Description |
|---|
SecsFormat11()
Creates a new object with the value "false".
|
SecsFormat11(boolean newValue)
Creates a new object with the value provided.
|
SecsFormat11(int newValue)
Creates a new object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
SecsFormat[] |
getArray()
This allows for arrays of secsformats (not a list of secsformats).
|
boolean |
getBoolValue()
Returns the current value.
|
byte |
getByteValue()
Returns the current value as a long.
|
double |
getDoubleValue()
Returns the current value as a long.
|
float |
getFloatValue()
Returns the current value as a long.
|
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()
Returns the current value as a long.
|
int |
getLength()
Returns the number of elements in the SecsFormat00.
|
long |
getLongValue()
Returns the current value as a long.
|
int |
getNumberOfLengthBytes()
Returns the number of length bytes.
|
short |
getShortValue()
Returns the current value as a long.
|
java.lang.String |
getStringValue()
Returns the current value as a string.
|
int |
hashCode() |
void |
setArray(SecsFormat[] array)
Set the data array if this is an array.
|
void |
setDataFromByteArray(byte[] temp,
int offset,
int length)
Interprets the data provided to create fill in an object of this type.
|
void |
setLength(int newValue)
Sets the length of format to the new value.
|
void |
setNumberOfLengthBytes(int numberOfLengthBytes)
Sets the number of length bytes to send when the format is encoded.
|
java.lang.String |
toString()
Returns the SML string representing this value
|
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.
|
public SecsFormat[] dataArray
public int length
public boolean theData
public SecsFormat11()
public SecsFormat11(boolean newValue)
the - initial value for the object.public SecsFormat11(int newValue)
newValue - the initial value to usepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic SecsFormat[] getArray()
getArray in interface SecsFormatpublic boolean getBoolValue()
getBoolValue in interface SecsFormatpublic byte getByteValue()
getByteValue in interface SecsFormatpublic double getDoubleValue()
getDoubleValue in interface SecsFormatpublic float getFloatValue()
getFloatValue in interface SecsFormatpublic byte[] getFormattedBytes()
getFormattedBytes in interface SecsFormatpublic int getIntValue()
getIntValue in interface SecsFormatpublic int getLength()
getLength in interface SecsFormatpublic long getLongValue()
getLongValue in interface SecsFormatpublic int getNumberOfLengthBytes()
getNumberOfLengthBytes in interface SecsFormatpublic short getShortValue()
getShortValue in interface SecsFormatpublic java.lang.String getStringValue()
getStringValue in interface SecsFormatpublic int hashCode()
hashCode in class java.lang.Objectpublic void setArray(SecsFormat[] array) throws SecsException
setArray in interface SecsFormatSecsExceptionpublic void setDataFromByteArray(byte[] temp,
int offset,
int length)
throws SecsException
setDataFromByteArray in interface SecsFormattemp - SECSII formatted data.SecsExceptionpublic void setLength(int newValue)
setLength in interface SecsFormatnewValue - the new lengthpublic void setNumberOfLengthBytes(int numberOfLengthBytes)
throws java.lang.IllegalArgumentException
setNumberOfLengthBytes in interface SecsFormatnumberOfLengthBytes - 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 java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int indentCount)
toString in interface SecsFormatthe - indentationpublic boolean zeroLength()
zeroLength in interface SecsFormatCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.