|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.util.DOMSerializer
public class DOMSerializer
Serializes a DOM node into a stream of SAX events.
Constructor Summary | |
---|---|
DOMSerializer()
|
Method Summary | |
---|---|
protected void |
doSerialize(org.w3c.dom.Node pNode,
org.xml.sax.ContentHandler pHandler)
|
protected void |
doSerializeChilds(org.w3c.dom.Node pNode,
org.xml.sax.ContentHandler pHandler)
|
protected void |
endPrefixMappingEvents(org.w3c.dom.Node pNode,
org.xml.sax.ContentHandler pHandler)
|
boolean |
isNamespaceDeclarationAttribute()
Returns whether XML declarations are being serialized as attributes or as SAX events (default). |
boolean |
isParentsNamespaceDeclarationDisabled()
Sets whether XML declarations present in the parent nodes are being serialized (default) or not. |
protected void |
parentsEndPrefixMappingEvents(org.w3c.dom.Node pNode,
org.xml.sax.ContentHandler pHandler)
|
protected void |
parentsStartPrefixMappingEvents(org.w3c.dom.Node pNode,
org.xml.sax.ContentHandler pHandler)
|
void |
serialize(org.w3c.dom.Node pNode,
org.xml.sax.ContentHandler pHandler)
Converts the given node pNode into a
stream of SAX events, which are fired into the
content handler pHandler . |
void |
setNamespaceDeclarationAttribute(boolean pXmlDeclarationAttribute)
Sets whether XML declarations are being serialized as attributes or as SAX events (default). |
void |
setParentsNamespaceDeclarationDisabled(boolean pParentsXmlDeclarationDisabled)
Returns whether XML declarations present in the parent nodes are being serialized (default) or not. |
protected void |
startPrefixMappingEvents(org.w3c.dom.Node pNode,
org.xml.sax.ContentHandler pHandler)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMSerializer()
Method Detail |
---|
public void setNamespaceDeclarationAttribute(boolean pXmlDeclarationAttribute)
Sets whether XML declarations are being serialized as attributes or as SAX events (default).
public boolean isNamespaceDeclarationAttribute()
Returns whether XML declarations are being serialized as attributes or as SAX events (default).
public void setParentsNamespaceDeclarationDisabled(boolean pParentsXmlDeclarationDisabled)
Returns whether XML declarations present in the parent nodes
are being serialized (default) or not. This option takes effect
only if the namespace declarations are sent as events. In other
words, if the namespaceDeclarationAttribute
properts is false.
public boolean isParentsNamespaceDeclarationDisabled()
Sets whether XML declarations present in the parent nodes
are being serialized (default) or not. This option takes effect
only if the namespace declarations are sent as events. In other
words, if the namespaceDeclarationAttribute
properts is false.
protected void doSerializeChilds(org.w3c.dom.Node pNode, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void parentsStartPrefixMappingEvents(org.w3c.dom.Node pNode, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void parentsEndPrefixMappingEvents(org.w3c.dom.Node pNode, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void startPrefixMappingEvents(org.w3c.dom.Node pNode, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void endPrefixMappingEvents(org.w3c.dom.Node pNode, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void serialize(org.w3c.dom.Node pNode, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
pNode
into a
stream of SAX events, which are fired into the
content handler pHandler
.
org.xml.sax.SAXException
protected void doSerialize(org.w3c.dom.Node pNode, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |