41 * change the set of constraints once it is created. In other words,
42 * if an application validates the same document twice against the same
43 * {@link Schema}, it must always produce the same result.
44 *
45 * <p>
46 * A {@link Schema} object is usually created from {@link SchemaFactory}.
47 *
48 * <p>
49 * Two kinds of validators can be created from a {@link Schema} object.
50 * One is {@link Validator}, which provides highly-level validation
51 * operations that cover typical use cases. The other is
52 * {@link ValidatorHandler}, which works on top of SAX for better
53 * modularity.
54 *
55 * <p>
56 * This specification does not refine
57 * the {@link java.lang.Object#equals(java.lang.Object)} method.
58 * In other words, if you parse the same schema twice, you may
59 * still get <code>!schemaA.equals(schemaB)</code>.
60 *
61 * @author <a href="mailto:Kohsuke.Kawaguchi@Sun.com">Kohsuke Kawaguchi</a>
62 * @see <a href="http://www.w3.org/TR/xmlschema-1/">XML Schema Part 1: Structures</a>
63 * @see <a href="http://www.w3.org/TR/xml11/">Extensible Markup Language (XML) 1.1</a>
64 * @see <a href="http://www.w3.org/TR/REC-xml">Extensible Markup Language (XML) 1.0 (Second Edition)</a>
65 * @since 1.5
66 */
67 public abstract class Schema {
68
69 /**
70 * Constructor for the derived class.
71 *
72 * <p>
73 * The constructor does nothing.
74 */
75 protected Schema() {
76 }
77
78 /**
79 * Creates a new {@link Validator} for this {@link Schema}.
80 *
81 * <p>A validator enforces/checks the set of constraints this object
|
41 * change the set of constraints once it is created. In other words,
42 * if an application validates the same document twice against the same
43 * {@link Schema}, it must always produce the same result.
44 *
45 * <p>
46 * A {@link Schema} object is usually created from {@link SchemaFactory}.
47 *
48 * <p>
49 * Two kinds of validators can be created from a {@link Schema} object.
50 * One is {@link Validator}, which provides highly-level validation
51 * operations that cover typical use cases. The other is
52 * {@link ValidatorHandler}, which works on top of SAX for better
53 * modularity.
54 *
55 * <p>
56 * This specification does not refine
57 * the {@link java.lang.Object#equals(java.lang.Object)} method.
58 * In other words, if you parse the same schema twice, you may
59 * still get <code>!schemaA.equals(schemaB)</code>.
60 *
61 * @author Kohsuke Kawaguchi
62 * @see <a href="http://www.w3.org/TR/xmlschema-1/">XML Schema Part 1: Structures</a>
63 * @see <a href="http://www.w3.org/TR/xml11/">Extensible Markup Language (XML) 1.1</a>
64 * @see <a href="http://www.w3.org/TR/REC-xml">Extensible Markup Language (XML) 1.0 (Second Edition)</a>
65 * @since 1.5
66 */
67 public abstract class Schema {
68
69 /**
70 * Constructor for the derived class.
71 *
72 * <p>
73 * The constructor does nothing.
74 */
75 protected Schema() {
76 }
77
78 /**
79 * Creates a new {@link Validator} for this {@link Schema}.
80 *
81 * <p>A validator enforces/checks the set of constraints this object
|