|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.trees.io.Bindings
XMLBindings instead
public class Bindings
Static facilities for binding trees to and from other data types.
| Field Summary | |
|---|---|
static String |
DEFAULT_NODE_NAME
Deprecated. |
static String |
ID_ATTR
Deprecated. |
static QName |
NODE_QNAME
Deprecated. |
static String |
PREFIX
Deprecated. |
static String |
ROOT_NAME
Deprecated. |
static QName |
ROOT_QNAME
Deprecated. |
static String |
SOURCEID_ATTR
Deprecated. |
static String |
STATUS_ATTR
Deprecated. |
static String |
URI
Deprecated. |
| Constructor Summary | |
|---|---|
Bindings()
Deprecated. |
|
| Method Summary | |
|---|---|
static Tree |
fromElement(Element element)
Deprecated. Binds an Element to a Tree. |
static Tree |
fromReader(Reader reader)
Deprecated. Binds a Reader to a Tree |
static Tree |
fromStream(InputStream stream)
Deprecated. Binds an InputStream to a Tree. |
static Node |
nodeFromElement(Element element)
Deprecated. Binds an Element to a Node. |
static Node |
nodeFromReader(Reader r)
Deprecated. Binds a Reader to a Node. |
static Node |
nodeFromStream(InputStream in)
Deprecated. Binds an InputStream to a Node. |
static Element |
nodeToElement(Node node,
QName... name)
Deprecated. Binds a Node to an Element. |
static void |
nodeToWriter(Node node,
Writer stream,
QName... name)
Deprecated. Binds a Node to a Writer. |
static Element |
toElement(Tree tree)
Deprecated. Binds a Tree to an Element. |
static String |
toText(Tree t)
Deprecated. Binds a Tree to a String. |
static void |
toWriter(Tree t,
Writer stream,
boolean... writeDeclaration)
Deprecated. Binds a Tree to a Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ROOT_NAME
public static final String PREFIX
public static final String URI
public static final QName ROOT_QNAME
public static final String DEFAULT_NODE_NAME
public static final QName NODE_QNAME
public static final String ID_ATTR
public static final String STATUS_ATTR
public static final String SOURCEID_ATTR
| Constructor Detail |
|---|
public Bindings()
| Method Detail |
|---|
public static String toText(Tree t)
throws Exception
Tree to a String.
t - the tree
Exception - if the binding fails
public static void toWriter(Tree t,
Writer stream,
boolean... writeDeclaration)
throws Exception
Tree to a Writer.
t - the treestream - the writerwriteDeclaration - (optional) true if the binding is to include the XML declaration (default),
false otherwise
Exception - if the binding fails
public static Tree fromReader(Reader reader)
throws Exception
Reader to a Tree
reader - the reader
Exception - if the binding fails
public static Tree fromStream(InputStream stream)
throws Exception
InputStream to a Tree.
stream - stream
Exception - if the binding fails
public static Node nodeFromReader(Reader r)
throws Exception
Reader to a Node.
r - the reader
Exception - if the binding fails
public static Node nodeFromStream(InputStream in)
throws Exception
InputStream to a Node.
in - the InputStream
Node
Exception - if the binding fails
public static Element toElement(Tree tree)
throws Exception
Tree to an Element.
tree - the tree
Exception - if the binding fails
public static Tree fromElement(Element element)
throws Exception
Element to a Tree.
element - the element
Exception - if the binding fails
public static Node nodeFromElement(Element element)
throws Exception
Element to a Node.
element - the element
Exception - if the binding fails
public static Element nodeToElement(Node node,
QName... name)
throws Exception
Node to an Element.
node - the nodename - (optional) a name for the element.
Exception - if the binding fails
public static void nodeToWriter(Node node,
Writer stream,
QName... name)
throws Exception
Node to a Writer.
node - the nodestream - the writername - (optional) an element name for the node
Exception - if binding fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||