|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.memtree.MemTreeBuilder
public class MemTreeBuilder
Use this class to build a new in-memory DOM document.
Constructor Summary | |
---|---|
MemTreeBuilder()
|
|
MemTreeBuilder(XQueryContext context)
|
Method Summary | |
---|---|
int |
addAttribute(QName qname,
String value)
|
int |
addReferenceNode(NodeProxy proxy)
|
int |
cdataSection(CharSequence data)
|
int |
characters(char[] ch,
int start,
int len)
Create a new text node. |
int |
characters(CharSequence s)
Create a new text node. |
int |
comment(char[] ch,
int start,
int len)
|
int |
comment(CharSequence data)
|
int |
documentType(String publicId,
String systemId)
|
void |
documentType(String name,
String publicId,
String systemId)
|
void |
endDocument()
End building the document. |
void |
endElement()
Close the last element created. |
XQueryContext |
getContext()
|
DocumentImpl |
getDocument()
Returns the created document object. |
int |
getSize()
|
int |
namespaceNode(QName qn)
|
int |
namespaceNode(String prefix,
String uri)
|
int |
processingInstruction(String target,
String data)
|
void |
startDocument()
Start building the document. |
void |
startDocument(boolean explicitCreation)
Start building the document. |
int |
startElement(QName qn,
Attributes attributes)
Create a new element. |
int |
startElement(String namespaceURI,
String localName,
String qname,
Attributes attributes)
Create a new element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemTreeBuilder()
public MemTreeBuilder(XQueryContext context)
Method Detail |
---|
public DocumentImpl getDocument()
public XQueryContext getContext()
public int getSize()
public void startDocument()
public void startDocument(boolean explicitCreation)
public void endDocument()
public int startElement(String namespaceURI, String localName, String qname, Attributes attributes)
public int startElement(QName qn, Attributes attributes)
public void endElement()
public int addReferenceNode(NodeProxy proxy)
public int addAttribute(QName qname, String value)
public int characters(char[] ch, int start, int len)
public int characters(CharSequence s)
public int comment(CharSequence data)
public int comment(char[] ch, int start, int len)
public int cdataSection(CharSequence data)
public int processingInstruction(String target, String data)
public int namespaceNode(String prefix, String uri)
public int namespaceNode(QName qn)
public int documentType(String publicId, String systemId)
public void documentType(String name, String publicId, String systemId)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |