KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > dom4j > NodeFactory


1 /*
2  * NodeFactory.java
3  *
4  * Created on 22 mei 2003, 22:36
5  */

6
7 package org.dom4j;
8
9 import java.util.Map JavaDoc;
10
11 /**
12  *
13  * @author Maarten
14  */

15 public interface NodeFactory {
16
17     Document createDocument();
18
19     Document createDocument(Element rootElement);
20
21     DocumentType createDocType(String JavaDoc name, String JavaDoc publicId, String JavaDoc systemId);
22
23     Element createElement(QName qname);
24
25     Element createElement(String JavaDoc name);
26
27     Element createElement(String JavaDoc qualifiedName, String JavaDoc namespaceURI);
28
29     Attribute createAttribute(Element owner, QName qname, String JavaDoc value);
30
31     Attribute createAttribute(Element owner, String JavaDoc name, String JavaDoc value);
32
33     CDATA createCDATA(String JavaDoc text);
34
35     Comment createComment(String JavaDoc text);
36
37     Text createText(String JavaDoc text);
38
39     Entity createEntity(String JavaDoc name, String JavaDoc text);
40
41     Namespace createNamespace(String JavaDoc prefix, String JavaDoc uri);
42
43     Namespace getNamespace(String JavaDoc uri);
44
45     Namespace getXmlNameSpace();
46
47     Namespace getNoNamespace();
48
49     ProcessingInstruction createProcessingInstruction(String JavaDoc target, String JavaDoc data);
50
51     ProcessingInstruction createProcessingInstruction(String JavaDoc target, Map JavaDoc data);
52
53     QName createQName(String JavaDoc localName, Namespace namespace);
54
55     QName createQName(String JavaDoc localName);
56
57     QName createQName(String JavaDoc name, String JavaDoc prefix, String JavaDoc uri);
58
59     QName createQName(String JavaDoc qualifiedName, String JavaDoc uri);
60
61 }
62
Popular Tags