Java™ Platform
Standard Ed. 6

Uses of Class
javax.xml.validation.Schema

Packages that use Schema
javax.xml.bind Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities. 
javax.xml.bind.helpers JAXB Provider Use Only: Provides partial default implementations for some of the javax.xml.bind interfaces. 
javax.xml.parsers Provides classes allowing the processing of XML documents. 
javax.xml.validation This package provides an API for validation of XML documents. 
 

Uses of Schema in javax.xml.bind
 

Methods in javax.xml.bind that return Schema
 Schema Marshaller.getSchema()
          Get the JAXP 1.3 Schema object being used to perform marshal-time validation.
 Schema Unmarshaller.getSchema()
          Get the JAXP 1.3 Schema object being used to perform unmarshal-time validation.
abstract  Schema Binder.getSchema()
          Gets the last Schema object (including null) set by the Binder.setSchema(Schema) method.
 

Methods in javax.xml.bind with parameters of type Schema
 void Marshaller.setSchema(Schema schema)
          Specify the JAXP 1.3 Schema object that should be used to validate subsequent marshal operations against.
 void Unmarshaller.setSchema(Schema schema)
          Specify the JAXP 1.3 Schema object that should be used to validate subsequent unmarshal operations against.
abstract  void Binder.setSchema(Schema schema)
          Specifies whether marshal, unmarshal and update methods performs validation on their XML content.
 

Uses of Schema in javax.xml.bind.helpers
 

Methods in javax.xml.bind.helpers that return Schema
 Schema AbstractUnmarshallerImpl.getSchema()
           
 Schema AbstractMarshallerImpl.getSchema()
           
 

Methods in javax.xml.bind.helpers with parameters of type Schema
 void AbstractUnmarshallerImpl.setSchema(Schema schema)
           
 void AbstractMarshallerImpl.setSchema(Schema schema)
           
 

Uses of Schema in javax.xml.parsers
 

Methods in javax.xml.parsers that return Schema
 Schema SAXParser.getSchema()
          Get a reference to the the Schema being used by the XML processor.
 Schema SAXParserFactory.getSchema()
          Gets the Schema object specified through the SAXParserFactory.setSchema(Schema schema) method.
 Schema DocumentBuilder.getSchema()
          Get a reference to the the Schema being used by the XML processor.
 Schema DocumentBuilderFactory.getSchema()
          Gets the Schema object specified through the DocumentBuilderFactory.setSchema(Schema schema) method.
 

Methods in javax.xml.parsers with parameters of type Schema
 void SAXParserFactory.setSchema(Schema schema)
          Set the Schema to be used by parsers created from this factory.
 void DocumentBuilderFactory.setSchema(Schema schema)
          Set the Schema to be used by parsers created from this factory.
 

Uses of Schema in javax.xml.validation
 

Methods in javax.xml.validation that return Schema
abstract  Schema SchemaFactory.newSchema()
          Creates a special Schema object.
 Schema SchemaFactory.newSchema(File schema)
          Parses the specified File as a schema and returns it as a Schema.
 Schema SchemaFactory.newSchema(Source schema)
          Parses the specified source as a schema and returns it as a schema.
abstract  Schema SchemaFactory.newSchema(Source[] schemas)
          Parses the specified source(s) as a schema and returns it as a schema.
 Schema SchemaFactory.newSchema(URL schema)
          Parses the specified URL as a schema and returns it as a Schema.
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.