Package com.ibm.fhir.model.visitor
Class EncodingVisitor<T extends Resource>
- java.lang.Object
-
- com.ibm.fhir.model.visitor.DefaultVisitor
-
- com.ibm.fhir.model.visitor.CopyingVisitor<T>
-
- com.ibm.fhir.model.visitor.EncodingVisitor<T>
-
- All Implemented Interfaces:
Visitor
public class EncodingVisitor<T extends Resource> extends CopyingVisitor<T>
Encodes the string elements of the visited resource for use within a given context. The XHTML narrative text is left unencoded as this content is validated elsewhere in the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncodingVisitor.EncodingContext
The context for which the string elements should be encoded.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.visitor.DefaultVisitor
visitChildren
-
-
Constructor Summary
Constructors Constructor Description EncodingVisitor(EncodingVisitor.EncodingContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
visit(java.lang.String elementName, int elementIndex, Xhtml xhtml)
Delegates to#visit(elementName, elementIndex, Element)
void
visit(java.lang.String elementName, java.lang.String value)
-
Methods inherited from class com.ibm.fhir.model.visitor.CopyingVisitor
convertToCodeSubtype, delete, doVisitEnd, doVisitEnd, doVisitListEnd, doVisitListStart, doVisitStart, doVisitStart, getBuilder, getList, getPath, getResult, markDirty, markListDirty, postVisit, postVisit, replace, replace, reset, visitEnd, visitEnd, visitEnd, visitStart, visitStart, visitStart
-
Methods inherited from class com.ibm.fhir.model.visitor.DefaultVisitor
preVisit, preVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Constructor Detail
-
EncodingVisitor
public EncodingVisitor(EncodingVisitor.EncodingContext context)
- Parameters:
context
- the context for which to encode
-
-
Method Detail
-
visit
public boolean visit(java.lang.String elementName, int elementIndex, Xhtml xhtml)
Description copied from class:DefaultVisitor
Delegates to#visit(elementName, elementIndex, Element)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDefaultVisitor
- Returns:
- true if the children of this xhtml should be visited; otherwise false
-
visit
public void visit(java.lang.String elementName, java.lang.String value)
- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDefaultVisitor
-
-