public class COSARAttrInt extends COSARAttr
Modifier and Type | Field and Description |
---|---|
protected int |
m_value |
Constructor and Description |
---|
COSARAttrInt(java.lang.String id) |
COSARAttrInt(java.lang.String id,
int value) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytesValue() |
double |
getDoubleValue() |
long |
getLongValue() |
long |
getMillisValue() |
OSARecAttr |
getRecAttr() |
java.lang.String |
getStringValue() |
int |
getValue() |
boolean |
setStringValue(java.lang.String value)
This function sets the attribute value based on a string.
|
boolean |
setValue(COSARAttr attr)
This function is used to convert the value of another
attribute to this type and store it.
|
void |
setValue(int value) |
java.lang.String |
toString() |
getDCField, getId, getIPValue, getType, idToInt, setId
public COSARAttrInt(java.lang.String id, int value)
public COSARAttrInt(java.lang.String id)
public int 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(int value)
public boolean setStringValue(java.lang.String value)
setStringValue
in class COSARAttr