Interface TagVisitor
- All Superinterfaces:
Serializable
Visits
Tag
s that are part of a DOM tree.-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
Called after the visitor is applied to the DOM tree.void
before()
Called before the visitor is applied to the DOM tree.void
Called byHtmlProcessor.read(String, List)
for eachTag
in the DOM tree.void
Called byHtmlProcessor.write(String, List)
for eachTag
in the DOM tree.
-
Method Details
-
onRead
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
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.
-