Class WhitespaceTrimmingVisitor

java.lang.Object
net.shibboleth.metadata.dom.WhitespaceTrimmingVisitor
All Implemented Interfaces:
AttrVisitor, ElementVisitor, NodeVisitor

@Immutable class WhitespaceTrimmingVisitor extends Object implements NodeVisitor, ElementVisitor, AttrVisitor
Node visitor which trims leading and trailing whitespace from the visited node's text content.
Since:
0.9.0
  • Constructor Details

    • WhitespaceTrimmingVisitor

      WhitespaceTrimmingVisitor()
  • Method Details

    • visitNode

      public void visitNode(@Nonnull Node visited, @Nonnull Item<Element> item)
      Description copied from interface: NodeVisitor
      Called on each Node visited as part of the processing of an Element item.
      Specified by:
      visitNode in interface NodeVisitor
      Parameters:
      visited - the Node being visited.
      item - the Item which is the context for the visit.
    • visitElement

      public void visitElement(@Nonnull Element visited, @Nonnull Item<Element> item)
      Description copied from interface: ElementVisitor
      Called on each Element visited as part of the processing of an Element item.
      Specified by:
      visitElement in interface ElementVisitor
      Parameters:
      visited - the Element being visited.
      item - the Item which is the context for the visit.
    • visitAttr

      public void visitAttr(@Nonnull Attr visited, @Nonnull Item<Element> item)
      Description copied from interface: AttrVisitor
      Called on each Attr visited as part of the processing of an Element item.
      Specified by:
      visitAttr in interface AttrVisitor
      Parameters:
      visited - the Attr being visited.
      item - the Item which is the context for the visit.