Class GeneratingVisitor
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.DefaultVisitor
-
- org.linuxforhealth.fhir.model.visitor.PathAwareVisitor
-
- org.linuxforhealth.fhir.model.generator.GeneratingVisitor
-
- All Implemented Interfaces:
Visitor
public abstract class GeneratingVisitor extends PathAwareVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Stack<java.lang.Class<?>>
typeStack
-
Fields inherited from class org.linuxforhealth.fhir.model.visitor.DefaultVisitor
visitChildren
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeneratingVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getChoiceElementName(java.lang.String name, java.lang.Class<?> type)
protected int
getDepth()
protected boolean
isChoiceElement(java.lang.String name)
void
postVisit(Resource resource)
void
postVisit(Element element)
boolean
preVisit(Resource resource)
boolean
preVisit(Element element)
-
Methods inherited from class org.linuxforhealth.fhir.model.visitor.PathAwareVisitor
doVisit, doVisit, doVisit, doVisit, doVisit, doVisit, doVisit, doVisit, doVisit, doVisit, doVisitEnd, doVisitEnd, doVisitStart, doVisitStart, getPath, reset, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitEnd, visitEnd, visitStart, visitStart
-
Methods inherited from class org.linuxforhealth.fhir.model.visitor.DefaultVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitEnd, visitStart
-
-
-
-
Method Detail
-
getChoiceElementName
protected final java.lang.String getChoiceElementName(java.lang.String name, java.lang.Class<?> type)
-
getDepth
protected final int getDepth()
-
isChoiceElement
protected final boolean isChoiceElement(java.lang.String name)
-
postVisit
public final void postVisit(Element element)
- Specified by:
postVisit
in interfaceVisitor
- Overrides:
postVisit
in classDefaultVisitor
-
postVisit
public final void postVisit(Resource resource)
- Specified by:
postVisit
in interfaceVisitor
- Overrides:
postVisit
in classDefaultVisitor
-
preVisit
public final boolean preVisit(Element element)
- Specified by:
preVisit
in interfaceVisitor
- Overrides:
preVisit
in classDefaultVisitor
- Returns:
- true if this Element should be visited; otherwise false
-
preVisit
public final boolean preVisit(Resource resource)
- Specified by:
preVisit
in interfaceVisitor
- Overrides:
preVisit
in classDefaultVisitor
- Returns:
- true if this Resource should be visited; otherwise false
-
-