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 | |
| public void | |
| public Attribute | attribute(String
String name of Attribute.String value for new attribute.
This will create a new |
| public Attribute | attribute(String
String name of Attribute.String value for new attribute.int type for new attribute.Namespace namespace for new attribute.This will create a new |
| public Attribute | attribute(String
String name of Attribute.String value for new attribute.This will create a new |
| public Attribute | attribute(String
String name of Attribute.String value for new attribute.int type for new attribute.This will create a new |
| public CDATA | |
| public Comment | |
| public DocType | |
| public DocType | |
| public DocType | |
| public Document | document(Element
Element for document root.DocType declaration.This will create a new |
| public Document | document(Element
Element for document root.DocType declaration.the URI from which this doucment was loaded. baseURI)This will create a new |
| public Document | document(Element
Element for document rootThis will create a new |
| public Element | element(String
String name of element.Namespace to put element in.This will create a new |
| public Element | |
| public Element | element(String
String name of element.String URI for Namespace element
should be in.This will create a new |
| public Element | element(String
String name of element.String URI for Namespace element
should be in.This will create a new |
| public EntityRef | |
| public EntityRef | |
| public EntityRef | |
| public ProcessingInstruction | processingInstruction(String
String target of PI.Map data for PI, in
name/value pairsThis will create a new |
| public ProcessingInstruction | processingInstruction(String
String target of PI.String data for PI.This will create a new |
| public void | |
| public Text |
| addContent | back to summary |
|---|---|
| public void addContent(Parent parent, Content content) | |
| addNamespaceDeclaration | back to summary |
|---|---|
| public void addNamespaceDeclaration(Element element, Namespace additional) | |
| 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) 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) 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.
| |
| comment | back to summary |
|---|---|
| public Comment comment(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
| |
| 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 | |
| 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 | |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(String target, Map<K, V> data) This will create a new | |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(String target, String data) This will create a new | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(Element element, Attribute a) | |
| text | back to summary |
|---|---|
| public Text text(String str) This creates the Text with the supplied text.
| |