|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<XMLReaders>
org.jdom2.input.sax.XMLReaders
public enum XMLReaders
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.
org.jdom2.input.sax
Enum Constant Summary | |
---|---|
DTDVALIDATING
The DTD-validating Singleton |
|
NONVALIDATING
The non-validating singleton |
|
XSDVALIDATING
The XSD-validating Singleton |
Method Summary | |
---|---|
org.xml.sax.XMLReader |
createXMLReader()
Get a new XMLReader from this JAXP-based XMLReaderJDOMFactory . |
boolean |
isValidating()
Does an XMLReader from this factory do more than just well-formed checks. |
static XMLReaders |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static XMLReaders[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final XMLReaders NONVALIDATING
public static final XMLReaders DTDVALIDATING
public static final XMLReaders XSDVALIDATING
Method Detail |
---|
public static XMLReaders[] values()
for (XMLReaders c : XMLReaders.values()) System.out.println(c);
public static XMLReaders valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic org.xml.sax.XMLReader createXMLReader() throws JDOMException
XMLReaderJDOMFactory
.
createXMLReader
in interface XMLReaderJDOMFactory
JDOMException
- if there is a problem creating the XMLReaderpublic boolean isValidating()
XMLReaderJDOMFactory
isValidating
in interface XMLReaderJDOMFactory
|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |