All Packages Class Hierarchy This Package Previous Next Index
JDOMFactory is an interface to be used by builders
in 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.
This will create a new
This will create a new
This will create a new
This will create a new
This creates the CDATA with the supplied
text.
This creates the comment with the supplied
text.
This will create the
This will create the
This will create the
This will create a new
This will create a new
This will create an
This will create a new
This will create a new
This will create a new
This will create a new
This will create a new
This will create a new
This will create a new
This creates the Text with the supplied
text.
Attribute with the
specified (local) name and value, and does not place
the attribute in a {
attribute(String, String, int)
Attribute with the
specified (local) name, value and type, and does not place
the attribute in a {
attribute(String, String, int, Namespace)
Attribute with the
specified (local) name, value, and type, and in the provided
{
attribute(String, String, Namespace)
Attribute with the
specified (local) name and value, and in the provided
{
cdata(String)
comment(String)
docType(String)
DocType with
the specified element name
docType(String, String)
DocType with
the specified element name and reference to an
external DTD.
docType(String, String, String)
DocType with
the specified element name and a reference to an
external DTD.
document(Element)
Document,
with the supplied {
document(Element, DocType)
Document,
with the supplied {
element(String)
Element in no
{
element(String, Namespace)
Element
with the supplied (local) name, and define
the {
element(String, String)
Element with
the supplied (local) name, and specifies the URI
of the {
element(String, String, String)
Element with
the supplied (local) name, and specifies the prefix and URI
of the {
entityRef(String)
EntityRef
with the supplied name.
entityRef(String, String, String)
EntityRef
with the supplied name, public ID, and system ID.
processingInstruction(String, Map)
ProcessingInstruction
with the specified target and data.
processingInstruction(String, String)
ProcessingInstruction
with the specified target and data.
text(String)
public abstract 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
{@link Namespace}.
String name of Attribute.
String value for new attribute.
public abstract 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
{@link Namespace}.
String name of Attribute.
String value for new attribute.
int type for new attribute.
Namespace namespace for new attribute.
public abstract 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 {@link Namespace}.
Note: This actually explicitly puts the
Attribute in the "empty" Namespace
({@link Namespace#NO_NAMESPACE}).
String name of Attribute.
String value for new attribute.
public abstract 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 {@link Namespace}.
Note: This actually explicitly puts the
Attribute in the "empty" Namespace
({@link Namespace#NO_NAMESPACE}).
String name of Attribute.
String value for new attribute.
int type for new attribute.
public abstract CDATA cdata(String str)
This creates the CDATA with the supplied text.
String content of CDATA.
public abstract Text text(String str)
This creates the Text with the supplied text.
String content of Text.
public abstract Comment comment(String text)
This creates the comment with the supplied text.
String content of comment.
public abstract 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.
String name of
element being constrained.
String public ID of
referenced DTD
String system ID of
referenced DTD
public abstract DocType docType(String elementName,
String systemID)
This will create the DocType with
the specified element name and reference to an
external DTD.
String name of
element being constrained.
String system ID of
referenced DTD
public abstract DocType docType(String elementName)
This will create the DocType with
the specified element name
String name of
element being constrained.
public abstract Document document(Element rootElement,
DocType docType)
This will create a new Document,
with the supplied {@link Element}
as the root element and the supplied
{@link DocType} declaration.
Element for document root.
DocType declaration.
public abstract Document document(Element rootElement)
This will create a new Document,
with the supplied {@link Element}
as the root element, and no {@link DocType}
declaration.
Element for document root
public abstract Element element(String name,
Namespace namespace)
This will create a new Element
with the supplied (local) name, and define
the {@link Namespace} to be used.
String name of element.
public abstract Element element(String name)
This will create an Element in no
{@link Namespace}.
String name of element.
public abstract Element element(String name,
String uri)
This will create a new Element with
the supplied (local) name, and specifies the URI
of the {@link Namespace} the Element
should be in, resulting it being unprefixed (in the default
namespace).
String name of element.
String URI for Namespace element
should be in.
public abstract 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 {@link Namespace} the Element
should be in.
String name of element.
String URI for Namespace element
should be in.
public abstract ProcessingInstruction processingInstruction(String target,
Map data)
This will create a new ProcessingInstruction
with the specified target and data.
String target of PI.
Map data for PI, in
name/value pairs
public abstract ProcessingInstruction processingInstruction(String target,
String data)
This will create a new ProcessingInstruction
with the specified target and data.
String target of PI.
String data for PI.
public abstract EntityRef entityRef(String name)
This will create a new EntityRef
with the supplied name.
String name of element.
public abstract EntityRef entityRef(String name,
String publicID,
String systemID)
This will create a new EntityRef
with the supplied name, public ID, and system ID.
String name of element.
String public ID of element.
String system ID of element.
All Packages Class Hierarchy This Package Previous Next Index