public enum XMLReaders extends java.lang.Enum<XMLReaders> implements XMLReaderJDOMFactory
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 and Description |
---|
DTDVALIDATING
The DTD-validating Singleton
|
NONVALIDATING
The non-validating singleton
|
XSDVALIDATING
The XSD-validating Singleton
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final XMLReaders NONVALIDATING
public static final XMLReaders DTDVALIDATING
public static final XMLReaders XSDVALIDATING
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 namejava.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
Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.