|
EAF 7.4 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.xml.XMLDocumentFactory
public class XMLDocumentFactory
Constructor Summary | |
---|---|
XMLDocumentFactory()
Constructs an empty XMLDocumentFactory |
|
XMLDocumentFactory(java.lang.String fileName)
Constructs a XMLDocumentFactory with the given
xml file name as String |
Method Summary | |
---|---|
java.lang.String |
getFileName()
Returns xml file name. |
org.w3c.dom.Document |
parse()
Parses xml file and creates creates Document . |
static org.w3c.dom.Document |
parse(java.lang.String fileName)
Parses xml file with the given name and creates Document . |
void |
serialize(org.w3c.dom.Node node)
Serializes node with all subnodes to the xml file with the default Properties of the xml declaration. |
static void |
serialize(org.w3c.dom.Node node,
java.lang.String fileName,
java.util.Properties prop)
Serializes node with all subnodes to the xml file with the given name, and with the Properties of the xml declaration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLDocumentFactory()
XMLDocumentFactory
public XMLDocumentFactory(java.lang.String fileName)
XMLDocumentFactory
with the given
xml file name as String
Method Detail |
---|
public java.lang.String getFileName()
public static org.w3c.dom.Document parse(java.lang.String fileName)
Document
.
fileName
- xml file name.
public org.w3c.dom.Document parse()
Document
.
public static void serialize(org.w3c.dom.Node node, java.lang.String fileName, java.util.Properties prop)
Properties
of the xml declaration.
node
- root node of the document.fileName
- xml file nameprop
- Properties
of the xml declaration.public void serialize(org.w3c.dom.Node node)
Properties
of the xml declaration.
node
- root node of the document.
|
EAF 7.4 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |