|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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. |
ReadBuffer |
getChanges() Return a buffer containing changes made to this PofValue in the format defined by the BinaryDeltaCompressor . |
PofValue |
getChild(int nIndex) Locate a child PofValue contained within this PofValue. |
PofValue |
getParent() Return the parent of this value. |
PofValue |
getRoot() Return the root of the hierarchy this value belongs to. |
int |
getTypeId() Obtain the POF type identifier for this value. |
Object |
getValue() Return the deserialized value which this PofValue represents. |
Object |
getValue(Class clz) Return the deserialized value which this PofValue represents. |
Object |
getValue(int nType) Return the deserialized value which this PofValue represents. |
void |
setValue(Object oValue) Update this PofValue. |
Method Detail |
---|
int getTypeId()
PofValue getRoot()
PofValue getParent()
PofValue getChild(int nIndex)
nIndex
- index of the child valuePofNavigationException
- if this value is a "terminal" or the child value cannot be located for any other reasonObject getValue()
Object getValue(Class clz)
clz
- the required class of the returned value or null if the class is to be inferred from the serialized stateClassCastException
- if the value is incompatible with the specified classObject 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 stateClassCastException
- if the value is incompatible with the specified typevoid setValue(Object oValue)
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()
UnsupportedOperationException
- if called on a non-root PofValueReadBuffer getChanges()
BinaryDeltaCompressor
. <p/> Note: this method can only be called on the root PofValueUnsupportedOperationException
- if called on a non-root PofValue
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |