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, setIdpublic 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 COSARAttrjava.lang.Exceptionpublic long getLongValue()
throws java.lang.Exception
getLongValue in class COSARAttrjava.lang.Exceptionpublic double getDoubleValue()
throws java.lang.Exception
getDoubleValue in class COSARAttrjava.lang.Exceptionpublic long getMillisValue()
throws java.lang.Exception
getMillisValue in class COSARAttrjava.lang.Exceptionpublic byte[] getBytesValue()
throws java.lang.Exception
getBytesValue in class COSARAttrjava.lang.Exceptionpublic OSARecAttr getRecAttr()
getRecAttr in class COSARAttrpublic java.lang.String toString()
public void setValue(int value)
public boolean setStringValue(java.lang.String value)
setStringValue in class COSARAttr