| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | FactoryImpl.WrapperException
wrapper exception so that we can throw it from the GrammarReaderController. |
| Modifier and Type | Field and Description |
|---|---|
| protected final SAXParserFactory | |
| private EntityResolver | resolver
To be used to resolve files included/imported by the schema.
|
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Schema | compileSchema(InputSource source)
Implements abstract org. |
| pack-priv static IVerifier | |
| public EntityResolver | getEntityResolver()
Overrides org. SetEntityResolver method.
|
| public boolean | |
| protected abstract Grammar | parse(InputSource source, GrammarReaderController controller)
parses a Grammar from the specified source. |
| public void | setEntityResolver(EntityResolver _resolver)
Overrides org. |
| public void | setFeature(String
feature name feature, boolean feature value v)Overrides org. |
| factory | back to summary |
|---|---|
| protected final SAXParserFactory factory | |
| resolver | back to summary |
|---|---|
| private EntityResolver resolver Hides org. To be used to resolve files included/imported by the schema. Can be null. | |
| usePanicMode | back to summary |
|---|---|
| private boolean usePanicMode | |
| FactoryImpl | back to summary |
|---|---|
| protected FactoryImpl(SAXParserFactory factory) | |
| FactoryImpl | back to summary |
|---|---|
| protected FactoryImpl() | |
| compileSchema | back to summary |
|---|---|
| public Schema compileSchema(InputSource source) throws VerifierConfigurationException, SAXException Implements abstract org. Doc from org. processes a schema into a Schema object, which is a compiled representation of a schema. The obtained schema object can then be used concurrently across multiple threads. | |
| createVerifier | back to summary |
|---|---|
| pack-priv static IVerifier createVerifier(Grammar g) gets the VGM by sniffing its type. To validate XML Schema correctly, we need to use the specialized VGM. | |
| getEntityResolver | back to summary |
|---|---|
| public EntityResolver getEntityResolver() Overrides org. Doc from org. Gets the current entity resolver, which was set by
the | |
| isFeature | back to summary |
|---|---|
| public boolean isFeature(String feature) throws SAXNotRecognizedException, SAXNotSupportedException Overrides org. Doc from org. Indicates whether if the feature is supported, or not.
| |
| parse | back to summary |
|---|---|
| protected abstract Grammar parse(InputSource source, GrammarReaderController controller) throws SAXException, VerifierConfigurationException parses a Grammar from the specified source. return null if an error happens. | |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(EntityResolver _resolver) Overrides org. Doc from org. Sets an EntityResolver This entity resolver is used to resolve entities encountered while parsing a schema. | |
| setFeature | back to summary |
|---|---|
| public void setFeature(String feature, boolean v) throws SAXNotRecognizedException, SAXNotSupportedException Overrides org. Doc from org. Sets feature value
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | error(Locator[] locs, String errorMessage, Exception nestedException)
Implements com. |
| public InputSource | resolveEntity(String
The public identifier of the external entity
being referenced, or null if none was supplied. p, String The system identifier of the external entity
being referenced. s)Implements org. |
| public void | warning(Locator[] locs, String errorMessage)
Implements com. |
| ThrowController | back to summary |
|---|---|
| private ThrowController() | |
| error | back to summary |
|---|---|
| public void error(Locator[] locs, String errorMessage, Exception nestedException) Implements com. | |
| resolveEntity | back to summary |
|---|---|
| public InputSource resolveEntity(String p, String s) throws SAXException, IOException Implements org. Doc from org. Allow the application to resolve external entities. The parser will call this method before opening any external entity except the top-level document entity. Such entities include the external DTD subset and external parameter entities referenced within the DTD (in either case, only if the parser reads external parameter entities), and external general entities referenced within the document element (if the parser reads external general entities). The application may request that the parser locate the entity itself, that it use an alternative URI, or that it use data provided by the application (as a character or byte input stream). Application writers can use this method to redirect external system identifiers to secure and/or local URIs, to look up public identifiers in a catalogue, or to read an entity from a database or other input source (including, for example, a dialog box). Neither XML nor SAX specifies a preferred policy for using public or system IDs to resolve resources. However, SAX specifies how to interpret any InputSource returned by this method, and that if none is returned, then the system ID will be dereferenced as a URL. If the system identifier is a URL, the SAX parser must resolve it fully before reporting it to the application.
| |
| warning | back to summary |
|---|---|
| public void warning(Locator[] locs, String errorMessage) Implements com. | |
| Modifier and Type | Field and Description |
|---|---|
| public final SAXException |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| e | back to summary |
|---|---|
| public final SAXException e | |
| WrapperException | back to summary |
|---|---|
| pack-priv WrapperException(SAXException e) | |