47 import javax.xml.transform.Source;
48 import javax.xml.transform.dom.DOMSource;
49 import javax.xml.transform.sax.SAXSource;
50 import javax.xml.transform.stax.StAXSource;
51 import javax.xml.transform.stream.StreamSource;
52 import javax.xml.validation.Schema;
53 import javax.xml.validation.SchemaFactory;
54 import jdk.xml.internal.JdkXmlUtils;
55 import org.w3c.dom.Node;
56 import org.w3c.dom.ls.LSResourceResolver;
57 import org.xml.sax.ErrorHandler;
58 import org.xml.sax.InputSource;
59 import org.xml.sax.SAXException;
60 import org.xml.sax.SAXNotRecognizedException;
61 import org.xml.sax.SAXNotSupportedException;
62 import org.xml.sax.SAXParseException;
63
64 /**
65 * {@link SchemaFactory} for XML Schema.
66 *
67 * @author Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
68 */
69 public final class XMLSchemaFactory extends SchemaFactory {
70
71 // feature identifiers
72
73 /** JAXP Source feature prefix. */
74 private static final String JAXP_SOURCE_FEATURE_PREFIX = "http://javax.xml.transform";
75
76 /** Feature identifier: schema full checking. */
77 private static final String SCHEMA_FULL_CHECKING =
78 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_FULL_CHECKING;
79
80 /** Feature identifier: use grammar pool only. */
81 private static final String USE_GRAMMAR_POOL_ONLY =
82 Constants.XERCES_FEATURE_PREFIX + Constants.USE_GRAMMAR_POOL_ONLY_FEATURE;
83
84 // property identifiers
85
86 /** Property identifier: grammar pool. */
87 private static final String XMLGRAMMAR_POOL =
|
47 import javax.xml.transform.Source;
48 import javax.xml.transform.dom.DOMSource;
49 import javax.xml.transform.sax.SAXSource;
50 import javax.xml.transform.stax.StAXSource;
51 import javax.xml.transform.stream.StreamSource;
52 import javax.xml.validation.Schema;
53 import javax.xml.validation.SchemaFactory;
54 import jdk.xml.internal.JdkXmlUtils;
55 import org.w3c.dom.Node;
56 import org.w3c.dom.ls.LSResourceResolver;
57 import org.xml.sax.ErrorHandler;
58 import org.xml.sax.InputSource;
59 import org.xml.sax.SAXException;
60 import org.xml.sax.SAXNotRecognizedException;
61 import org.xml.sax.SAXNotSupportedException;
62 import org.xml.sax.SAXParseException;
63
64 /**
65 * {@link SchemaFactory} for XML Schema.
66 *
67 * @author Kohsuke Kawaguchi
68 */
69 public final class XMLSchemaFactory extends SchemaFactory {
70
71 // feature identifiers
72
73 /** JAXP Source feature prefix. */
74 private static final String JAXP_SOURCE_FEATURE_PREFIX = "http://javax.xml.transform";
75
76 /** Feature identifier: schema full checking. */
77 private static final String SCHEMA_FULL_CHECKING =
78 Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_FULL_CHECKING;
79
80 /** Feature identifier: use grammar pool only. */
81 private static final String USE_GRAMMAR_POOL_ONLY =
82 Constants.XERCES_FEATURE_PREFIX + Constants.USE_GRAMMAR_POOL_ONLY_FEATURE;
83
84 // property identifiers
85
86 /** Property identifier: grammar pool. */
87 private static final String XMLGRAMMAR_POOL =
|