|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.stax2.validation.XMLValidationSchemaFactory
public abstract class XMLValidationSchemaFactory
Defines an abstract factory for constructing XMLValidationSchema
instances. This abstract base class has methods for instantiating the
actual implementation (similar to the way
XMLInputFactory
works, and defines the API to
use for configuring these instances, as well as factory methods concrete
classes implement for actually creating XMLValidationSchema
instances.
Note: this class is part of the second major revision of StAX 2 API (StAX2, v2), and is optional for StAX2 implementations to support.
XMLInputFactory
,
XMLValidationSchema
,
XMLInputFactory2
Field Summary | |
---|---|
static java.lang.String |
INTERNAL_ID_SCHEMA_DTD
|
static java.lang.String |
INTERNAL_ID_SCHEMA_RELAXNG
|
static java.lang.String |
INTERNAL_ID_SCHEMA_TREX
|
static java.lang.String |
INTERNAL_ID_SCHEMA_W3C
|
static java.lang.String |
P_ENABLE_CACHING
Property that determines whether schema instances created by this factory instance can be cached by the factory; if false, no caching is allowed to be doe; if true, factory can do caching if it wants to. |
static java.lang.String |
P_IS_NAMESPACE_AWARE
Property that determines whether schemas constructed are namespace-aware, in cases where schema supports both namespace-aware and non-namespace aware modes. |
static java.lang.String |
SERVICE_DEFINITION_PATH
|
static java.lang.String |
SYSTEM_PROPERTY_FOR_IMPL
Defines the system property that can be set to explicitly specify which implementation to use (in case there are multiple StAX2 implementations; or the one used does not specify other mechanisms for the loader to find the implementation class). |
Constructor Summary | |
---|---|
protected |
XMLValidationSchemaFactory()
|
Method Summary | |
---|---|
abstract XMLValidationSchema |
createSchema(java.io.File f)
|
XMLValidationSchema |
createSchema(java.io.InputStream in)
|
XMLValidationSchema |
createSchema(java.io.InputStream in,
java.lang.String encoding)
|
abstract XMLValidationSchema |
createSchema(java.io.InputStream in,
java.lang.String encoding,
java.lang.String publicId,
java.lang.String systemId)
|
XMLValidationSchema |
createSchema(java.io.Reader r)
|
abstract XMLValidationSchema |
createSchema(java.io.Reader r,
java.lang.String publicId,
java.lang.String systemId)
|
abstract XMLValidationSchema |
createSchema(java.net.URL url)
|
abstract java.lang.Object |
getProperty(java.lang.String propName)
|
abstract boolean |
isPropertySupported(java.lang.String propName)
|
static XMLValidationSchemaFactory |
newInstance(java.lang.String schemaType)
Creates a new XMLValidationFactory instance, using the default instance configuration mechanism. |
static XMLValidationSchemaFactory |
newInstance(java.lang.String schemaType,
java.lang.ClassLoader classLoader)
|
abstract boolean |
setProperty(java.lang.String propName,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INTERNAL_ID_SCHEMA_DTD
public static final java.lang.String INTERNAL_ID_SCHEMA_RELAXNG
public static final java.lang.String INTERNAL_ID_SCHEMA_W3C
public static final java.lang.String INTERNAL_ID_SCHEMA_TREX
public static final java.lang.String SYSTEM_PROPERTY_FOR_IMPL
public static final java.lang.String SERVICE_DEFINITION_PATH
public static final java.lang.String P_IS_NAMESPACE_AWARE
Default value is TRUE. For schema types for which only one value (usually TRUE) is allowed, this property will be ignored.
public static final java.lang.String P_ENABLE_CACHING
Constructor Detail |
---|
protected XMLValidationSchemaFactory()
Method Detail |
---|
public static XMLValidationSchemaFactory newInstance(java.lang.String schemaType) throws javax.xml.stream.FactoryConfigurationError
javax.xml.stream.FactoryConfigurationError
public static XMLValidationSchemaFactory newInstance(java.lang.String schemaType, java.lang.ClassLoader classLoader) throws javax.xml.stream.FactoryConfigurationError
javax.xml.stream.FactoryConfigurationError
public XMLValidationSchema createSchema(java.io.InputStream in) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public XMLValidationSchema createSchema(java.io.InputStream in, java.lang.String encoding) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public abstract XMLValidationSchema createSchema(java.io.InputStream in, java.lang.String encoding, java.lang.String publicId, java.lang.String systemId) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public XMLValidationSchema createSchema(java.io.Reader r) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public abstract XMLValidationSchema createSchema(java.io.Reader r, java.lang.String publicId, java.lang.String systemId) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public abstract XMLValidationSchema createSchema(java.net.URL url) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public abstract XMLValidationSchema createSchema(java.io.File f) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public abstract boolean isPropertySupported(java.lang.String propName)
public abstract boolean setProperty(java.lang.String propName, java.lang.Object value)
propName
- Name of property to setvalue
- Value to set property to
public abstract java.lang.Object getProperty(java.lang.String propName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |