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
枚举常量和说明 |
---|
DTDVALIDATING
The DTD-validating Singleton
|
NONVALIDATING
The non-validating singleton
|
XSDVALIDATING
The XSD-validating Singleton
|
限定符和类型 | 方法和说明 |
---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static XMLReaders[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public org.xml.sax.XMLReader createXMLReader() throws JDOMException
XMLReaderJDOMFactory
.
createXMLReader
在接口中 XMLReaderJDOMFactory
JDOMException
- if there is a problem creating the XMLReaderpublic boolean isValidating()
XMLReaderJDOMFactory
isValidating
在接口中 XMLReaderJDOMFactory