public final class DefaultWalkObserver extends java.lang.Object implements WalkObserver
Constructor and Description |
---|
DefaultWalkObserver() |
Modifier and Type | Method and Description |
---|---|
void |
beginArray(java.lang.Object array,
FieldInfo fieldInfo)
Called at the beginning of an array.
|
void |
beginCompound(java.lang.Object compound,
FieldInfo fieldInfo,
int elementIndex)
Called at the beginning of an compound field object.
|
void |
beginRoot(java.lang.Object compound)
Called for the root compound zserio object which is to be walked-through.
|
void |
endArray(java.lang.Object array,
FieldInfo fieldInfo)
Called at the end of an array.
|
void |
endCompound(java.lang.Object compound,
FieldInfo fieldInfo,
int elementIndex)
Called at the end of just walked compound object.
|
void |
endRoot(java.lang.Object compound)
Called at the end of just walked root compound zserio object.
|
void |
visitValue(java.lang.Object value,
FieldInfo fieldInfo,
int elementIndex)
Called when a simple (or an unset compound - i.e.
|
public void beginRoot(java.lang.Object compound)
WalkObserver
beginRoot
in interface WalkObserver
compound
- Root compound zserio object.public void endRoot(java.lang.Object compound)
WalkObserver
endRoot
in interface WalkObserver
compound
- Root compound zserio object.public void beginArray(java.lang.Object array, FieldInfo fieldInfo)
WalkObserver
beginArray
in interface WalkObserver
array
- Zserio array.fieldInfo
- Array field info.public void endArray(java.lang.Object array, FieldInfo fieldInfo)
WalkObserver
endArray
in interface WalkObserver
array
- Zserio array.fieldInfo
- Array field info.public void beginCompound(java.lang.Object compound, FieldInfo fieldInfo, int elementIndex)
WalkObserver
beginCompound
in interface WalkObserver
compound
- Compound zserio object.fieldInfo
- Compound field info.elementIndex
- Element index in array or NOT_ELEMENT if the compound is not in array.public void endCompound(java.lang.Object compound, FieldInfo fieldInfo, int elementIndex)
WalkObserver
endCompound
in interface WalkObserver
compound
- Compound zserio object.fieldInfo
- Compound field info.elementIndex
- Element index in array or NOT_ELEMENT if the compound is not in array.public void visitValue(java.lang.Object value, FieldInfo fieldInfo, int elementIndex)
WalkObserver
visitValue
in interface WalkObserver
value
- Simple value.fieldInfo
- Field info of the simple value.elementIndex
- Element index in array or NOT_ELEMENT if the compound is not in array.Last updated 2024-12-05 10:34:50