24 import com.sun.org.apache.xerces.internal.util.SAXMessageFormatter;
25 import java.util.HashMap;
26 import java.util.Map;
27 import javax.xml.XMLConstants;
28 import javax.xml.parsers.ParserConfigurationException;
29 import javax.xml.parsers.SAXParser;
30 import javax.xml.parsers.SAXParserFactory;
31 import javax.xml.validation.Schema;
32 import org.xml.sax.SAXException;
33 import org.xml.sax.SAXNotRecognizedException;
34 import org.xml.sax.SAXNotSupportedException;
35
36 /**
37 * This is the implementation specific class for the
38 * <code>javax.xml.parsers.SAXParserFactory</code>. This is the platform
39 * default implementation for the platform.
40 *
41 * @author Rajiv Mordani
42 * @author Edwin Goei
43 *
44 * @version $Id: SAXParserFactoryImpl.java,v 1.9 2010-11-01 04:40:06 joehw Exp $
45 */
46 public class SAXParserFactoryImpl extends SAXParserFactory {
47
48 /** Feature identifier: validation. */
49 private static final String VALIDATION_FEATURE =
50 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
51
52 /** Feature identifier: namespaces. */
53 private static final String NAMESPACES_FEATURE =
54 Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
55
56 /** Feature identifier: XInclude processing */
57 private static final String XINCLUDE_FEATURE =
58 Constants.XERCES_FEATURE_PREFIX + Constants.XINCLUDE_FEATURE;
59
60 private Map<String, Boolean> features;
61 private Schema grammar;
62 private boolean isXIncludeAware;
63
64 /**
|
24 import com.sun.org.apache.xerces.internal.util.SAXMessageFormatter;
25 import java.util.HashMap;
26 import java.util.Map;
27 import javax.xml.XMLConstants;
28 import javax.xml.parsers.ParserConfigurationException;
29 import javax.xml.parsers.SAXParser;
30 import javax.xml.parsers.SAXParserFactory;
31 import javax.xml.validation.Schema;
32 import org.xml.sax.SAXException;
33 import org.xml.sax.SAXNotRecognizedException;
34 import org.xml.sax.SAXNotSupportedException;
35
36 /**
37 * This is the implementation specific class for the
38 * <code>javax.xml.parsers.SAXParserFactory</code>. This is the platform
39 * default implementation for the platform.
40 *
41 * @author Rajiv Mordani
42 * @author Edwin Goei
43 *
44 */
45 public class SAXParserFactoryImpl extends SAXParserFactory {
46
47 /** Feature identifier: validation. */
48 private static final String VALIDATION_FEATURE =
49 Constants.SAX_FEATURE_PREFIX + Constants.VALIDATION_FEATURE;
50
51 /** Feature identifier: namespaces. */
52 private static final String NAMESPACES_FEATURE =
53 Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
54
55 /** Feature identifier: XInclude processing */
56 private static final String XINCLUDE_FEATURE =
57 Constants.XERCES_FEATURE_PREFIX + Constants.XINCLUDE_FEATURE;
58
59 private Map<String, Boolean> features;
60 private Schema grammar;
61 private boolean isXIncludeAware;
62
63 /**
|