Package net.shibboleth.metadata.dom
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvisitElement(Element visited, Item<Element> item) void
-
Constructor Details
-
WhitespaceTrimmingVisitor
WhitespaceTrimmingVisitor()
-
-
Method Details
-
visitNode
Description copied from interface:NodeVisitor- Specified by:
visitNodein interfaceNodeVisitor- Parameters:
visited- theNodebeing visited.item- theItemwhich is the context for the visit.
-
visitElement
Description copied from interface:ElementVisitor- Specified by:
visitElementin interfaceElementVisitor- Parameters:
visited- theElementbeing visited.item- theItemwhich is the context for the visit.
-
visitAttr
Description copied from interface:AttrVisitor- Specified by:
visitAttrin interfaceAttrVisitor- Parameters:
visited- theAttrbeing visited.item- theItemwhich is the context for the visit.
-