public abstract class SecsDataStructure extends java.lang.Object implements SecsFormat, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
SecsFormat |
theData |
Constructor and Description |
---|
SecsDataStructure() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object newData)
Performs a comparision of this object to an object of the same type.
|
SecsFormat[] |
getArray()
This allows for arrays of secsformats (not a list of secsformats).
|
boolean |
getBoolValue()
Returns the value of the format as a boolean.
|
byte |
getByteValue()
Returns the value of the format as a byte.
|
SecsFormat |
getData()
Return the raw SecsFormat object.
|
double |
getDoubleValue()
Returns the value of the format as a double.
|
float |
getFloatValue()
Returns the value of the format as a float.
|
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 value of the format as a int.
|
int |
getLength()
Returns the length of the format.
|
long |
getLongValue()
Returns the value of the format as a long.
|
int |
getNumberOfLengthBytes()
Returns the number of length bytes.
|
short |
getShortValue()
Returns the value of the format as a short.
|
java.lang.String |
getStringValue()
Returns the value of the format as a string.
|
int |
hashCode() |
void |
setArray(SecsFormat[] newValues)
This allows for a standard way to set arrays of secsformats.
|
void |
setDataFromByteArray(byte[] temp,
int offset,
int length)
This is only be called on the raw secsFormat classes.
|
void |
setLength(int newValue)
Sets the length of the format.
|
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()
Returns true if the format is zero length.
|
public static final java.lang.String cvsRev
public SecsFormat theData
public boolean equals(java.lang.Object newData)
equals
in class java.lang.Object
public SecsFormat[] getArray()
getArray
in interface SecsFormat
public boolean getBoolValue()
SecsFormat
getBoolValue
in interface SecsFormat
public byte getByteValue()
SecsFormat
getByteValue
in interface SecsFormat
public SecsFormat getData()
public double getDoubleValue()
SecsFormat
getDoubleValue
in interface SecsFormat
public float getFloatValue()
SecsFormat
getFloatValue
in interface SecsFormat
public byte[] getFormattedBytes() throws SecsException
getFormattedBytes
in interface SecsFormat
SecsException
public int getIntValue()
SecsFormat
getIntValue
in interface SecsFormat
public int getLength()
SecsFormat
getLength
in interface SecsFormat
public long getLongValue()
SecsFormat
getLongValue
in interface SecsFormat
public int getNumberOfLengthBytes()
getNumberOfLengthBytes
in interface SecsFormat
public short getShortValue()
SecsFormat
getShortValue
in interface SecsFormat
public java.lang.String getStringValue()
SecsFormat
getStringValue
in interface SecsFormat
public int hashCode()
hashCode
in class java.lang.Object
public void setArray(SecsFormat[] newValues) throws SecsException
setArray
in interface SecsFormat
SecsException
public void setDataFromByteArray(byte[] temp, int offset, int length) throws SecsException
setDataFromByteArray
in interface SecsFormat
SecsException
public void setLength(int newValue)
SecsFormat
setLength
in interface SecsFormat
newValue
- the new lengthpublic 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 java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indentCount)
toString
in interface SecsFormat
the
- indentationpublic boolean zeroLength()
SecsFormat
zeroLength
in interface SecsFormat
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.