Use either direct subclasses of the appropriate node and set them on the
PrototypicalNodeFactory,
or use a dynamic proxy implementing the required node type interface.
public class NonBreakingSpaceConvertingNode extends AbstractNodeDecorator
AbstractNodeDecoratordelegate| Constructor and Description |
|---|
NonBreakingSpaceConvertingNode(Text newDelegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toPlainTextString()
Deprecated.
A string representation of the node.
|
accept, clone, collectInto, doSemanticAction, equals, getChildren, getEndPosition, getPage, getParent, getStartPosition, getText, setChildren, setEndPosition, setPage, setParent, setStartPosition, setText, toHtml, toStringpublic NonBreakingSpaceConvertingNode(Text newDelegate)
public java.lang.String toPlainTextString()
Node
for (Enumeration e = parser.elements (); e.hasMoreElements ();)
// or do whatever processing you wish with the plain text string
System.out.println ((Node)e.nextElement ()).toPlainTextString ());
toPlainTextString in interface NodetoPlainTextString in class AbstractNodeDecoratorHTML Parser is an open source library released under LGPL.