|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XNodeFactory
Provides an API of a factory for creating XNode objects.
The XNode API (the package org.purl.xnode.*, both its source code and documentation), are released under the Apache 2.0 License. For more details, check the LICENSE file contained with the distribution, or see The Ceryle Project for more information. It is distributed with no warranty.
| Method Summary | |
|---|---|
XNode |
createXNode(String id)
Return a new, empty XNode provided a String id. |
XNode |
createXNode(String id,
Node node)
Return an XNode provided a String id and a DOM Node node. |
Node |
getXNodeContent(XNode xnode,
boolean includeEnvelope)
Provided with an XNode xnode, returns a DOM Document representation. |
XNode |
recreateXNode(Node node)
Return an XNode provided a DOM Node node, assuming the provided Node's content is a serialization of an XNode. |
String |
serializeXNode(XNode xnode,
boolean includeEnvelope)
Provided with an XNode xnode, returns an XML serialization as a String. |
boolean |
serializeXNode(XNode xnode,
Writer writer,
boolean includeEnvelope)
Writes an XML serialization of the XNode xnode to the supplied Writer writer. |
| Method Detail |
|---|
XNode createXNode(String id)
throws XNodeException
id - the XNode unique identifier.
XNodeException - if an error occurs during creation.
XNode createXNode(String id,
Node node)
throws XNodeException
createXNode(String), i.e., provide an empty XNode.
id - the XNode ID.node - the DOM Node to be enclosed in the XNode.
XNodeException - if an error occurs during creation.
XNode recreateXNode(Node node)
throws XNodeException
node - the DOM Node to be processed as XNode content.
XNodeException - if an error occurs during re-creation.
Node getXNodeContent(XNode xnode,
boolean includeEnvelope)
throws XNodeException
xnode - the XNode to be processed.includeEnvelope - if true, include the xnode:Envelope.
XNodeException - if an error occurs during processing.
boolean serializeXNode(XNode xnode,
Writer writer,
boolean includeEnvelope)
throws XNodeException
xnode - the XNode to be serialized.writer - the Writer receiving the output.includeEnvelope - if true, include the xnode:Envelope.
XNodeException - if an error occurs during serialization.
String serializeXNode(XNode xnode,
boolean includeEnvelope)
throws XNodeException
xnode - the XNode to be serialized.includeEnvelope - if true, include the xnode:Envelope.
XNodeException - if an error occurs during serialization.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||