| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final Iterator | |
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| public | WalkerPRESERVE(final List<? extends Content>
the content to walk. content)Create a Walker that preserves all content in its raw state. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasNext()
Implements org. |
| public boolean | isAllText()
Implements org. |
| public boolean | isAllWhitespace()
Implements org. isAllText() returns true), and
additionally that any content is either Text or CDATA, and that the
values of these Text/CDATA members are all XML Whitespace.
|
| public boolean | isCDATA()
Implements org. |
| public Content | next()
Implements org. |
| public String | text()
Implements org. |
| alltext | back to summary |
|---|---|
| private final boolean alltext | |
| EMPTYIT | back to summary |
|---|---|
| private static final Iterator<Content> EMPTYIT | |
| iter | back to summary |
|---|---|
| private final Iterator<? extends Content> iter | |
| WalkerPRESERVE | back to summary |
|---|---|
| public WalkerPRESERVE(final List<? extends Content> content) Create a Walker that preserves all content in its raw state. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements org. Doc from org. Behaves similarly to to a regular Iterator
| |
| isAllText | back to summary |
|---|---|
| public boolean isAllText() Implements org. Doc from org. If all the content in this walker is empty, or if whatever content is available is Text-like.
Text-like content is considered to be
| |
| isAllWhitespace | back to summary |
|---|---|
| public boolean isAllWhitespace() Implements org. Doc from org. If all the content is Text-like (
| |
| isCDATA | back to summary |
|---|---|
| public boolean isCDATA() Implements org. Doc from org. If the previous next() method returned null, then this will indicate whether the current text() value is CDATA or regular Text.
| |
| next | back to summary |
|---|---|
| public Content next() Implements org. Doc from org. Similar to an Iterator, but null return values need special treatment. | |
| text | back to summary |
|---|---|
| public String text() Implements org. Doc from org. If the previous call to next() returned null, then this will return the required text to be processed. Check to see whether this text is CDATA by calling the isCDATA() method. | |