public class XMLMaker extends Object implements IDOMVisitor
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
buffer_ |
protected boolean |
dom2_ |
protected boolean |
emptyElementTag_ |
protected String |
encoding_ |
protected boolean |
expandEntityReference_ |
| Constructor and Description |
|---|
XMLMaker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enter(Attr attr) |
boolean |
enter(CDATASection cdata) |
boolean |
enter(Comment comment) |
boolean |
enter(Document doc) |
boolean |
enter(DocumentFragment docfrag) |
boolean |
enter(DocumentType doctype) |
boolean |
enter(Element element) |
boolean |
enter(Entity entity) |
boolean |
enter(EntityReference entityRef) |
boolean |
enter(Node node)
Fallback for all "other" node types not explicitly handled.
|
boolean |
enter(Notation notation) |
boolean |
enter(ProcessingInstruction pi) |
boolean |
enter(Text text) |
String |
getText() |
boolean |
isParsedEntity(EntityReference entityRef) |
void |
leave(Element element) |
void |
leave(Node node) |
void |
setDOM2(boolean dom2) |
void |
setEmptyElementTag(boolean empty) |
void |
setEncoding(String encoding) |
void |
setExpandEntityReference(boolean expand) |
protected StringBuilder buffer_
protected String encoding_
protected boolean dom2_
protected boolean expandEntityReference_
protected boolean emptyElementTag_
public void setEncoding(String encoding)
public void setDOM2(boolean dom2)
public void setExpandEntityReference(boolean expand)
public void setEmptyElementTag(boolean empty)
public String getText()
public boolean enter(Element element)
enter in interface IDOMVisitorpublic void leave(Element element)
leave in interface IDOMVisitorpublic boolean enter(Attr attr)
enter in interface IDOMVisitorpublic boolean enter(Text text)
enter in interface IDOMVisitorpublic boolean enter(CDATASection cdata)
enter in interface IDOMVisitorpublic boolean enter(EntityReference entityRef)
enter in interface IDOMVisitorpublic boolean enter(Entity entity)
enter in interface IDOMVisitorpublic boolean enter(ProcessingInstruction pi)
enter in interface IDOMVisitorpublic boolean enter(Comment comment)
enter in interface IDOMVisitorpublic boolean enter(Document doc)
enter in interface IDOMVisitorpublic boolean enter(DocumentType doctype)
enter in interface IDOMVisitorpublic boolean enter(DocumentFragment docfrag)
enter in interface IDOMVisitorpublic boolean enter(Notation notation)
enter in interface IDOMVisitorpublic boolean enter(Node node)
IDOMVisitorenter in interface IDOMVisitornode - Current node.true to enter, false otherwisepublic void leave(Node node)
leave in interface IDOMVisitorpublic boolean isParsedEntity(EntityReference entityRef)
Copyright © 2016 Philip Helger. All rights reserved.