Top Description Fields Constructors Methods
org.jdom2

public final Class JDOMConstants

extends Object
Class Inheritance
Imports
javax.xml.transform.TransformerFactory, org.jdom2.output.LineSeparator, org.jdom2.transform.JDOMResult, .JDOMSource, org.jdom2.xpath.XPathFactory

A collection of constants that may be useful to JDOM users.

JDOM attempts to make knowing these 'magic' constants unnecessary, but it is not always possible. In an attempt to make it easier though, common constants are defined here. This is not a comprehensive list of all the constants that may be useful when processing XML, but it should cover most of those occasions where JDOM does not automatically do the 'right thing'.

Many of these constants are already referenced inside the JDOM code.

Author
Rolf Lear

Field Summary

Modifier and TypeField and Description
public static final String
JDOM2_FEATURE_JDOMRESULT

Constant used to define the JDOMResult with TransformerFactory.

public static final String
JDOM2_FEATURE_JDOMSOURCE

Constant used to define the JDOMSource with JAXP.

public static final String
JDOM2_PROPERTY_LINE_SEPARATOR

System Property queried to obtain an alternate default Line Separator.

public static final String
JDOM2_PROPERTY_XPATH_FACTORY

System Property queried to obtain an alternate default XPathFactory.

public static final String
public static final String
NS_PREFIX_XML

Defined as xml

public static final String
NS_PREFIX_XMLNS

Defined as xmlns

public static final String
NS_URI_DEFAULT

Defined as

public static final String
NS_URI_XML

Defined as http://www.w3.org/XML/1998/namespace

public static final String
NS_URI_XMLNS

Defined as http://www.w3.org/2000/xmlns/

public static final String
SAX_FEATURE_EXTERNAL_ENT

Defined as http://xml.org/sax/features/external-general-entities

public static final String
SAX_FEATURE_NAMESPACE_PREFIXES

Defined as http://xml.org/sax/features/namespace-prefixes

public static final String
SAX_FEATURE_NAMESPACES

Defined as http://xml.org/sax/features/namespaces

public static final String
SAX_FEATURE_VALIDATION

Defined as http://xml.org/sax/features/validation

public static final String
SAX_PROPERTY_DECLARATION_HANDLER

Defined as http://xml.org/sax/properties/declaration-handler

public static final String
SAX_PROPERTY_DECLARATION_HANDLER_ALT

Defined as http://xml.org/sax/handlers/DeclHandler

public static final String
SAX_PROPERTY_LEXICAL_HANDLER

Defined as http://xml.org/sax/properties/lexical-handler

public static final String
SAX_PROPERTY_LEXICAL_HANDLER_ALT

Defined as http://xml.org/sax/handlers/LexicalHandler

Constructor Summary

AccessConstructor and Description
private
JDOMConstants()

Keep out of public reach.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

JDOM2_FEATURE_JDOMRESULTback to summary
public static final String JDOM2_FEATURE_JDOMRESULT

Constant used to define the JDOMResult with TransformerFactory. Defined as http://jdom.org/jdom2/transform/JDOMResult/feature

See Also
JDOMResult
JDOM2_FEATURE_JDOMSOURCEback to summary
public static final String JDOM2_FEATURE_JDOMSOURCE

Constant used to define the JDOMSource with JAXP. Defined as http://jdom.org/jdom2/transform/JDOMSource/feature

See Also
JDOMSource
JDOM2_PROPERTY_LINE_SEPARATORback to summary
public static final String JDOM2_PROPERTY_LINE_SEPARATOR

System Property queried to obtain an alternate default Line Separator.

Defined as org.jdom2.output.LineSeparator

See Also
LineSeparator
JDOM2_PROPERTY_XPATH_FACTORYback to summary
public static final String JDOM2_PROPERTY_XPATH_FACTORY

System Property queried to obtain an alternate default XPathFactory. Defined as org.jdom2.xpath.XPathFactory

See Also
XPathFactory
NS_PREFIX_DEFAULTback to summary
public static final String NS_PREFIX_DEFAULT

Defined as

NS_PREFIX_XMLback to summary
public static final String NS_PREFIX_XML

Defined as xml

NS_PREFIX_XMLNSback to summary
public static final String NS_PREFIX_XMLNS

Defined as xmlns

NS_URI_DEFAULTback to summary
public static final String NS_URI_DEFAULT

Defined as

NS_URI_XMLback to summary
public static final String NS_URI_XML

Defined as http://www.w3.org/XML/1998/namespace

NS_URI_XMLNSback to summary
public static final String NS_URI_XMLNS

Defined as http://www.w3.org/2000/xmlns/

SAX_FEATURE_EXTERNAL_ENTback to summary
public static final String SAX_FEATURE_EXTERNAL_ENT

Defined as http://xml.org/sax/features/external-general-entities

SAX_FEATURE_NAMESPACE_PREFIXESback to summary
public static final String SAX_FEATURE_NAMESPACE_PREFIXES

Defined as http://xml.org/sax/features/namespace-prefixes

SAX_FEATURE_NAMESPACESback to summary
public static final String SAX_FEATURE_NAMESPACES

Defined as http://xml.org/sax/features/namespaces

SAX_FEATURE_VALIDATIONback to summary
public static final String SAX_FEATURE_VALIDATION

Defined as http://xml.org/sax/features/validation

SAX_PROPERTY_DECLARATION_HANDLERback to summary
public static final String SAX_PROPERTY_DECLARATION_HANDLER

Defined as http://xml.org/sax/properties/declaration-handler

SAX_PROPERTY_DECLARATION_HANDLER_ALTback to summary
public static final String SAX_PROPERTY_DECLARATION_HANDLER_ALT

Defined as http://xml.org/sax/handlers/DeclHandler

SAX_PROPERTY_LEXICAL_HANDLERback to summary
public static final String SAX_PROPERTY_LEXICAL_HANDLER

Defined as http://xml.org/sax/properties/lexical-handler

SAX_PROPERTY_LEXICAL_HANDLER_ALTback to summary
public static final String SAX_PROPERTY_LEXICAL_HANDLER_ALT

Defined as http://xml.org/sax/handlers/LexicalHandler

Constructor Detail

JDOMConstantsback to summary
private JDOMConstants()

Keep out of public reach.