Package org.ivoa.vodml.serialization
Class InstanceSerializer.InstanceSerializationVisitor
- java.lang.Object
-
- org.ivoa.vodml.serialization.InstanceSerializer.InstanceSerializationVisitor
-
- All Implemented Interfaces:
ModelInstanceTraverser.FullVisitor,ModelInstanceTraverser.Visitor
- Enclosing class:
- InstanceSerializer<T>
public class InstanceSerializer.InstanceSerializationVisitor extends java.lang.Object implements ModelInstanceTraverser.FullVisitor
.- Since:
- 10 Nov 2022
-
-
Constructor Summary
Constructors Constructor Description InstanceSerializationVisitor(java.io.PrintWriter w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendInstance(java.lang.Object o, VodmlTypeInfo v, boolean firstVisit)perform an action at the end of the instance.voidleaf(java.lang.Object o, VodmlTypeInfo v, boolean firstVisit)perform an action on a "leaf" object i.e.voidstartInstance(java.lang.Object o, VodmlTypeInfo v, boolean firstVisit)perform an action at the start of an object instance.
-
-
-
Method Detail
-
startInstance
public void startInstance(java.lang.Object o, VodmlTypeInfo v, boolean firstVisit)perform an action at the start of an object instance. overrides @see org.ivoa.vodml.nav.ModelInstanceTraverser.Visitor#startInstance(java.lang.Object, org.ivoa.vodml.nav.VodmlTypeInfo, boolean)- Specified by:
startInstancein interfaceModelInstanceTraverser.Visitor- Parameters:
o- the object.v- the vodml model information for the object.firstVisit- if true this is the first visit to this particular instance.
-
leaf
public void leaf(java.lang.Object o, VodmlTypeInfo v, boolean firstVisit)perform an action on a "leaf" object i.e. has no model children. overrides @see org.ivoa.vodml.nav.ModelInstanceTraverser.FullVisitor#leaf(java.lang.Object, org.ivoa.vodml.nav.VodmlTypeInfo, boolean)- Specified by:
leafin interfaceModelInstanceTraverser.FullVisitor- Parameters:
o- the object.v- the vodml model information for the object.firstVisit- if true this is the first visit to this particular instance.
-
endInstance
public void endInstance(java.lang.Object o, VodmlTypeInfo v, boolean firstVisit)perform an action at the end of the instance. overrides @see org.ivoa.vodml.nav.ModelInstanceTraverser.FullVisitor#endInstance(java.lang.Object, org.ivoa.vodml.nav.VodmlTypeInfo, boolean)- Specified by:
endInstancein interfaceModelInstanceTraverser.FullVisitor- Parameters:
o- the object.v- the vodml model information for the object.firstVisit- if true this is the first visit to this particular instance.
-
-