Interface TagVisitor
-
- All Superinterfaces:
Serializable
public interface TagVisitor extends Serializable
VisitsTag
s that are part of a DOM tree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 byHtmlProcessor.read(String, List)
for eachTag
in the DOM tree.void
onWrite(Tag parent, Tag tag)
Called byHtmlProcessor.write(String, List)
for eachTag
in the DOM tree.
-
-
-
Method Detail
-
onRead
void onRead(Tag parent, Tag tag) throws RepositoryException
Called byHtmlProcessor.read(String, List)
for eachTag
in the DOM tree.- Parameters:
parent
- The parent of the tag parameter, or null if the tag is the root node of the DOM treetag
- The visited tag- Throws:
RepositoryException
- when an error occurred. Visiting will continue for the other tags.
-
onWrite
void onWrite(Tag parent, Tag tag) throws RepositoryException
Called byHtmlProcessor.write(String, List)
for eachTag
in the DOM tree.- Parameters:
parent
- The parent of the tag parameter, or null if the tag is the root node of the DOM treetag
- The visited tag- Throws:
RepositoryException
- when an error occurred. Visiting will continue for the other tags.
-
before
void before()
Called before the visitor is applied to the DOM tree.
-
after
void after()
Called after the visitor is applied to the DOM tree.
-
-