class WhitespaceTrimmingVisitor extends Object implements NodeVisitor, ElementVisitor, AttrVisitor
Node visitor which trims leading and trailing whitespace from the
visited node's text content.| Constructor and Description |
|---|
WhitespaceTrimmingVisitor() |
public void visitNode(@Nonnull Node visited, @Nonnull Item<Element> item)
NodeVisitorvisitNode in interface NodeVisitorvisited - the Node being visited.item - the Item which is the context for the visit.public void visitElement(@Nonnull Element visited, @Nonnull Item<Element> item)
ElementVisitorvisitElement in interface ElementVisitorvisited - the Element being visited.item - the Item which is the context for the visit.public void visitAttr(@Nonnull Attr visited, @Nonnull Item<Element> item)
AttrVisitorvisitAttr in interface AttrVisitorvisited - the Attr being visited.item - the Item which is the context for the visit.Copyright © 1999–2016. All rights reserved.