public class DummyTagProcessor extends Object implements TagProcessor
Constructor and Description |
---|
DummyTagProcessor() |
Modifier and Type | Method and Description |
---|---|
List<Element> |
content(WorkerContext ctx, Tag tag, String content)
This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.
|
List<Element> |
endElement(WorkerContext ctx, Tag tag, List<Element> currentContent)
This method is called when a closing tag has been encountered of the TagProcessor implementation that is mapped to the tag.
|
boolean |
isStackOwner() |
List<Element> |
startElement(WorkerContext ctx, Tag tag)
This method is called when a tag has been encountered.
|
public List<Element> startElement(WorkerContext ctx, Tag tag)
TagProcessor
startElement
in interface TagProcessor
ctx
- the WorkerContext
tag
- the tag encountered
public List<Element> content(WorkerContext ctx, Tag tag, String content)
TagProcessor
content
in interface TagProcessor
ctx
- the WorkerContext
tag
- the tag encountered
content
- the text content between the tags this TagProcessor is mapped to.
public List<Element> endElement(WorkerContext ctx, Tag tag, List<Element> currentContent)
TagProcessor
endElement
in interface TagProcessor
ctx
- the WorkerContext
tag
- the tag encountered
currentContent
- a list of content possibly created by TagProcessing of inner tags, and by startElement
and content
methods of this TagProcessor
.
public boolean isStackOwner()
isStackOwner
in interface TagProcessor
Copyright © 1998–2017. All rights reserved.