| org.jdom.JDOMFactory
All known Subclasses: org.jdom.DefaultJDOMFactory, org.jdom.UncheckedJDOMFactory,
JDOMFactory | public interface JDOMFactory (Code) | | An interface to be used by builders when constructing JDOM objects. The
DefaultJDOMFactory creates the standard top-level JDOM classes
(Element, Document, Comment, etc). Another implementation of this factory
could be used to create custom classes.
version: $Revision: 1.1 $, $Date: 2005/04/27 09:32:40 $ author: Ken Rune Holland author: Phil Nelson author: Bradley S. Huffman |
Method Summary | |
public void | addContent(Parent parent, Content content) | public void | addNamespaceDeclaration(Element element, Namespace additional) | public Attribute | attribute(String name, String value, Namespace namespace)
This will create a new Attribute with the
specified (local) name and value, and in the provided
org.jdom.Namespace . | public Attribute | attribute(String name, String value, int type, Namespace namespace) This will create a new Attribute with the
specified (local) name, value, and type, and in the provided
org.jdom.Namespace . | public Attribute | attribute(String name, String value) This will create a new Attribute with the
specified (local) name and value, and does not place
the attribute in a
org.jdom.Namespace . | public Attribute | attribute(String name, String value, int type) This will create a new Attribute with the
specified (local) name, value and type, and does not place
the attribute in a
org.jdom.Namespace . | public CDATA | cdata(String str) This creates the CDATA with the supplied text. | public Comment | comment(String text) This creates the comment with the supplied text. | public DocType | docType(String elementName, String publicID, String systemID) This will create the DocType with
the specified element name and a reference to an
external DTD. | public DocType | docType(String elementName, String systemID) This will create the DocType with
the specified element name and reference to an
external DTD. | public DocType | docType(String elementName) | public Document | document(Element rootElement, DocType docType) This will create a new Document ,
with the supplied
org.jdom.Element
as the root element and the supplied
org.jdom.DocType declaration. | public Document | document(Element rootElement, DocType docType, String baseURI) This will create a new Document ,
with the supplied
org.jdom.Element
as the root element and the supplied
org.jdom.DocType declaration. | public Document | document(Element rootElement) This will create a new Document ,
with the supplied
org.jdom.Element
as the root element, and no
org.jdom.DocType
declaration. | public Element | element(String name, Namespace namespace) This will create a new Element
with the supplied (local) name, and define
the
org.jdom.Namespace to be used. | public Element | element(String name) This will create an Element in no
org.jdom.Namespace . | public Element | element(String name, String uri) This will create a new Element with
the supplied (local) name, and specifies the URI
of the
org.jdom.Namespace the Element
should be in, resulting it being unprefixed (in the default
namespace). | public Element | element(String name, String prefix, String uri) This will create a new Element with
the supplied (local) name, and specifies the prefix and URI
of the
org.jdom.Namespace the Element
should be in. | public EntityRef | entityRef(String name) This will create a new EntityRef
with the supplied name. | public EntityRef | entityRef(String name, String publicID, String systemID) This will create a new EntityRef
with the supplied name, public ID, and system ID. | public EntityRef | entityRef(String name, String systemID) This will create a new EntityRef
with the supplied name and system ID. | public ProcessingInstruction | processingInstruction(String target, Map data) This will create a new ProcessingInstruction
with the specified target and data. | public ProcessingInstruction | processingInstruction(String target, String data) This will create a new ProcessingInstruction
with the specified target and data. | public void | setAttribute(Element element, Attribute a) | public Text | text(String str) This creates the Text with the supplied text. |
attribute | public Attribute attribute(String name, String value, Namespace namespace)(Code) | |
This will create a new Attribute with the
specified (local) name and value, and in the provided
org.jdom.Namespace .
Parameters: name - String name of Attribute . Parameters: value - String value for new attribute. |
attribute | public Attribute attribute(String name, String value, int type, Namespace namespace)(Code) | | This will create a new Attribute with the
specified (local) name, value, and type, and in the provided
org.jdom.Namespace .
Parameters: name - String name of Attribute . Parameters: value - String value for new attribute. Parameters: type - int type for new attribute. Parameters: namespace - Namespace namespace for new attribute. |
attribute | public Attribute attribute(String name, String value)(Code) | | This will create a new Attribute with the
specified (local) name and value, and does not place
the attribute in a
org.jdom.Namespace .
Note: This actually explicitly puts the
Attribute in the "empty" Namespace
(
org.jdom.Namespace.NO_NAMESPACE ).
Parameters: name - String name of Attribute . Parameters: value - String value for new attribute. |
attribute | public Attribute attribute(String name, String value, int type)(Code) | | This will create a new Attribute with the
specified (local) name, value and type, and does not place
the attribute in a
org.jdom.Namespace .
Note: This actually explicitly puts the
Attribute in the "empty" Namespace
(
org.jdom.Namespace.NO_NAMESPACE ).
Parameters: name - String name of Attribute . Parameters: value - String value for new attribute. Parameters: type - int type for new attribute. |
cdata | public CDATA cdata(String str)(Code) | | This creates the CDATA with the supplied text.
Parameters: str - String content of CDATA. |
comment | public Comment comment(String text)(Code) | | This creates the comment with the supplied text.
Parameters: text - String content of comment. |
docType | public DocType docType(String elementName, String publicID, String systemID)(Code) | | This will create the DocType with
the specified element name and a reference to an
external DTD.
Parameters: elementName - String name ofelement being constrained. Parameters: publicID - String public ID ofreferenced DTD Parameters: systemID - String system ID ofreferenced DTD |
docType | public DocType docType(String elementName, String systemID)(Code) | | This will create the DocType with
the specified element name and reference to an
external DTD.
Parameters: elementName - String name ofelement being constrained. Parameters: systemID - String system ID ofreferenced DTD |
docType | public DocType docType(String elementName)(Code) | | This will create the DocType with
the specified element name
Parameters: elementName - String name ofelement being constrained. |
document | public Document document(Element rootElement, DocType docType)(Code) | | This will create a new Document ,
with the supplied
org.jdom.Element
as the root element and the supplied
org.jdom.DocType declaration.
Parameters: rootElement - Element for document root. Parameters: docType - DocType declaration. |
document | public Document document(Element rootElement, DocType docType, String baseURI)(Code) | | This will create a new Document ,
with the supplied
org.jdom.Element
as the root element and the supplied
org.jdom.DocType declaration.
Parameters: rootElement - Element for document root. Parameters: docType - DocType declaration. Parameters: baseURI - the URI from which this doucment was loaded. |
element | public Element element(String name, Namespace namespace)(Code) | | This will create a new Element
with the supplied (local) name, and define
the
org.jdom.Namespace to be used.
Parameters: name - String name of element. Parameters: namespace - Namespace to put element in. |
element | public Element element(String name, String uri)(Code) | | This will create a new Element with
the supplied (local) name, and specifies the URI
of the
org.jdom.Namespace the Element
should be in, resulting it being unprefixed (in the default
namespace).
Parameters: name - String name of element. Parameters: uri - String URI for Namespace elementshould be in. |
element | public Element element(String name, String prefix, String uri)(Code) | | This will create a new Element with
the supplied (local) name, and specifies the prefix and URI
of the
org.jdom.Namespace the Element
should be in.
Parameters: name - String name of element. Parameters: uri - String URI for Namespace elementshould be in. |
entityRef | public EntityRef entityRef(String name)(Code) | | This will create a new EntityRef
with the supplied name.
Parameters: name - String name of element. |
entityRef | public EntityRef entityRef(String name, String publicID, String systemID)(Code) | | This will create a new EntityRef
with the supplied name, public ID, and system ID.
Parameters: name - String name of element. Parameters: publicID - String public ID of element. Parameters: systemID - String system ID of element. |
entityRef | public EntityRef entityRef(String name, String systemID)(Code) | | This will create a new EntityRef
with the supplied name and system ID.
Parameters: name - String name of element. Parameters: systemID - String system ID of element. |
processingInstruction | public ProcessingInstruction processingInstruction(String target, Map data)(Code) | | This will create a new ProcessingInstruction
with the specified target and data.
Parameters: target - String target of PI. Parameters: data - Map data for PI, inname/value pairs |
processingInstruction | public ProcessingInstruction processingInstruction(String target, String data)(Code) | | This will create a new ProcessingInstruction
with the specified target and data.
Parameters: target - String target of PI. Parameters: data - String data for PI. |
text | public Text text(String str)(Code) | | This creates the Text with the supplied text.
Parameters: str - String content of Text. |
|
|