Lines Matching defs:schema
45 * {@link SchemaFactory} is a schema compiler. It reads external
63 * This spec uses a namespace URI to designate a schema language.
68 * if it chooses to support other schema languages listed here,
75 * implementations for other schema languages at run-time.
129 * schema language and return it.</p>
131 * <p>To find a <code>SchemaFactory</code> object for a given schema language,
157 * The first service provider found in class loader order that supports the specified schema language is returned.
171 * need to be escaped in a property file, so make sure schema language
178 * Specifies the schema language which the returned
181 * schema languages</a> for the possible values.
186 * If no implementation of the schema language is available.
206 + " that implements the schema language specified by: " + schemaLanguage
214 * is returned if specified factory class name supports the specified schema language.
229 * @param schemaLanguage Specifies the schema language which the returned
232 * schema languages</a> for the possible values.
244 * support the schema language specified in <code>schemLanguage</code>
265 + " could not be loaded to implement the schema language specified by: " + schemaLanguage);
273 + " does not implement the schema language specified by: " + schemaLanguage);
279 * <p>Is specified schema supported by this <code>SchemaFactory</code>?</p>
281 * @param schemaLanguage Specifies the schema language which the returned <code>SchemaFactory</code> will understand.
282 * <code>schemaLanguage</code> must specify a <a href="#schemaLanguage">valid</a> schema language.
288 * or <code>schemaLanguage</code> does not specify a <a href="#schemaLanguage">valid</a> schema language.
335 * schema come from different implementations, it may not be possible
488 * during schema parsing. When an {@link ErrorHandler} is set,
493 * The error handler can abort the parsing of a schema immediately
562 * up to each schema language. For example, for W3C XML Schema,
564 * and DTD referenced from schema files, etc.
615 * <p>Parses the specified source as a schema and returns it as a schema.</p>
619 * @param schema Source that represents a schema.
621 * @return New <code>Schema</code> from parsing <code>schema</code>.
624 * @throws NullPointerException if <code>schema</code> is null.
626 public Schema newSchema(Source schema) throws SAXException {
627 return newSchema(new Source[]{schema});
631 * <p>Parses the specified <code>File</code> as a schema and returns it as a <code>Schema</code>.</p>
633 * <p>This is a convenience method for {@link #newSchema(Source schema)}.</p>
635 * @param schema File that represents a schema.
637 * @return New <code>Schema</code> from parsing <code>schema</code>.
640 * @throws NullPointerException if <code>schema</code> is null.
642 public Schema newSchema(File schema) throws SAXException {
643 return newSchema(new StreamSource(schema));
647 * <p>Parses the specified <code>URL</code> as a schema and returns it as a <code>Schema</code>.</p>
649 * <p>This is a convenience method for {@link #newSchema(Source schema)}.</p>
651 * @param schema <code>URL</code> that represents a schema.
653 * @return New <code>Schema</code> from parsing <code>schema</code>.
656 * @throws NullPointerException if <code>schema</code> is null.
658 public Schema newSchema(URL schema) throws SAXException {
659 return newSchema(new StreamSource(schema.toExternalForm()));
663 * Parses the specified source(s) as a schema and returns it as a schema.
667 * single schema. The exact semantics of the combination depends on the schema
673 * abort the schema compilation and the same exception will be thrown from
680 * The resulting schema contains components from the specified sources.
683 * into a single schema document with a different targetNamespace
688 * JAXP schema sources and XML Schema imports, the behaviour between
733 * If the schema language doesn't support this operation.
741 * depend on the schema language for which this {@link SchemaFactory}
752 * schema come from different implementations, it may not be possible
765 * refer to the same URL in the schema location hints,
766 * they will always resolve to the same schema document. This
768 * schema documents so that multiple validations against the same
769 * schema will run faster.
772 * Note that the use of schema location hints introduces a