DefaultJDOMFactory creates the standard top-level JDOM classes
(Element, Document, Comment, etc). Another implementation of this factory
could be used to create custom classes.
| Modifier and Type | Method and Description |
|---|---|
| public void | addContent(Parent
The parent, Content Parent to add the content to.The content)Content to addThis will add the specified content to the specified parent instance |
| public void | addNamespaceDeclaration(Element
The element, Namespace Element to add the Namespace toThe additional)Namespace to add.Adds a namespace declaration to an Element |
| public Attribute | Returns: the created Attribute instanceString name of Attribute.String value for new attribute.Namespace of the new Attribute
This will create a new |
| public Attribute | Returns: the created Attribute instanceString name of Attribute.String value for new attribute.int type for new attribute.Namespace namespace for new attribute.
Deprecated
Use
This will create a new attribute(String, String, AttributeType, Namespace)
Attribute with the
specified (local) name, value, and type, and in the provided
.
|
| public Attribute | Returns: the created Attribute instanceString name of Attribute.String value for new attribute.AttributeType type for new attribute.Namespace namespace for new attribute.This will create a new |
| public Attribute | Returns: the created Attribute instanceString name of Attribute.String value for new attribute.This will create a new |
| public Attribute | Returns: the created Attribute instanceString name of Attribute.String value for new attribute.int type for new attribute.
Deprecated
use
This will create a new attribute(String, String, AttributeType)
Attribute with the
specified (local) name, value and type, and does not place
the attribute in a .
|
| public Attribute | Returns: the created Attribute instanceString name of Attribute.String value for new attribute.AttributeType type for new attribute.This will create a new |
| public CDATA | |
| public CDATA | |
| public Comment | |
| public Comment | |
| public DocType | Returns: the created DocType instanceString name of
element being constrained.String public ID of
referenced DTDString system ID of
referenced DTDThis will create the |
| public DocType | |
| public DocType | |
| public DocType | Returns: the created DocType instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of
element being constrained.String public ID of
referenced DTDString system ID of
referenced DTDThis will create the |
| public DocType | Returns: the created DocType instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of
element being constrained.String system ID of
referenced DTDThis will create the |
| public DocType | |
| public Document | Returns: the created Document instanceElement for document root.DocType declaration.This will create a new |
| public Document | Returns: the created Document instanceElement for document root.DocType declaration.the URI from which this document was loaded. baseURI)This will create a new |
| public Document | Returns: the created Document instanceElement for document rootThis will create a new |
| public Element | Returns: the created Element instanceString name of element.Namespace to put element in.This will create a new |
| public Element | Returns: the created Element instanceString name of element.This will create an |
| public Element | Returns: the created Element instanceString name of element.String URI for Namespace element
should be in.This will create a new |
| public Element | Returns: the created Element instanceString name of element.the NamespacePrefic to use for this Element prefix, String String URI for Namespace element
should be in.This will create a new |
| public Element | Returns: the created Element instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of element.Namespace to put element in.This will create a new |
| public Element | Returns: the created Element instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of element.This will create an |
| public Element | Returns: the created Element instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of element.String URI for Namespace element
should be in.This will create a new |
| public Element | Returns: the created Element instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of element.the NamespacePrefic to use for this Element prefix, String String URI for Namespace element
should be in.This will create a new |
| public EntityRef | |
| public EntityRef | |
| public EntityRef | |
| public EntityRef | |
| public EntityRef | Returns: the created EntityRef instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of element.String public ID of element.String system ID of element.This will create a new |
| public EntityRef | Returns: the created EntityRef instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String name of element.String system ID of element.This will create a new |
| public ProcessingInstruction | Returns: the created ProcessingInstruction instanceString target of PI.Map data for PI, in
name/value pairsThis will create a new |
| public ProcessingInstruction | Returns: the created ProcessingInstruction instanceString target of PI.String data for PI.This will create a new |
| public ProcessingInstruction | Returns: the created ProcessingInstruction instanceString target of PI.This will create a new |
| public ProcessingInstruction | Returns: the created ProcessingInstruction instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String target of PI.Map data for PI, in
name/value pairsThis will create a new |
| public ProcessingInstruction | Returns: the created ProcessingInstruction instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String target of PI.String data for PI.This will create a new |
| public ProcessingInstruction | Returns: the created ProcessingInstruction instanceThe line on which this content begins. line, int The column on the line at which this content begins. col, String String target of PI.This will create a new |
| public void | setAttribute(Element
The element, Attribute Element to set the Attribute onThe a)Attribute to setSets a specific Attribute on an Element |
| public void | |
| public Text | |
| public Text |
| addContent | back to summary |
|---|---|
| public void addContent(Parent parent, Content content) This will add the specified content to the specified parent instance | |
| addNamespaceDeclaration | back to summary |
|---|---|
| public void addNamespaceDeclaration(Element element, Namespace additional) Adds a namespace declaration to an Element | |
| attribute | back to summary |
|---|---|
| public Attribute attribute(String name, String value, Namespace namespace)
This will create a new | |
| attribute | back to summary |
|---|---|
| public Attribute attribute(String name, String value, int type, Namespace namespace)
Deprecated This will create a new
| |
| attribute | back to summary |
|---|---|
| public Attribute attribute(String name, String value, AttributeType type, Namespace namespace) This will create a new
| |
| attribute | back to summary |
|---|---|
| public Attribute attribute(String name, String value) This will create a new Note This actually explicitly puts the
| |
| attribute | back to summary |
|---|---|
| public Attribute attribute(String name, String value, int type)
Deprecated This will create a new Note This actually explicitly puts the
| |
| attribute | back to summary |
|---|---|
| public Attribute attribute(String name, String value, AttributeType type) This will create a new Note This actually explicitly puts the
| |
| cdata | back to summary |
|---|---|
| public CDATA cdata(String str) This creates the CDATA with the supplied text. | |
| cdata | back to summary |
|---|---|
| public CDATA cdata(int line, int col, String str) This creates the CDATA with the supplied text. | |
| comment | back to summary |
|---|---|
| public Comment comment(String text) This creates the comment with the supplied text. | |
| comment | back to summary |
|---|---|
| public Comment comment(int line, int col, String text) This creates the comment with the supplied text. | |
| docType | back to summary |
|---|---|
| public DocType docType(String elementName, String publicID, String systemID) This will create the | |
| docType | back to summary |
|---|---|
| public DocType docType(String elementName, String systemID) This will create the | |
| docType | back to summary |
|---|---|
| public DocType docType(String elementName) This will create the | |
| docType | back to summary |
|---|---|
| public DocType docType(int line, int col, String elementName, String publicID, String systemID) This will create the
| |
| docType | back to summary |
|---|---|
| public DocType docType(int line, int col, String elementName, String systemID) This will create the | |
| docType | back to summary |
|---|---|
| public DocType docType(int line, int col, String elementName) This will create the | |
| document | back to summary |
|---|---|
| public Document document(Element rootElement, DocType docType) This will create a new | |
| document | back to summary |
|---|---|
| public Document document(Element rootElement, DocType docType, String baseURI) This will create a new | |
| document | back to summary |
|---|---|
| public Document document(Element rootElement) This will create a new | |
| element | back to summary |
|---|---|
| public Element element(String name, Namespace namespace) This will create a new | |
| element | back to summary |
|---|---|
| public Element element(String name) This will create an | |
| element | back to summary |
|---|---|
| public Element element(String name, String uri) This will create a new | |
| element | back to summary |
|---|---|
| public Element element(String name, String prefix, String uri) This will create a new | |
| element | back to summary |
|---|---|
| public Element element(int line, int col, String name, Namespace namespace) This will create a new | |
| element | back to summary |
|---|---|
| public Element element(int line, int col, String name) This will create an | |
| element | back to summary |
|---|---|
| public Element element(int line, int col, String name, String uri) This will create a new | |
| element | back to summary |
|---|---|
| public Element element(int line, int col, String name, String prefix, String uri) This will create a new
| |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(String name) This will create a new | |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(String name, String publicID, String systemID) This will create a new | |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(String name, String systemID) This will create a new | |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(int line, int col, String name) This will create a new | |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(int line, int col, String name, String publicID, String systemID) This will create a new
| |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(int line, int col, String name, String systemID) This will create a new | |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(String target, Map<String, String> data) This will create a new
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(String target, String data) This will create a new
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(String target) This will create a new
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(int line, int col, String target, Map<String, String> data) This will create a new
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(int line, int col, String target, String data) This will create a new
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(int line, int col, String target) This will create a new
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(Element element, Attribute a) Sets a specific Attribute on an Element | |
| setRoot | back to summary |
|---|---|
| public void setRoot(Document doc, Element root) Sets the 'root' Element for a Document. | |
| text | back to summary |
|---|---|
| public Text text(int line, int col, String str) This creates the Text with the supplied text. | |
| text | back to summary |
|---|---|
| public Text text(String str) This creates the Text with the supplied text. | |