|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.contentmanager.stubs.model.trees.Bindings
public class Bindings
A collection static methods for serialising and de-serialising gDoc
trees.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_NODE_NAME
|
static java.lang.String |
GDOC_COLLID_ATTR
|
static java.lang.String |
GDOC_ID_ATTR
|
static java.lang.String |
GDOC_NAME
|
static java.lang.String |
GDOC_NS
|
static java.lang.String |
GDOC_PREFIX
|
static java.lang.String |
GDOC_STATUS_ATTR
|
static java.lang.String |
GDOC_URI
|
Constructor Summary | |
---|---|
Bindings()
|
Method Summary | |
---|---|
static GDoc |
fromElement(org.w3c.dom.Element e)
Transforms a DOM tree into a document tree. |
static GDoc |
fromXML(java.io.InputStream in)
Deserialiases a gDoc element from an XML stream. |
static GDoc |
fromXML(java.io.Reader r)
Deserialiases a gDoc element from an XML stream. |
static Node |
nodeFromElement(org.w3c.dom.Element e)
Transforms a DOM tree into a node. |
static Node |
nodeFromXML(java.io.InputStream in)
Deserialiases a node from an XML stream. |
static Node |
nodeFromXML(java.io.Reader r)
Deserialiases a node from an XML stream. |
static org.w3c.dom.Element |
nodeToElement(Node node,
javax.xml.namespace.QName... name)
Transforms a document node to a DOM tree. |
static void |
nodeToXML(Node node,
java.io.Writer w,
javax.xml.namespace.QName... name)
Serialises a document node to an XML stream. |
static org.w3c.dom.Element |
toElement(GDoc doc)
Transforms a document tree to a DOM tree. |
static void |
toXML(GDoc doc,
java.io.Writer w,
boolean... writeDeclaration)
Serialises a document tree to an XML stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GDOC_NS
public static final java.lang.String GDOC_NAME
public static final java.lang.String GDOC_PREFIX
public static final java.lang.String GDOC_URI
public static final java.lang.String DEFAULT_NODE_NAME
public static final java.lang.String GDOC_ID_ATTR
public static final java.lang.String GDOC_STATUS_ATTR
public static final java.lang.String GDOC_COLLID_ATTR
Constructor Detail |
---|
public Bindings()
Method Detail |
---|
public static org.w3c.dom.Element toElement(GDoc doc) throws java.lang.Exception
doc
- the document.
java.lang.Exception
- if the document could not be transformed.public static org.w3c.dom.Element nodeToElement(Node node, javax.xml.namespace.QName... name) throws java.lang.Exception
node
- the node.(optional)
- the name for the root of the DOM tree.
java.lang.Exception
- if the document could not be transformed.public static GDoc fromElement(org.w3c.dom.Element e) throws java.lang.Exception
e
- the root of the DOM tree.
java.lang.Exception
- if the DOM tree could not transformed.public static Node nodeFromElement(org.w3c.dom.Element e) throws java.lang.Exception
e
- the root of the DOM tree.
java.lang.Exception
- if the DOM tree could not transformed.public static void toXML(GDoc doc, java.io.Writer w, boolean... writeDeclaration) throws java.lang.Exception
doc
- the document.w
- the stream.(optional)
- writeDeclaration true
if the serialisation is to have an XML declaration (default),
false
otherwise.
java.lang.Exception
- if the document could not be serialised.public static void nodeToXML(Node node, java.io.Writer w, javax.xml.namespace.QName... name) throws java.lang.Exception
node
- the node.w
- the stream.(optional)
- name the element name for the node.
java.lang.Exception
- if the document could not be serialised.public static GDoc fromXML(java.io.Reader r) throws java.lang.Exception
gDoc
element from an XML stream.
r
- the stream.
java.lang.Exception
- if the document could not be serialised.public static GDoc fromXML(java.io.InputStream in) throws java.lang.Exception
gDoc
element from an XML stream.
in
- the stream.
java.lang.Exception
- if the document could not be serialised.public static Node nodeFromXML(java.io.Reader r) throws java.lang.Exception
r
- the stream.
java.lang.Exception
- if the document could not be serialised.public static Node nodeFromXML(java.io.InputStream in) throws java.lang.Exception
in
- the stream.
java.lang.Exception
- if the document could not be serialised.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |