Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.xml.validation.SchemaFactory
public abstract class SchemaFactory
extends java.lang.Object
Constructor Summary | |
Method Summary | |
ErrorHandler | |
boolean |
|
Object |
|
LSResourceResolver | |
boolean |
|
static SchemaFactory |
|
Schema |
|
Schema |
|
Schema |
|
Schema | |
Schema | |
void |
|
void |
|
void |
|
void |
|
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
public boolean isSchemaLanguageSupported(String schemaLanguage)
Indicates whether the specified schema language is supported.
- Parameters:
schemaLanguage
- the URI of a schema language (seeXMLConstants
)
public static final SchemaFactory newInstance(String schemaLanguage)
Returns an implementation ofSchemaFactory
that supports the specified schema language.
- Parameters:
schemaLanguage
- the URI of a schema language (seeXMLConstants
)
public Schema newSchema() throws SAXException
Creates a special schema. The exact semantics of this depends on the schema language.
public Schema newSchema(File schema) throws SAXException
Returns a schema based on the specified source file.
- Parameters:
schema
- the source resource
public Schema newSchema(URL schema) throws SAXException
Returns a schema based on the specified URL.
- Parameters:
schema
- the source resource
public Schema newSchema(Source schema) throws SAXException
Returns a schema based on the specified source resource.
- Parameters:
schema
- the source resource
public Schema newSchema(Source[] schemata) throws SAXException
Parses the specified sources, and combine them into a single schema. The exact procedure and semantics of this depends on the schema language.
- Parameters:
schemata
- the schema resources to load
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException