API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.validation. SchemaFactory View Source
Author(s)
Kohsuke Kawaguchi
Neeraj Bajaj
Since
1.5
Version
$Revision: 1.7 $, $Date: 2006/05/19 01:08:43 $
Serial
Hierarchy
 Object
      SchemaFactory
Implements
Subclasses
Description
publicabstract abstract class SchemaFactory
  Factory that creates Schema objects. Entry-point to the validation API.
See also:   
Constructors
protected SchemaFactory ()
  Constructor for derived classes.
Methods
Hide/Show inherited methods
publicabstract ErrorHandler getErrorHandler ()
  Gets the current ErrorHandler set to this SchemaFactory.
public boolean getFeature (String name) throws SAXNotRecognizedException SAXNotSupportedException
  Look up the value of a feature flag.
public Object getProperty (String name) throws SAXNotRecognizedException SAXNotSupportedException
  Look up the value of a property.
publicabstract LSResourceResolver getResourceResolver ()
  Gets the current LSResourceResolver set to this SchemaFactory.
publicabstract boolean isSchemaLanguageSupported (String schemaLanguage)
  Is specified schema supported by this SchemaFactory?
publicfinalstatic SchemaFactory newInstance (String schemaLanguage)
  Lookup an implementation of the SchemaFactory that supports the specified schema language and return it.
publicstatic SchemaFactory newInstance (String schemaLanguage, String factoryClassName, ClassLoader classLoader)
  Obtain a new instance of a SchemaFactory from class name.
publicabstract Schema newSchema () throws SAXException
  Creates a special Schema object.
public Schema newSchema (File schema) throws SAXException
  Parses the specified File as a schema and returns it as a Schema.
public Schema newSchema (Source schema) throws SAXException
  Parses the specified source as a schema and returns it as a schema.
publicabstract Schema newSchema (Source schemas) throws SAXException
  Parses the specified source(s) as a schema and returns it as a schema.
public Schema newSchema (URL schema) throws SAXException
  Parses the specified URL as a schema and returns it as a Schema.
publicabstract void setErrorHandler (ErrorHandler errorHandler)
  Sets the ErrorHandler to receive errors encountered during the newSchema method invocation.
public void setFeature (String name, boolean value) throws SAXNotRecognizedException SAXNotSupportedException
  Set a feature for this SchemaFactory, Schemas created by this factory, and by extension, Validators and ValidatorHandlers created by those Schemas.
public void setProperty (String name, Object object) throws SAXNotRecognizedException SAXNotSupportedException
  Set the value of a property.
publicabstract void setResourceResolver (LSResourceResolver resourceResolver)
  Sets the LSResourceResolver to customize resource resolution when parsing schemas.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar