public class COSARAttrByte extends COSARAttr
Modifier and Type | Field and Description |
---|---|
protected byte |
m_value |
Constructor and Description |
---|
COSARAttrByte(java.lang.String id) |
COSARAttrByte(java.lang.String id,
byte value) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytesValue() |
double |
getDoubleValue() |
long |
getLongValue() |
long |
getMillisValue() |
OSARecAttr |
getRecAttr() |
java.lang.String |
getStringValue() |
byte |
getValue() |
boolean |
setStringValue(java.lang.String value)
This function sets the attribute value based on a string
|
void |
setValue(byte value) |
boolean |
setValue(COSARAttr attr)
This function sets converts the value contained by the
passed attribute to the current type
|
java.lang.String |
toString() |
getDCField, getId, getIPValue, getType, idToInt, setId
public COSARAttrByte(java.lang.String id, byte value)
public COSARAttrByte(java.lang.String id)
public byte getValue()
public java.lang.String getStringValue() throws java.lang.Exception
getStringValue
in class COSARAttr
java.lang.Exception
public long getLongValue() throws java.lang.Exception
getLongValue
in class COSARAttr
java.lang.Exception
public double getDoubleValue() throws java.lang.Exception
getDoubleValue
in class COSARAttr
java.lang.Exception
public long getMillisValue() throws java.lang.Exception
getMillisValue
in class COSARAttr
java.lang.Exception
public byte[] getBytesValue() throws java.lang.Exception
getBytesValue
in class COSARAttr
java.lang.Exception
public OSARecAttr getRecAttr()
getRecAttr
in class COSARAttr
public java.lang.String toString()
public void setValue(byte value)
public boolean setValue(COSARAttr attr)
COSARAttr
public boolean setStringValue(java.lang.String value)
setStringValue
in class COSARAttr