Top Deprecated
JDOM 2.0.6.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.jdom2.Attribute.Attribute(final String
String name of Attribute.
name
,
final String
String value for new attribute.
value
,
final int
int type for new attribute.
type
,
final Namespace
Namespace namespace for new attribute.
namespace
)

Use Attribute(String, String, AttributeType, Namespace).

org.jdom2.Attribute.Attribute(final String
String name of Attribute.
name
,
final String
String value for new attribute.
value
,
final int
int type for new attribute.
type
)

Use Attribute(String, String, AttributeType)

Returns:

Attribute - this Attribute modified.
org.jdom2.Attribute.setAttributeType
(final int
int type for the attribute.
type
)

use setAttributeType(AttributeType)

Returns:

The AttributeType corresponding to the specified equivalent
org.jdom2.AttributeType.byIndex
(int
The AttributeType int equivalent to retrieve
index
)

Use normal Enums instead of int's

org.jdom2.DefaultJDOMFactory.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
)

org.jdom2.DefaultJDOMFactory.attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
int
int type for new attribute.
type
)

Returns:

the created Attribute instance
org.jdom2.JDOMFactory.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
)

Use attribute(String, String, AttributeType, Namespace)

Returns:

the created Attribute instance
org.jdom2.JDOMFactory.attribute
(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
int
int type for new attribute.
type
)

use attribute(String, String, AttributeType)

org.jdom2.SlimJDOMFactory.attribute(final String
String name of Attribute.
name
,
final String
String value for new attribute.
value
,
final int
int type for new attribute.
type
,
final Namespace
Namespace namespace for new attribute.
namespace
)

org.jdom2.SlimJDOMFactory.attribute(final String
String name of Attribute.
name
,
final String
String value for new attribute.
value
,
final int
int type for new attribute.
type
)

org.jdom2.UncheckedJDOMFactory.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
)

org.jdom2.UncheckedJDOMFactory.attribute(String
String name of Attribute.
name
,
String
String value for new attribute.
value
,
int
int type for new attribute.
type
)

org.jdom2.input.SAXBuilder.SAXBuilder(final boolean
boolean indicating if DTD validation should occur.
validate
)

use SAXBuilder#SAXBuilder(XMLReaderJDOMFactory) with either XMLReaders#DTDVALIDATING or XMLReaders#NONVALIDATING

org.jdom2.input.SAXBuilder.SAXBuilder(final String
String name of SAX Driver to use for parsing.
saxDriverClass
,
final boolean
boolean indicating if validation should occur.
validate
)

use SAXBuilder#SAXBuilder(XMLReaderJDOMFactory) with XMLReaderSAX2Factory#XMLReaderSAX2Factory(boolean, String)

Returns:

the driver class assigned in the constructor
org.jdom2.input.SAXBuilder.getDriverClass
()

as the driver class is only available in limited situations and anyway it had to be supplied in a constructor as either a direct value or as an XMLReaderSAX2Factory instance.

Returns:

the factory in use
org.jdom2.input.SAXBuilder.getFactory
()

as it is replaced by getJDOMFactory()

Returns:

whether validation is to be performed during the build
org.jdom2.input.SAXBuilder.getValidation
()

in lieu of isValidating()

org.jdom2.input.SAXBuilder.setFactory(final JDOMFactory
JDOMFactory to use
factory
)

as it is replaced by setJDOMFactory(JDOMFactory)

org.jdom2.input.SAXBuilder.setFastReconfigure(final boolean
Whether to do a fast reconfiguration of the parser
fastReconfigure
)

All reused Parsers are now fast-reconfigured. No need to set it.

org.jdom2.input.SAXBuilder.setValidation(final boolean
boolean indicating whether validation should occur.
validate
)

use setXMLReaderFactory(XMLReaderJDOMFactory)

org.jdom2.output.DOMOutputter.DOMOutputter(String
String name of class to use for DOM output
adapterClass
)

use DOMOutputter#DOMOutputter(DOMAdapter) instead.

Returns:

the forceNamespaceAware flag value
org.jdom2.output.DOMOutputter.getForceNamespaceAware
()

All DOMOutputters are always NamesapceAware. Always true.

org.jdom2.output.DOMOutputter.setForceNamespaceAware(boolean
true to force NamespaceAware
flag
)

All DOMOutputters are now always NamespaceAware.

Returns:

null
org.jdom2.output.SAXOutputter.getLocator
()

there is no way to get a meaningful document Locator outside of an active output process, and the contents of the locator are meaningless outside of an active output process anyway.

org.jdom2.xpath.XPath

Use XPathFactory/XPathExpression/XPathBuilder instead.

Returns:

an XPath instance representing the input path
org.jdom2.xpath.XPath.newInstance
(String
the XPath expression to wrap.
path
)

Deprecated as a consequence of XPath being deprecated. See corresponding docs for further information.

org.jdom2.xpath.jaxen.JDOMXPath

replaced by compiled version.