public interface WalkObserver
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.
|
void beginRoot(java.lang.Object compound)
compound
- Root compound zserio object.void endRoot(java.lang.Object compound)
compound
- Root compound zserio object.void beginArray(java.lang.Object array, FieldInfo fieldInfo)
array
- Zserio array.fieldInfo
- Array field info.void endArray(java.lang.Object array, FieldInfo fieldInfo)
array
- Zserio array.fieldInfo
- Array field info.void beginCompound(java.lang.Object compound, FieldInfo fieldInfo, int elementIndex)
compound
- Compound zserio object.fieldInfo
- Compound field info.elementIndex
- Element index in array or NOT_ELEMENT if the compound is not in array.void endCompound(java.lang.Object compound, FieldInfo fieldInfo, int elementIndex)
compound
- Compound zserio object.fieldInfo
- Compound field info.elementIndex
- Element index in array or NOT_ELEMENT if the compound is not in array.void visitValue(java.lang.Object value, FieldInfo fieldInfo, int elementIndex)
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