Top Description Constructors Methods
org.jdom2

public Class UncheckedJDOMFactory

extends DefaultJDOMFactory
Class Inheritance
Imports
java.util.*

Special factory for building documents without any content or structure checking. This should only be used when you are 100% positive that the input is absolutely correct. This factory can speed builds, but any problems in the input will be uncaught until later when they could cause infinite loops, malformed XML, or worse. Use with extreme caution.
Author
Various Authors - history is not complete

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addContent(Parent
The Parent to add the content to.
parent
,
Content
The Content to add
child
)

Overrides org.jdom2.DefaultJDOMFactory.addContent.

Implements org.jdom2.JDOMFactory.addContent.

This will add the specified content to the specified parent instance
public void
addNamespaceDeclaration(Element
The Element to add the Namespace to
parent
,
Namespace
The Namespace to add.
additional
)

Overrides org.jdom2.DefaultJDOMFactory.addNamespaceDeclaration.

Implements org.jdom2.JDOMFactory.addNamespaceDeclaration.

Adds a namespace declaration to an Element
public Attribute
attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
Namespace
Namespace of the new Attribute
namespace
)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name and value, and in the provided org.jdom2.Namespace.

public Attribute
attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
int
int type for new attribute.
type
,
Namespace
Namespace namespace for new attribute.
namespace
)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Deprecated
This will create a new Attribute with the specified (local) name, value, and type, and in the provided org.jdom2.Namespace.
public Attribute
attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
AttributeType
AttributeType type for new attribute.
type
,
Namespace
Namespace namespace for new attribute.
namespace
)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name, value, and type, and in the provided org.jdom2.Namespace.
public Attribute
attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name and value, and does not place the attribute in a org.jdom2.Namespace.
public Attribute
attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
int
int type for new attribute.
type
)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Deprecated
This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a org.jdom2.Namespace.
public Attribute
attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
AttributeType
AttributeType type for new attribute.
type
)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a org.jdom2.Namespace.
public CDATA
cdata(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String content of CDATA.
str
)

Overrides org.jdom2.DefaultJDOMFactory.cdata.

Implements org.jdom2.JDOMFactory.cdata.

This creates the CDATA with the supplied text.
public Comment
comment(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String content of comment.
str
)

Overrides org.jdom2.DefaultJDOMFactory.comment.

Implements org.jdom2.JDOMFactory.comment.

This creates the comment with the supplied text.
public DocType
docType(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element being constrained.
elementName
,
String
String public ID of referenced DTD
publicID
,
String
String system ID of referenced DTD
systemID
)

Overrides org.jdom2.DefaultJDOMFactory.docType.

Implements org.jdom2.JDOMFactory.docType.

This will create the DocType with the specified element name and a reference to an external DTD.
public DocType
docType(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element being constrained.
elementName
,
String
String system ID of referenced DTD
systemID
)

Overrides org.jdom2.DefaultJDOMFactory.docType.

Implements org.jdom2.JDOMFactory.docType.

This will create the DocType with the specified element name and reference to an external DTD.
public DocType
docType(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element being constrained.
elementName
)

Overrides org.jdom2.DefaultJDOMFactory.docType.

Implements org.jdom2.JDOMFactory.docType.

This will create the DocType with the specified element name
public Document
document(Element
Element for document root.
rootElement
,
DocType
DocType declaration.
docType
,
String
the URI from which this document was loaded.
baseURI
)

Overrides org.jdom2.DefaultJDOMFactory.document.

Implements org.jdom2.JDOMFactory.document.

This will create a new Document, with the supplied org.jdom2.Element as the root element and the supplied org.jdom2.DocType declaration.
public Document
document(Element
Element for document root.
rootElement
,
DocType
DocType declaration.
docType
)

Overrides org.jdom2.DefaultJDOMFactory.document.

Implements org.jdom2.JDOMFactory.document.

This will create a new Document, with the supplied org.jdom2.Element as the root element and the supplied org.jdom2.DocType declaration.
public Document
document(Element
Element for document root
rootElement
)

Overrides org.jdom2.DefaultJDOMFactory.document.

Implements org.jdom2.JDOMFactory.document.

This will create a new Document, with the supplied org.jdom2.Element as the root element, and no org.jdom2.DocType declaration.
public Element
element(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element.
name
,
Namespace
Namespace to put element in.
namespace
)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

This will create a new Element with the supplied (local) name, and define the org.jdom2.Namespace to be used.
public Element
element(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element.
name
)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

This will create an Element in no org.jdom2.Namespace.
public Element
element(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element.
name
,
String
String URI for Namespace element should be in.
uri
)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

This will create a new Element with the supplied (local) name, and specifies the URI of the org.jdom2.Namespace the Element should be in, resulting it being unprefixed (in the default namespace).
public Element
element(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element.
name
,
String
the NamespacePrefic to use for this Element
prefix
,
String
String URI for Namespace element should be in.
uri
)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

This will create a new Element with the supplied (local) name, and specifies the prefix and URI of the org.jdom2.Namespace the Element should be in.
public EntityRef
entityRef(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element.
name
)

Overrides org.jdom2.DefaultJDOMFactory.entityRef.

Implements org.jdom2.JDOMFactory.entityRef.

This will create a new EntityRef with the supplied name.
public EntityRef
entityRef(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element.
name
,
String
String system ID of element.
systemID
)

Overrides org.jdom2.DefaultJDOMFactory.entityRef.

Implements org.jdom2.JDOMFactory.entityRef.

This will create a new EntityRef with the supplied name and system ID.
public EntityRef
entityRef(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String name of element.
name
,
String
String public ID of element.
publicID
,
String
String system ID of element.
systemID
)

Overrides org.jdom2.DefaultJDOMFactory.entityRef.

Implements org.jdom2.JDOMFactory.entityRef.

This will create a new EntityRef with the supplied name, public ID, and system ID.
public ProcessingInstruction
processingInstruction(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String target of PI.
target
,
Map<String, String>
Map data for PI, in name/value pairs
data
)

Overrides org.jdom2.DefaultJDOMFactory.processingInstruction.

Implements org.jdom2.JDOMFactory.processingInstruction.

This will create a new ProcessingInstruction with the specified target and data.
public ProcessingInstruction
processingInstruction(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String target of PI.
target
,
String
String data for PI.
data
)

Overrides org.jdom2.DefaultJDOMFactory.processingInstruction.

Implements org.jdom2.JDOMFactory.processingInstruction.

This will create a new ProcessingInstruction with the specified target and data.
public ProcessingInstruction
processingInstruction(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String target of PI.
target
)

Overrides org.jdom2.DefaultJDOMFactory.processingInstruction.

Implements org.jdom2.JDOMFactory.processingInstruction.

This will create a new ProcessingInstruction with the specified target and no data.
public void
setAttribute(Element
The Element to set the Attribute on
parent
,
Attribute
The Attribute to set
a
)

Overrides org.jdom2.DefaultJDOMFactory.setAttribute.

Implements org.jdom2.JDOMFactory.setAttribute.

Sets a specific Attribute on an Element
public void
setRoot(Document
The Document to set the Root Element of.
doc
,
Element
The Element to set as the root.
root
)

Overrides org.jdom2.DefaultJDOMFactory.setRoot.

Implements org.jdom2.JDOMFactory.setRoot.

Sets the 'root' Element for a Document.
public Text
text(final int
The line on which this content begins.
line
,
final int
The column on the line at which this content begins.
col
,
final String
String content of Text.
str
)

Overrides org.jdom2.DefaultJDOMFactory.text.

Implements org.jdom2.JDOMFactory.text.

This creates the Text with the supplied text.
Inherited from org.jdom2.DefaultJDOMFactory:
cdatacommentdocTypedocTypedocTypeelementelementelementelemententityRefentityRefentityRefprocessingInstructionprocessingInstructionprocessingInstructiontext

Constructor Detail

UncheckedJDOMFactoryback to summary
public UncheckedJDOMFactory()

Method Detail

addContentback to summary
public void addContent(Parent parent, Content child)

Overrides org.jdom2.DefaultJDOMFactory.addContent.

Implements org.jdom2.JDOMFactory.addContent.

Doc from org.jdom2.JDOMFactory.addContent.

This will add the specified content to the specified parent instance

Parameters
parent:Parent

The Parent to add the content to.

child:Content

The Content to add

Annotations
@Override
addNamespaceDeclarationback to summary
public void addNamespaceDeclaration(Element parent, Namespace additional)

Overrides org.jdom2.DefaultJDOMFactory.addNamespaceDeclaration.

Implements org.jdom2.JDOMFactory.addNamespaceDeclaration.

Doc from org.jdom2.JDOMFactory.addNamespaceDeclaration.

Adds a namespace declaration to an Element

Parameters
parent:Element

The Element to add the Namespace to

additional:Namespace

The Namespace to add.

Annotations
@Override
attributeback to summary
public Attribute attribute(String name, String value, Namespace namespace)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Doc from org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name and value, and in the provided org.jdom2.Namespace.

Parameters
name:String

String name of Attribute.

value:String

String value for new attribute.

namespace:Namespace

Namespace of the new Attribute

Returns:Attribute

the created Attribute instance

Annotations
@Override
attributeback to summary
public Attribute attribute(String name, String value, int type, Namespace namespace)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Doc from org.jdom2.JDOMFactory.attribute.

Deprecated

This will create a new Attribute with the specified (local) name, value, and type, and in the provided org.jdom2.Namespace.

Parameters
name:String

String name of Attribute.

value:String

String value for new attribute.

type:int

int type for new attribute.

namespace:Namespace

Namespace namespace for new attribute.

Returns:Attribute

the created Attribute instance

Annotations
@Override
@Deprecated
attributeback to summary
public Attribute attribute(String name, String value, AttributeType type, Namespace namespace)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Doc from org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name, value, and type, and in the provided org.jdom2.Namespace.

Parameters
name:String

String name of Attribute.

value:String

String value for new attribute.

type:AttributeType

AttributeType type for new attribute.

namespace:Namespace

Namespace namespace for new attribute.

Returns:Attribute

the created Attribute instance

Annotations
@Override
attributeback to summary
public Attribute attribute(String name, String value)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Doc from org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name and value, and does not place the attribute in a org.jdom2.Namespace.

Note

This actually explicitly puts the Attribute in the "empty" Namespace (org.jdom2.Namespace#NO_NAMESPACE).

Parameters
name:String

String name of Attribute.

value:String

String value for new attribute.

Returns:Attribute

the created Attribute instance

Annotations
@Override
attributeback to summary
public Attribute attribute(String name, String value, int type)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Doc from org.jdom2.JDOMFactory.attribute.

Deprecated

This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a org.jdom2.Namespace.

Note

This actually explicitly puts the Attribute in the "empty" Namespace (org.jdom2.Namespace#NO_NAMESPACE).

Parameters
name:String

String name of Attribute.

value:String

String value for new attribute.

type:int

int type for new attribute.

Returns:Attribute

the created Attribute instance

Annotations
@Override
@Deprecated
attributeback to summary
public Attribute attribute(String name, String value, AttributeType type)

Overrides org.jdom2.DefaultJDOMFactory.attribute.

Implements org.jdom2.JDOMFactory.attribute.

Doc from org.jdom2.JDOMFactory.attribute.

This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a org.jdom2.Namespace.

Note

This actually explicitly puts the Attribute in the "empty" Namespace (org.jdom2.Namespace#NO_NAMESPACE).

Parameters
name:String

String name of Attribute.

value:String

String value for new attribute.

type:AttributeType

AttributeType type for new attribute.

Returns:Attribute

the created Attribute instance

Annotations
@Override
cdataback to summary
public CDATA cdata(final int line, final int col, final String str)

Overrides org.jdom2.DefaultJDOMFactory.cdata.

Implements org.jdom2.JDOMFactory.cdata.

Doc from org.jdom2.JDOMFactory.cdata.

This creates the CDATA with the supplied text.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

str:String

String content of CDATA.

Returns:CDATA

the created CDATA instance

Annotations
@Override
commentback to summary
public Comment comment(final int line, final int col, final String str)

Overrides org.jdom2.DefaultJDOMFactory.comment.

Implements org.jdom2.JDOMFactory.comment.

Doc from org.jdom2.JDOMFactory.comment.

This creates the comment with the supplied text.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

str:String

String content of comment.

Returns:Comment

the created Comment instance

Annotations
@Override
docTypeback to summary
public DocType docType(final int line, final int col, final String elementName, String publicID, String systemID)

Overrides org.jdom2.DefaultJDOMFactory.docType.

Implements org.jdom2.JDOMFactory.docType.

Doc from org.jdom2.JDOMFactory.docType.

This will create the DocType with the specified element name and a reference to an external DTD.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

elementName:String

String name of element being constrained.

publicID:String

String public ID of referenced DTD

systemID:String

String system ID of referenced DTD

Returns:DocType

the created DocType instance

Annotations
@Override
docTypeback to summary
public DocType docType(final int line, final int col, final String elementName, String systemID)

Overrides org.jdom2.DefaultJDOMFactory.docType.

Implements org.jdom2.JDOMFactory.docType.

Doc from org.jdom2.JDOMFactory.docType.

This will create the DocType with the specified element name and reference to an external DTD.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

elementName:String

String name of element being constrained.

systemID:String

String system ID of referenced DTD

Returns:DocType

the created DocType instance

Annotations
@Override
docTypeback to summary
public DocType docType(final int line, final int col, final String elementName)

Overrides org.jdom2.DefaultJDOMFactory.docType.

Implements org.jdom2.JDOMFactory.docType.

Doc from org.jdom2.JDOMFactory.docType.

This will create the DocType with the specified element name

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

elementName:String

String name of element being constrained.

Returns:DocType

the created DocType instance

Annotations
@Override
documentback to summary
public Document document(Element rootElement, DocType docType, String baseURI)

Overrides org.jdom2.DefaultJDOMFactory.document.

Implements org.jdom2.JDOMFactory.document.

Doc from org.jdom2.JDOMFactory.document.

This will create a new Document, with the supplied org.jdom2.Element as the root element and the supplied org.jdom2.DocType declaration.

Parameters
rootElement:Element

Element for document root.

docType:DocType

DocType declaration.

baseURI:String

the URI from which this document was loaded.

Returns:Document

the created Document instance

Annotations
@Override
documentback to summary
public Document document(Element rootElement, DocType docType)

Overrides org.jdom2.DefaultJDOMFactory.document.

Implements org.jdom2.JDOMFactory.document.

Doc from org.jdom2.JDOMFactory.document.

This will create a new Document, with the supplied org.jdom2.Element as the root element and the supplied org.jdom2.DocType declaration.

Parameters
rootElement:Element

Element for document root.

docType:DocType

DocType declaration.

Returns:Document

the created Document instance

Annotations
@Override
documentback to summary
public Document document(Element rootElement)

Overrides org.jdom2.DefaultJDOMFactory.document.

Implements org.jdom2.JDOMFactory.document.

Doc from org.jdom2.JDOMFactory.document.

This will create a new Document, with the supplied org.jdom2.Element as the root element, and no org.jdom2.DocType declaration.

Parameters
rootElement:Element

Element for document root

Returns:Document

the created Document instance

Annotations
@Override
elementback to summary
public Element element(final int line, final int col, final String name, Namespace namespace)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

Doc from org.jdom2.JDOMFactory.element.

This will create a new Element with the supplied (local) name, and define the org.jdom2.Namespace to be used.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

name:String

String name of element.

namespace:Namespace

Namespace to put element in.

Returns:Element

the created Element instance

Annotations
@Override
elementback to summary
public Element element(final int line, final int col, final String name)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

Doc from org.jdom2.JDOMFactory.element.

This will create an Element in no org.jdom2.Namespace.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

name:String

String name of element.

Returns:Element

the created Element instance

Annotations
@Override
elementback to summary
public Element element(final int line, final int col, final String name, String uri)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

Doc from org.jdom2.JDOMFactory.element.

This will create a new Element with the supplied (local) name, and specifies the URI of the org.jdom2.Namespace the Element should be in, resulting it being unprefixed (in the default namespace).

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

name:String

String name of element.

uri:String

String URI for Namespace element should be in.

Returns:Element

the created Element instance

Annotations
@Override
elementback to summary
public Element element(final int line, final int col, final String name, String prefix, String uri)

Overrides org.jdom2.DefaultJDOMFactory.element.

Implements org.jdom2.JDOMFactory.element.

Doc from org.jdom2.JDOMFactory.element.

This will create a new Element with the supplied (local) name, and specifies the prefix and URI of the org.jdom2.Namespace the Element should be in.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

name:String

String name of element.

prefix:String

the NamespacePrefic to use for this Element

uri:String

String URI for Namespace element should be in.

Returns:Element

the created Element instance

Annotations
@Override
entityRefback to summary
public EntityRef entityRef(final int line, final int col, final String name)

Overrides org.jdom2.DefaultJDOMFactory.entityRef.

Implements org.jdom2.JDOMFactory.entityRef.

Doc from org.jdom2.JDOMFactory.entityRef.

This will create a new EntityRef with the supplied name.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

name:String

String name of element.

Returns:EntityRef

the created EntityRef instance

Annotations
@Override
entityRefback to summary
public EntityRef entityRef(final int line, final int col, final String name, String systemID)

Overrides org.jdom2.DefaultJDOMFactory.entityRef.

Implements org.jdom2.JDOMFactory.entityRef.

Doc from org.jdom2.JDOMFactory.entityRef.

This will create a new EntityRef with the supplied name and system ID.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

name:String

String name of element.

systemID:String

String system ID of element.

Returns:EntityRef

the created EntityRef instance

Annotations
@Override
entityRefback to summary
public EntityRef entityRef(final int line, final int col, final String name, String publicID, String systemID)

Overrides org.jdom2.DefaultJDOMFactory.entityRef.

Implements org.jdom2.JDOMFactory.entityRef.

Doc from org.jdom2.JDOMFactory.entityRef.

This will create a new EntityRef with the supplied name, public ID, and system ID.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

name:String

String name of element.

publicID:String

String public ID of element.

systemID:String

String system ID of element.

Returns:EntityRef

the created EntityRef instance

Annotations
@Override
processingInstructionback to summary
public ProcessingInstruction processingInstruction(final int line, final int col, final String target, Map<String, String> data)

Overrides org.jdom2.DefaultJDOMFactory.processingInstruction.

Implements org.jdom2.JDOMFactory.processingInstruction.

Doc from org.jdom2.JDOMFactory.processingInstruction.

This will create a new ProcessingInstruction with the specified target and data.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

target:String

String target of PI.

data:Map<String, String>

Map data for PI, in name/value pairs

Returns:ProcessingInstruction

the created ProcessingInstruction instance

Annotations
@Override
processingInstructionback to summary
public ProcessingInstruction processingInstruction(final int line, final int col, final String target, String data)

Overrides org.jdom2.DefaultJDOMFactory.processingInstruction.

Implements org.jdom2.JDOMFactory.processingInstruction.

Doc from org.jdom2.JDOMFactory.processingInstruction.

This will create a new ProcessingInstruction with the specified target and data.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

target:String

String target of PI.

data:String

String data for PI.

Returns:ProcessingInstruction

the created ProcessingInstruction instance

Annotations
@Override
processingInstructionback to summary
public ProcessingInstruction processingInstruction(final int line, final int col, final String target)

Overrides org.jdom2.DefaultJDOMFactory.processingInstruction.

Implements org.jdom2.JDOMFactory.processingInstruction.

Doc from org.jdom2.JDOMFactory.processingInstruction.

This will create a new ProcessingInstruction with the specified target and no data.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

target:String

String target of PI.

Returns:ProcessingInstruction

the created ProcessingInstruction instance

Annotations
@Override
setAttributeback to summary
public void setAttribute(Element parent, Attribute a)

Overrides org.jdom2.DefaultJDOMFactory.setAttribute.

Implements org.jdom2.JDOMFactory.setAttribute.

Doc from org.jdom2.JDOMFactory.setAttribute.

Sets a specific Attribute on an Element

Parameters
parent:Element

The Element to set the Attribute on

a:Attribute

The Attribute to set

Annotations
@Override
setRootback to summary
public void setRoot(Document doc, Element root)

Overrides org.jdom2.DefaultJDOMFactory.setRoot.

Implements org.jdom2.JDOMFactory.setRoot.

Doc from org.jdom2.JDOMFactory.setRoot.

Sets the 'root' Element for a Document.

Parameters
doc:Document

The Document to set the Root Element of.

root:Element

The Element to set as the root.

Annotations
@Override
textback to summary
public Text text(final int line, final int col, final String str)

Overrides org.jdom2.DefaultJDOMFactory.text.

Implements org.jdom2.JDOMFactory.text.

Doc from org.jdom2.JDOMFactory.text.

This creates the Text with the supplied text.

Parameters
line:int

The line on which this content begins.

col:int

The column on the line at which this content begins.

str:String

String content of Text.

Returns:Text

the created Text instance

Annotations
@Override