Package com.nt.udc.io
Class COSARAttrByte
java.lang.Object
com.nt.udc.io.COSARAttr
com.nt.udc.io.COSARAttrByte
This class represents the byte OSAR Attribute.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
double
long
long
byte
getValue()
boolean
setStringValue
(String value) This function sets the attribute value based on a stringvoid
setValue
(byte value) boolean
This function sets converts the value contained by the passed attribute to the current typetoString()
Methods inherited from class com.nt.udc.io.COSARAttr
getDCField, getId, getIPValue, getType, idToInt, setId
-
Field Details
-
m_value
protected byte m_value
-
-
Constructor Details
-
COSARAttrByte
-
COSARAttrByte
-
-
Method Details
-
getValue
public byte getValue() -
getStringValue
- Overrides:
getStringValue
in classCOSARAttr
- Returns:
- The value as a string
- Throws:
Exception
-
getLongValue
- Overrides:
getLongValue
in classCOSARAttr
- Returns:
- The value as a long
- Throws:
Exception
-
getDoubleValue
- Overrides:
getDoubleValue
in classCOSARAttr
- Returns:
- The value as a double
- Throws:
Exception
-
getMillisValue
- Overrides:
getMillisValue
in classCOSARAttr
- Returns:
- The value as in milliseconds
- Throws:
Exception
-
getBytesValue
- Overrides:
getBytesValue
in classCOSARAttr
- Returns:
- The value as an array of bytes
- Throws:
Exception
-
getRecAttr
- Overrides:
getRecAttr
in classCOSARAttr
- Returns:
- The equivalent OSARecAttr
-
toString
-
setValue
public void setValue(byte value) -
setValue
Description copied from class:COSARAttr
This function sets converts the value contained by the passed attribute to the current type -
setStringValue
This function sets the attribute value based on a string- Overrides:
setStringValue
in classCOSARAttr
- Returns:
- true if successful, false otherwise
-