|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.validation.SchemaFactory
public abstract class SchemaFactory
Factory for obtaining schemata.
Constructor Summary | |
---|---|
protected |
SchemaFactory()
|
Method Summary | |
---|---|
abstract ErrorHandler |
getErrorHandler()
|
boolean |
getFeature(String name)
|
Object |
getProperty(String name)
|
abstract LSResourceResolver |
getResourceResolver()
|
abstract boolean |
isSchemaLanguageSupported(String schemaLanguage)
Indicates whether the specified schema language is supported. |
static SchemaFactory |
newInstance(String schemaLanguage)
Returns an implementation of SchemaFactory that supports
the specified schema language. |
abstract Schema |
newSchema()
Creates a special schema. |
Schema |
newSchema(File schema)
Returns a schema based on the specified source file. |
Schema |
newSchema(Source schema)
Returns a schema based on the specified source resource. |
abstract Schema |
newSchema(Source[] schemata)
Parses the specified sources, and combine them into a single schema. |
Schema |
newSchema(URL schema)
Returns a schema based on the specified URL. |
abstract void |
setErrorHandler(ErrorHandler errorHandler)
|
void |
setFeature(String name,
boolean value)
|
void |
setProperty(String name,
Object value)
|
abstract void |
setResourceResolver(LSResourceResolver resourceResolver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SchemaFactory()
Method Detail |
---|
public static final SchemaFactory newInstance(String schemaLanguage)
SchemaFactory
that supports
the specified schema language.
schemaLanguage
- the URI of a schema language (see
XMLConstants
)public abstract boolean isSchemaLanguageSupported(String schemaLanguage)
schemaLanguage
- the URI of a schema language (see
XMLConstants
)public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
public abstract ErrorHandler getErrorHandler()
public abstract void setErrorHandler(ErrorHandler errorHandler)
public abstract LSResourceResolver getResourceResolver()
public abstract void setResourceResolver(LSResourceResolver resourceResolver)
public Schema newSchema(Source schema) throws SAXException
schema
- the source resource
SAXException
public Schema newSchema(File schema) throws SAXException
schema
- the source resource
SAXException
public Schema newSchema(URL schema) throws SAXException
schema
- the source resource
SAXException
public abstract Schema newSchema(Source[] schemata) throws SAXException
schemata
- the schema resources to load
SAXException
public abstract Schema newSchema() throws SAXException
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |