|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PofValue
PofValue represents the POF data structure in a POF stream, or any sub-structure or value thereof.
PofValueParser.parse(ReadBuffer, PofContext)
Method Summary | |
---|---|
Binary |
applyChanges() Apply all the changes that were made to this value and return a binary representation of the new value. |
java.math.BigDecimal |
getBigDecimal() Return the BigDecimal which this PofValue represents. |
java.math.BigInteger |
getBigInteger() Return the BigInteger which this PofValue represents. |
boolean |
getBoolean() Return the boolean which this PofValue represents. |
boolean[] |
getBooleanArray() Return the boolean[] which this PofValue represents. |
byte |
getByte() Return the byte which this PofValue represents. |
byte[] |
getByteArray() Return the byte[] which this PofValue represents. |
ReadBuffer |
getChanges() Return a buffer containing changes made to this PofValue in the format defined by the BinaryDeltaCompressor . |
char |
getChar() Return the char which this PofValue represents. |
char[] |
getCharArray() Return the char[] which this PofValue represents. |
PofValue |
getChild(int nIndex) Locate a child PofValue contained within this PofValue. |
java.util.Collection |
getCollection(java.util.Collection coll) Return the Collection which this PofValue represents. |
java.util.Date |
getDate() Return the Date which this PofValue represents. |
double |
getDouble() Return the double which this PofValue represents. |
double[] |
getDoubleArray() Return the double[] which this PofValue represents. |
float |
getFloat() Return the float which this PofValue represents. |
float[] |
getFloatArray() Return the float[] which this PofValue represents. |
int |
getInt() Return the int which this PofValue represents. |
int[] |
getIntArray() Return the int[] which this PofValue represents. |
long |
getLong() Return the long which this PofValue represents. |
long[] |
getLongArray() Return the long[] which this PofValue represents. |
java.util.Map |
getMap(java.util.Map map) Return the Map which this PofValue represents. |
java.lang.Object[] |
getObjectArray() Return the Object[] which this PofValue represents. |
PofValue |
getParent() Return the parent of this value. |
PofValue |
getRoot() Return the root of the hierarchy this value belongs to. |
short |
getShort() Return the short which this PofValue represents. |
short[] |
getShortArray() Return the short[] which this PofValue represents. |
java.lang.String |
getString() Return the String which this PofValue represents. |
int |
getTypeId() Obtain the POF type identifier for this value. |
java.lang.Object |
getValue() Return the deserialized value which this PofValue represents. |
java.lang.Object |
getValue(java.lang.Class clz) Return the deserialized value which this PofValue represents. |
java.lang.Object |
getValue(int nType) Return the deserialized value which this PofValue represents. |
void |
setValue(java.lang.Object oValue) Update this PofValue. |
Method Detail |
---|
int getTypeId()
PofValue getRoot()
PofValue getParent()
PofValue getChild(int nIndex)
Note: the returned PofValue could represent a non-existent (null) value.
nIndex
- index of the child valuePofNavigationException
- if this value is a "terminal" or the child value cannot be located for any other reasonjava.lang.Object getValue()
java.lang.Object getValue(java.lang.Class clz)
clz
- the required class of the returned value or null if the class is to be inferred from the serialized statejava.lang.ClassCastException
- if the value is incompatible with the specified classjava.lang.Object getValue(int nType)
nType
- the required Pof type of the returned value or PofConstants.T_UNKNOWN
if the type is to be inferred from the serialized statejava.lang.ClassCastException
- if the value is incompatible with the specified typevoid setValue(java.lang.Object oValue)
The changes made using this method will be immediately reflected in the result of getValue()
method, but will not be applied to the underlying POF stream until the applyChanges()
method is invoked on the root PofValue.
oValue
- new deserialized value for this PofValueBinary applyChanges()
Any format prefixes and/or decorations that were present in the original buffer this value orginated from will be preserved.
Note: this method can only be called on the root PofValue.
java.lang.UnsupportedOperationException
- if called on a non-root PofValueReadBuffer getChanges()
BinaryDeltaCompressor
.
Note: this method can only be called on the root PofValue
java.lang.UnsupportedOperationException
- if called on a non-root PofValueboolean getBoolean()
byte getByte()
char getChar()
short getShort()
int getInt()
long getLong()
float getFloat()
double getDouble()
boolean[] getBooleanArray()
byte[] getByteArray()
char[] getCharArray()
short[] getShortArray()
int[] getIntArray()
long[] getLongArray()
float[] getFloatArray()
double[] getDoubleArray()
java.math.BigInteger getBigInteger()
java.math.BigDecimal getBigDecimal()
java.lang.String getString()
java.util.Date getDate()
java.lang.Object[] getObjectArray()
java.util.Collection getCollection(java.util.Collection coll)
coll
- the optional Collection to use to store the valuesjava.util.Map getMap(java.util.Map map)
map
- the optional Map to use to store the values
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |