Class EncodingVisitor<T extends Resource>

  • 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.
    • 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 interface Visitor
        Overrides:
        visit in class DefaultVisitor
        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 interface Visitor
        Overrides:
        visit in class DefaultVisitor