Home | History | Annotate | Download | only in validation

Lines Matching refs:schema

33  * Factory that creates {@link Schema} objects. Entry-point to
37 * {@link SchemaFactory} is a schema compiler. It reads external
53 * <h2><a name="schemaLanguage"></a>Schema Language</h2>
55 * This spec uses a namespace URI to designate a schema language.
59 * is only required to support W3C XML Schema 1.0. However,
60 * if it chooses to support other schema languages listed here,
64 * Schema languages not listed here are expected to
67 * implementations for other schema languages at run-time.
89 * <td><a href="http://www.w3.org/TR/xmlschema-1">W3C XML Schema 1.0</a></td>
118 * schema language and return it.</p>
120 * <p>To find a <code>SchemaFactory</code> object for a given schema language,
146 * The first service provider found in class loader order that supports the specified schema language is returned.
151 * <code>SchemaFactory</code> for W3C XML Schema.
160 * need to be escaped in a property file, so make sure schema language
167 * Specifies the schema language which the returned
170 * schema languages</a> for the possible values.
175 * If no implementation of the schema language is available.
233 * <p>Is specified schema supported by this <code>SchemaFactory</code>?</p>
235 * @param schemaLanguage Specifies the schema language which the returned <code>SchemaFactory</code> will understand.
236 * <code>schemaLanguage</code> must specify a <a href="#schemaLanguage">valid</a> schema language.
242 * or <code>schemaLanguage</code> does not specify a <a href="#schemaLanguage">valid</a> schema language.
292 * Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources.
387 * during schema parsing. When an {@link ErrorHandler} is set,
392 * The error handler can abort the parsing of a schema immediately
409 * Applications can call this method even during a {@link Schema}
432 * inherited to {@link Schema}s, {@link Validator}s, or
462 * up to each schema language. For example, for W3C XML Schema,
464 * and DTD referenced from schema files, etc.
467 * Applications can call this method even during a {@link Schema}
493 * inherited to {@link Schema}s, {@link Validator}s, or
515 * <p>Parses the specified source as a schema and returns it as a schema.</p>
519 * @param schema Source that represents a schema.
521 * @return New <code>Schema</code> from parsing <code>schema</code>.
524 * @throws NullPointerException if <tt>schema</tt> is null.
526 public Schema newSchema(Source schema) throws SAXException {
527 return newSchema(new Source[]{schema});
531 * <p>Parses the specified <code>File</code> as a schema and returns it as a <code>Schema</code>.</p>
533 * <p>This is a convenience method for {@link #newSchema(Source schema)}.</p>
535 * @param schema File that represents a schema.
537 * @return New <code>Schema</code> from parsing <code>schema</code>.
540 * @throws NullPointerException if <tt>schema</tt> is null.
542 public Schema newSchema(File schema) throws SAXException {
543 return newSchema(new StreamSource(schema));
547 * <p>Parses the specified <code>URL</code> as a schema and returns it as a <code>Schema</code>.</p>
549 * <p>This is a convenience method for {@link #newSchema(Source schema)}.</p>
551 * @param schema <code>URL</code> that represents a schema.
553 * @return New <code>Schema</code> from parsing <code>schema</code>.
556 * @throws NullPointerException if <tt>schema</tt> is null.
558 public Schema newSchema(URL schema) throws SAXException {
559 return newSchema(new StreamSource(schema.toExternalForm()));
563 * Parses the specified source(s) as a schema and returns it as a schema.
567 * single schema. The exact semantics of the combination depends on the schema
573 * abort the schema compilation and the same exception will be thrown from
578 * <h2>W3C XML Schema 1.0</h2>
580 * The resulting schema contains components from the specified sources.
583 * into a single schema document with a different targetNamespace
585 * in the same order as the sources. Section 4.2.3 of the XML Schema
588 * JAXP schema sources and XML Schema imports, the behavior between
595 * specified in the section 5.1 of the XML Schema spec, then
611 * Always return a non-null valid {@link Schema} object.
613 * guarantee that the returned {@link Schema} object is
626 * If the schema language doesn't support this operation.
628 public abstract Schema newSchema(Source[] schemas) throws SAXException;
631 * Creates a special {@link Schema} object.
634 * The exact semantics of the returned {@link Schema} object depends
635 * on the schema language that this {@link SchemaFactory} is created
643 * <h2>W3C XML Schema 1.0</h2>
645 * For XML Schema, this method creates a {@link Schema} object that
649 * The returned {@link Schema} object assumes that if documents
650 * refer to the same URL in the schema location hints,
651 * they will always resolve to the same schema document. This
653 * schema documents so that multiple validations against the same
654 * schema will run faster.
657 * Note that the use of schema location hints introduces a
666 * Always return non-null valid {@link Schema} object.
673 public abstract Schema newSchema() throws SAXException;