Package org.jdom2.input.sax
Enum Class XMLReaders
- All Implemented Interfaces:
Serializable
,Comparable<XMLReaders>
,Constable
,XMLReaderJDOMFactory
An enumeration of
XMLReaderJDOMFactory
that allows for a single
central location to create XMLReaders. The Singletons (members) of this
enumeration can produce the most common XMLReaders: non-validating, XSD
validating, and DocType validating.
See the package documentation
for details of how
to create the SAXParser you desire.
- Author:
- Rolf Lear
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe DTD-validating SingletonThe non-validating singletonThe XSD-validating Singleton -
Method Summary
Modifier and TypeMethodDescriptionGet a new XMLReader from this JAXP-basedXMLReaderJDOMFactory
.boolean
Does an XMLReader from this factory do more than just well-formed checks.static XMLReaders
Returns the enum constant of this class with the specified name.static XMLReaders[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONVALIDATING
The non-validating singleton -
DTDVALIDATING
The DTD-validating Singleton -
XSDVALIDATING
The XSD-validating Singleton
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
createXMLReader
Get a new XMLReader from this JAXP-basedXMLReaderJDOMFactory
.- Specified by:
createXMLReader
in interfaceXMLReaderJDOMFactory
- Returns:
- a new XMLReader instance.
- Throws:
JDOMException
- if there is a problem creating the XMLReader
-
isValidating
public boolean isValidating()Description copied from interface:XMLReaderJDOMFactory
Does an XMLReader from this factory do more than just well-formed checks.- Specified by:
isValidating
in interfaceXMLReaderJDOMFactory
- Returns:
- true if the XMLReader validates
-