|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.impl.xml.XmlFactory
public class XmlFactory
Factory of XML nodes. This factory creates DrbNodes breaking down an XML document. The nodes generated by this class are wrappers to Java implementation of DOM. This factory uses the default javax.parsers.DOMParser to load the XML document contents and return the root element of the document as an XmlNode that implement the DrbNode interface. Because the XmlNode holds all the necessary data to live alone, the parser results as weel as the document loaded in this class are not stored.
| Field Summary | |
|---|---|
protected static long |
MAXIMUM_DOM_SIZE
The maximum file size for the DOM implementation. |
| Constructor Summary | |
|---|---|
XmlFactory()
|
|
| Method Summary | |
|---|---|
String |
getIdentifier()
XML identifier. |
String |
getName()
The name of the XML implementation. |
static void |
main(String[] args)
Make this class runnable for testing. |
DrbNode |
open(DrbNode base_node)
XML root node from an existing node. |
DrbNode |
open(URL uri)
XML root node matching a given URI. |
DrbNode |
open(URL uri,
DrbNode base_node)
XML node matching a given URI from an existing node. |
void |
put(DrbNode input,
DrbNode target_node)
Put a node as child of an existing node. |
void |
put(DrbNode input,
URL uri)
Put a node at the given path. |
void |
put(DrbNode input,
URL uri,
DrbNode base_node)
Opens the node matching a given URI from an existing node. |
static void |
writeXML(DrbNode node,
OutputStream file)
Writes the input tree nodes into a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static long MAXIMUM_DOM_SIZE
| Constructor Detail |
|---|
public XmlFactory()
| Method Detail |
|---|
public String getIdentifier()
getIdentifier in interface DrbFactoryImplpublic String getName()
getName in interface DrbFactoryImplpublic DrbNode open(URL uri)
open in interface DrbFactoryImpluri - Not considered.
public DrbNode open(DrbNode base_node)
open in interface DrbFactoryImplbase_node - The node to be considered in input.
public DrbNode open(URL uri,
DrbNode base_node)
open in interface DrbFactoryImpluri - Not considered here.base_node - The input node to be used as context or base.
public void put(DrbNode input,
URL uri)
put in interface DrbUpdateImpl
public void put(DrbNode input,
DrbNode target_node)
put in interface DrbUpdateImplinput - An input nodetarget_node - The input node to be used as context or base. This
parameter shall not be null.
public void put(DrbNode input,
URL uri,
DrbNode base_node)
put in interface DrbUpdateImplinput - An input nodeuri - The "Uniform Resource Identifier" (URI) to be handled.base_node - The input node to be used as context or base.
public static void writeXML(DrbNode node,
OutputStream file)
node - the input node to be printed.file - the output stream to be used for printing XML documentpublic static void main(String[] args)
args - the arguments.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||