Top Description Constructors Methods
org.jdom2.output.support

public Class WalkerNORMALIZE

extends AbstractFormattedWalker
Class Inheritance
Imports
java.util.List, org.jdom2.Content, .Verifier

This Walker implementation will produce trimmed text content.
Author
Rolf Lear

Constructor Summary

AccessConstructor and Description
public
WalkerNORMALIZE(final List<? extends Content>
The list of content to format
content
,
final FormatStack
The current stack.
fstack
,
final boolean
Whether Text values should be escaped.
escape
)

Create the Trimmed walker instance.

Method Summary

Modifier and TypeMethod and Description
protected void
analyzeMultiText(final AbstractFormattedWalker.MultiText
the MultiText to append to.
mtext
,
final int
The first Text-like content to add to the MultiText
offset
,
final int
The number of Text-like content items to add.
len
)

Implements abstract org.jdom2.output.support.AbstractFormattedWalker.analyzeMultiText.

Add the content at the specified indices to the provided MultiText.
private boolean
private boolean
Inherited from org.jdom2.output.support.AbstractFormattedWalker:
gethasNextisAllTextisAllWhitespaceisCDATAnexttext

Constructor Detail

WalkerNORMALIZEback to summary
public WalkerNORMALIZE(final List<? extends Content> content, final FormatStack fstack, final boolean escape)

Create the Trimmed walker instance.

Parameters
content:List<? extends Content>

The list of content to format

fstack:FormatStack

The current stack.

escape:boolean

Whether Text values should be escaped.

Method Detail

analyzeMultiTextback to summary
protected void analyzeMultiText(final AbstractFormattedWalker.MultiText mtext, final int offset, final int len)

Implements abstract org.jdom2.output.support.AbstractFormattedWalker.analyzeMultiText.

Doc from org.jdom2.output.support.AbstractFormattedWalker.analyzeMultiText.

Add the content at the specified indices to the provided MultiText.

Parameters
mtext:AbstractFormattedWalker.MultiText

the MultiText to append to.

offset:int

The first Text-like content to add to the MultiText

len:int

The number of Text-like content items to add.

Annotations
@Override
isSpaceFirstback to summary
private boolean isSpaceFirst(String text)
isSpaceLastback to summary
private boolean isSpaceLast(String text)