| Constructor and Description |
|---|
ApiValueBase()
Create a
AR_DATA_TYPE_NULL value. |
ApiValueBase(int v)
Create a
AR_DATA_TYPE_INTEGER value. |
ApiValueBase(long l)
Create a
AR_DATA_TYPE_ULONG value. |
ApiValueBase(String v)
Create a
AR_DATA_TYPE_CHAR value. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
DataType |
getDataType()
Returns the underlying Object's datatype
DataType. |
int |
getIntValue() |
Object |
getValue()
Returns the underlying value as a generic Object.
|
public ApiValueBase()
AR_DATA_TYPE_NULL value.public ApiValueBase(int v)
AR_DATA_TYPE_INTEGER value.public ApiValueBase(String v)
AR_DATA_TYPE_CHAR value.public ApiValueBase(long l)
AR_DATA_TYPE_ULONG value.public Object getValue()
Object value = value.getValue();
DataType type = value.getDataType();
switch(type)
{
case DataType.ULONG:
Long longValue = (Long) value;
case DataType.INTEGER:
Integer intValue = (Integer) value;
public int getIntValue()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException? Copyright 2013 BMC Software, Inc.