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.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | JDOM2_FEATURE_JDOMRESULT
Constant used to define the |
| public static final String | JDOM2_FEATURE_JDOMSOURCE
Constant used to define the |
| 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 | NS_PREFIX_DEFAULT
Defined as |
| 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 |
| Access | Constructor and Description |
|---|---|
| private |
| JDOM2_FEATURE_JDOMRESULT | back to summary |
|---|---|
| public static final String JDOM2_FEATURE_JDOMRESULT Constant used to define the
| |
| JDOM2_FEATURE_JDOMSOURCE | back to summary |
|---|---|
| public static final String JDOM2_FEATURE_JDOMSOURCE Constant used to define the
| |
| JDOM2_PROPERTY_LINE_SEPARATOR | back 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
| |
| JDOM2_PROPERTY_XPATH_FACTORY | back 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
| |
| NS_PREFIX_DEFAULT | back to summary |
|---|---|
| public static final String NS_PREFIX_DEFAULT Defined as | |
| NS_PREFIX_XML | back to summary |
|---|---|
| public static final String NS_PREFIX_XML Defined as xml | |
| NS_PREFIX_XMLNS | back to summary |
|---|---|
| public static final String NS_PREFIX_XMLNS Defined as xmlns | |
| NS_URI_DEFAULT | back to summary |
|---|---|
| public static final String NS_URI_DEFAULT Defined as | |
| NS_URI_XML | back to summary |
|---|---|
| public static final String NS_URI_XML Defined as http://www.w3.org/XML/1998/namespace | |
| NS_URI_XMLNS | back to summary |
|---|---|
| public static final String NS_URI_XMLNS Defined as http://www.w3.org/2000/xmlns/ | |
| SAX_FEATURE_EXTERNAL_ENT | back to summary |
|---|---|
| public static final String SAX_FEATURE_EXTERNAL_ENT Defined as http://xml.org/sax/features/external-general-entities | |
| SAX_FEATURE_NAMESPACE_PREFIXES | back to summary |
|---|---|
| public static final String SAX_FEATURE_NAMESPACE_PREFIXES Defined as http://xml.org/sax/features/namespace-prefixes | |
| SAX_FEATURE_NAMESPACES | back to summary |
|---|---|
| public static final String SAX_FEATURE_NAMESPACES Defined as http://xml.org/sax/features/namespaces | |
| SAX_FEATURE_VALIDATION | back to summary |
|---|---|
| public static final String SAX_FEATURE_VALIDATION Defined as http://xml.org/sax/features/validation | |
| SAX_PROPERTY_DECLARATION_HANDLER | back to summary |
|---|---|
| public static final String SAX_PROPERTY_DECLARATION_HANDLER Defined as http://xml.org/sax/properties/declaration-handler | |
| SAX_PROPERTY_DECLARATION_HANDLER_ALT | back to summary |
|---|---|
| public static final String SAX_PROPERTY_DECLARATION_HANDLER_ALT Defined as http://xml.org/sax/handlers/DeclHandler | |
| SAX_PROPERTY_LEXICAL_HANDLER | back to summary |
|---|---|
| public static final String SAX_PROPERTY_LEXICAL_HANDLER Defined as http://xml.org/sax/properties/lexical-handler | |
| SAX_PROPERTY_LEXICAL_HANDLER_ALT | back to summary |
|---|---|
| public static final String SAX_PROPERTY_LEXICAL_HANDLER_ALT Defined as http://xml.org/sax/handlers/LexicalHandler | |
| JDOMConstants | back to summary |
|---|---|
| private JDOMConstants() Keep out of public reach. | |