Package com.ibm.fhir.model.generator
Class GeneratingVisitor
- java.lang.Object
-
- com.ibm.fhir.model.visitor.DefaultVisitor
-
- com.ibm.fhir.model.visitor.PathAwareVisitor
-
- com.ibm.fhir.model.generator.GeneratingVisitor
-
- All Implemented Interfaces:
Visitor
public abstract class GeneratingVisitor extends PathAwareVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected Stack<Class<?>>
typeStack
-
Fields inherited from class com.ibm.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 String
getChoiceElementName(String name, Class<?> type)
protected int
getDepth()
protected boolean
isChoiceElement(String name)
void
postVisit(Resource resource)
void
postVisit(Element element)
boolean
preVisit(Resource resource)
boolean
preVisit(Element element)
-
Methods inherited from class com.ibm.fhir.model.visitor.PathAwareVisitor
doVisit, doVisitEnd, doVisitEnd, doVisitStart, doVisitStart, getPath, reset, visit, visitEnd, visitEnd, visitStart, visitStart
-
Methods inherited from class com.ibm.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, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitEnd, visitStart
-
-
-
-
Method Detail
-
getDepth
protected final int getDepth()
-
isChoiceElement
protected final boolean isChoiceElement(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
-
-