public abstract class COSARAttr
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
m_id
OSAR attr id
|
protected int |
m_type
OSAR attr type
|
Modifier | Constructor and Description |
---|---|
protected |
COSARAttr(int type,
java.lang.String id)
This constructor initializes a new COSARAttr based on type and id.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytesValue() |
DCField |
getDCField() |
double |
getDoubleValue() |
java.lang.String |
getId() |
byte[] |
getIPValue() |
long |
getLongValue() |
long |
getMillisValue() |
OSARecAttr |
getRecAttr() |
java.lang.String |
getStringValue() |
int |
getType() |
protected int |
idToInt() |
void |
setId(java.lang.String id) |
boolean |
setStringValue(java.lang.String value)
This function sets the attribute value based on a string.
|
boolean |
setValue(COSARAttr attr)
This function sets converts the value contained by the
passed attribute to the current type
|
java.lang.String |
toString() |
protected int m_type
protected java.lang.String m_id
protected COSARAttr(int type, java.lang.String id)
type
- The type of the OSAR attributeid
- The id of the OSAR attributepublic int getType()
public final java.lang.String getId()
public java.lang.String getStringValue() throws java.lang.Exception
java.lang.Exception
public long getLongValue() throws java.lang.Exception
java.lang.Exception
public long getMillisValue() throws java.lang.Exception
java.lang.Exception
public byte[] getIPValue() throws java.lang.Exception
java.lang.Exception
public byte[] getBytesValue() throws java.lang.Exception
java.lang.Exception
public double getDoubleValue() throws java.lang.Exception
java.lang.Exception
public OSARecAttr getRecAttr()
public DCField getDCField()
public java.lang.String toString()
toString
in class java.lang.Object
public final void setId(java.lang.String id)
public boolean setStringValue(java.lang.String value)
public boolean setValue(COSARAttr attr)
protected int idToInt()