javax.xml.parsers.SAXParserFactory. This is the platform
default implementation for the platform.
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private boolean | fSecureProcess
State of the secure processing feature, initially |
| pack-priv XMLSecurityManager | |
| pack-priv XMLSecurityPropertyManager | |
| private Schema | |
| private boolean | |
| private static final String | NAMESPACES_FEATURE
Feature identifier: namespaces. |
| private static final String | VALIDATION_FEATURE
Feature identifier: validation. |
| private static final String | XINCLUDE_FEATURE
Feature identifier: XInclude processing |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | getFeature(String name)
Implements abstract javax. returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader. |
| private boolean | |
| public Schema | getSchema()
Overrides javax. Gets the |
| public boolean | isNamespaceAware()
Overrides javax. Indicates whether or not the factory is configured to produce parsers which are namespace aware. |
| public boolean | isValidating()
Overrides javax. Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse. |
| public boolean | isXIncludeAware()
Overrides javax. Get state of XInclude processing. |
| public SAXParser | Returns: javax.xml.parsers.SAXParserImplements abstract javax. Creates a new instance of |
| private SAXParserImpl | |
| private void | |
| public void | setFeature(String name, boolean value)
Implements abstract javax. Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader. |
| public void | setNamespaceAware(boolean awareness)
Overrides javax. Specifies that the parser produced by this code will provide support for XML namespaces. |
| public void | setSchema(Schema grammar)
Overrides javax. Set the |
| public void | setValidating(boolean validating)
Overrides javax. Specifies that the parser produced by this code will validate documents as they are parsed. |
| public void | setXIncludeAware(boolean state)
Overrides javax. Set state of XInclude processing. |
| features | back to summary |
|---|---|
| private Map<String, Boolean> features | |
| fSecureProcess | back to summary |
|---|---|
| private boolean fSecureProcess State of the secure processing feature, initially | |
| fSecurityManager | back to summary |
|---|---|
| pack-priv XMLSecurityManager fSecurityManager | |
| fSecurityPropertyMgr | back to summary |
|---|---|
| pack-priv XMLSecurityPropertyManager fSecurityPropertyMgr | |
| grammar | back to summary |
|---|---|
| private Schema grammar | |
| isXIncludeAware | back to summary |
|---|---|
| private boolean isXIncludeAware | |
| NAMESPACES_FEATURE | back to summary |
|---|---|
| private static final String NAMESPACES_FEATURE Feature identifier: namespaces. | |
| VALIDATION_FEATURE | back to summary |
|---|---|
| private static final String VALIDATION_FEATURE Feature identifier: validation. | |
| XINCLUDE_FEATURE | back to summary |
|---|---|
| private static final String XINCLUDE_FEATURE Feature identifier: XInclude processing | |
| SAXParserFactoryImpl | back to summary |
|---|---|
| public SAXParserFactoryImpl() | |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException Implements abstract javax. returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
| |
| getFromFeatures | back to summary |
|---|---|
| private boolean getFromFeatures(String name) | |
| getSchema | back to summary |
|---|---|
| public Schema getSchema() Overrides javax. Doc from javax. Gets the | |
| isNamespaceAware | back to summary |
|---|---|
| public boolean isNamespaceAware() Overrides javax. Doc from javax. Indicates whether or not the factory is configured to produce parsers which are namespace aware. | |
| isValidating | back to summary |
|---|---|
| public boolean isValidating() Overrides javax. Doc from javax. Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse. | |
| isXIncludeAware | back to summary |
|---|---|
| public boolean isXIncludeAware() Overrides javax. Doc from javax. Get state of XInclude processing. | |
| newSAXParser | back to summary |
|---|---|
| public SAXParser newSAXParser() throws ParserConfigurationException Implements abstract javax. Creates a new instance of
| |
| newSAXParserImpl | back to summary |
|---|---|
| private SAXParserImpl newSAXParserImpl() throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException Common code for translating exceptions | |
| putInFeatures | back to summary |
|---|---|
| private void putInFeatures(String name, boolean value) | |
| setFeature | back to summary |
|---|---|
| public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException Implements abstract javax. Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader.
| |
| setNamespaceAware | back to summary |
|---|---|
| public void setNamespaceAware(boolean awareness) Overrides javax. Doc from javax. Specifies that the parser produced by this code will
provide support for XML namespaces. By default the value of this is set
to | |
| setSchema | back to summary |
|---|---|
| public void setSchema(Schema grammar) Overrides javax. Doc from javax. Set the When a When warnings/errors/fatal errors are found by the validator, the parser must
handle them as if those errors were found by the parser itself.
In other words, if the user-specified A validator may modify the SAX event stream (for example by adding default values that were missing in documents), and a parser is responsible to make sure that the application will receive those modified event stream. Initially, This processing will take effect even if
the It is an error to use
the Note for implementors
A parser must be able to work with any | |
| setValidating | back to summary |
|---|---|
| public void setValidating(boolean validating) Overrides javax. Doc from javax. Specifies that the parser produced by this code will
validate documents as they are parsed. By default the value of this is
set to Note that "the validation" here means a validating parser as defined in the XML recommendation. In other words, it essentially just controls the DTD validation. (except the legacy two properties defined in JAXP 1.2.)
To use modern schema languages such as W3C XML Schema or
RELAX NG instead of DTD, you can configure your parser to be
a non-validating parser by leaving the | |
| setXIncludeAware | back to summary |
|---|---|
| public void setXIncludeAware(boolean state) Overrides javax. Doc from javax. Set state of XInclude processing. If XInclude markup is found in the document instance, should it be processed as specified in XML Inclusions (XInclude) Version 1.0. XInclude processing defaults to | |