public interface DOFResult<T> extends DOFImmutable
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
asBigInteger()
Returns the result's value as a BigInteger.
|
boolean |
asBoolean()
Returns the result's value as a boolean.
|
byte |
asByte()
Returns the result's value as a byte.
|
byte[] |
asBytes()
Returns the result's value as a byte array.
|
java.util.Date |
asDate()
Returns the result's value as a Date.
|
DOFInterfaceID |
asDOFInterfaceID()
Returns the result's value as a DOFInterfaceID.
|
DOFObjectID |
asDOFObjectID()
Returns the result's value as a DOFObjectID.
|
double |
asDouble()
Returns the result's value as a double.
|
float |
asFloat()
Returns the result's value as a float.
|
int |
asInt()
Returns the result's value as an int.
|
long |
asLong()
Returns the result's value as a Long.
|
short |
asShort()
Returns the result's value as a short.
|
java.lang.String |
asString()
Returns the result's value as a String.
|
T |
get()
Returns the result's value, if the result is a Get Property return value.
|
DOFProviderInfo |
getProviderInfo()
Get the provider information, if any, associated with this DOFResult.
|
DOFProviderInfo getProviderInfo()
T get()
int asInt()
DOFInt32
,
DOFUInt16
and all types accepted by asShort()
.
Throws ClassCastException if called on a non-integer result.long asLong()
DOFUInt32
, DOFInt64
and all types accepted by asInt()
.
Throws ClassCastException if called on a non-integer result.byte asByte()
DOFInt8
.
Throws ClassCastException if called on a non-byte result.short asShort()
DOFUInt8
,
DOFInt16
and all types accepted by asByte()
.
Throws ClassCastException if called on a non-short result.java.math.BigInteger asBigInteger()
DOFUInt64
and all types supported by asLong()
.
Throws ClassCastException if called on a non-long result.boolean asBoolean()
DOFBoolean
.
Throws ClassCastException if called on a non-boolean result.float asFloat()
DOFFloat32
.
Throws ClassCastException if called on a non-float result.double asDouble()
DOFFloat64
and all types accepted by asFloat()
.
Throws ClassCastException if called on a non-double result.java.util.Date asDate()
DOFDateTime
.
Throws ClassCastException if called on a non-Date result.DOFObjectID asDOFObjectID()
DOFObjectID
.
Throws ClassCastException if called on a non-DOFObjectID result.DOFInterfaceID asDOFInterfaceID()
DOFInterfaceID
.
Throws ClassCastException if called on a non-DOFInterfaceID result.byte[] asBytes()
DOFBlob
.
Throws ClassCastException if called on a non-DOFBlob result.java.lang.String asString()
DOFString
.
Throws ClassCastException if called on a non-String result.