public interface TagVisitor extends Serializable
Tag
s that are part of a DOM tree.Modifier and Type | Method and Description |
---|---|
void |
after()
Called after the visitor is applied to the DOM tree.
|
void |
before()
Called before the visitor is applied to the DOM tree.
|
void |
onRead(Tag parent,
Tag tag)
Called by
HtmlProcessor.read(String, List) for each Tag in the DOM tree. |
void |
onWrite(Tag parent,
Tag tag)
Called by
HtmlProcessor.write(String, List) for each Tag in the DOM tree. |
void onRead(Tag parent, Tag tag) throws javax.jcr.RepositoryException
HtmlProcessor.read(String, List)
for each Tag
in the DOM tree.parent
- The parent of the tag parameter, or null if the tag is the root node of the DOM treetag
- The visited tagjavax.jcr.RepositoryException
- when an error occurred. Visiting will continue for the other tags.void onWrite(Tag parent, Tag tag) throws javax.jcr.RepositoryException
HtmlProcessor.write(String, List)
for each Tag
in the DOM tree.parent
- The parent of the tag parameter, or null if the tag is the root node of the DOM treetag
- The visited tagjavax.jcr.RepositoryException
- when an error occurred. Visiting will continue for the other tags.void before()
void after()
Copyright © 2012–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.