An implementation of XMLComponentManager for a schema validator.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DISALLOW_DOCTYPE_DECL_FEATURE
Feature identifier: disallow DOCTYPE declaration |
| private static final String | ENTITY_MANAGER
Property identifier: entity manager. |
| private static final String | ENTITY_RESOLVER
Property identifier: entity resolver. |
| private static final String | ERROR_HANDLER
Property identifier: error handler. |
| private static final String | ERROR_REPORTER
Property identifier: error reporter. |
| private final HashMap | fComponents
Lookup map for components required for validation. |
| private boolean | fConfigUpdated
fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed. |
| private final XMLEntityManager | fEntityManager
Entity manager. |
| private ErrorHandler | fErrorHandler
Application's ErrorHandler. |
| private final XMLErrorReporter | fErrorReporter
Error reporter. |
| private final HashMap | fInitFeatures
Stores initial feature values for validator reset. |
| private final HashMap | fInitProperties
Stores initial property values for validator reset. |
| private final SecurityManager | fInitSecurityManager
Stores the initial security manager. |
| private Locale | fLocale
Locale chosen by the application. |
| private final NamespaceContext | fNamespaceContext
Namespace context. |
| private LSResourceResolver | fResourceResolver
Application's LSResourceResolver. |
| private final XMLSchemaValidator | fSchemaValidator
XML Schema validator. |
| private boolean | fUseGrammarPoolOnly
Tracks whether the validator should use components from the grammar pool to the exclusion of all others. |
| private final ValidationManager | fValidationManager
Validation manager. |
| private static final String | ID_IDREF_CHECKING
Feature identifier: whether to ignore ID/IDREF errors |
| private static final String | IDENTITY_CONSTRAINT_CHECKING
Feature identifier: whether to ignore identity constraint errors |
| private static final String | IGNORE_XSI_TYPE
Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered |
| private static final String | LOCALE
Property identifier: locale. |
| private static final String | NAMESPACE_CONTEXT
Property identifier: namespace context. |
| private static final String | NORMALIZE_DATA
Feature identifier: expose schema normalized value |
| private static final String | SCHEMA_AUGMENT_PSVI
Feature identifier: augment PSVI |
| private static final String | SCHEMA_ELEMENT_DEFAULT
Feature identifier: send element default value via characters() |
| private static final String | SCHEMA_VALIDATION
Feature identifier: schema validation. |
| private static final String | SCHEMA_VALIDATOR
Property identifier: XML Schema validator. |
| private static final String | SECURITY_MANAGER
Property identifier: security manager. |
| private static final String | SYMBOL_TABLE
Property identifier: symbol table. |
| private static final String | UNPARSED_ENTITY_CHECKING
Feature identifier: whether to ignore unparsed entity errors |
| private static final String | USE_GRAMMAR_POOL_ONLY
Feature identifier: use grammar pool only. |
| private static final String | VALIDATION
Feature identifier: validation. |
| private static final String | VALIDATION_MANAGER
Property identifier: validation manager. |
| private static final String | XMLGRAMMAR_POOL
Property identifier: grammar pool. |
| Access | Constructor and Description |
|---|---|
| public | XMLSchemaValidatorComponentManager(XSGrammarPoolContainer grammarContainer)
Constructs a component manager suitable for Xerces' schema validator. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addRecognizedParamsAndSetDefaults(XMLComponent
The component whose recognized features
and properties will be added to the configuration component, XSGrammarPoolContainer grammarContainer)Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration. |
| pack-priv ErrorHandler | |
| public boolean | Returns: true if the feature is supportedThe feature identifier. featureId)Overrides org. Implements org. |
| pack-priv Locale | |
| public Object | Returns: the value of the propertyThe property identifier. propertyId)Overrides org. Implements org. |
| pack-priv LSResourceResolver | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void | setFeature(String
The unique identifier (URI) of the feature. featureId, boolean The requested state of the feature (true or false). value)Overrides org. |
| private void | setFeatureDefaults(final XMLComponent component, final String[] recognizedFeatures, XSGrammarPoolContainer grammarContainer)
Sets feature defaults for the given component on this configuration. |
| pack-priv void | |
| public void | setProperty(String
The unique identifier (URI) of the property. propertyId, Object The requested state of the property. value)Overrides org. |
| private void | setPropertyDefaults(final XMLComponent component, final String[] recognizedProperties)
Sets property defaults for the given component on this configuration. |
| pack-priv void |
| DISALLOW_DOCTYPE_DECL_FEATURE | back to summary |
|---|---|
| private static final String DISALLOW_DOCTYPE_DECL_FEATURE Feature identifier: disallow DOCTYPE declaration | |
| ENTITY_MANAGER | back to summary |
|---|---|
| private static final String ENTITY_MANAGER Property identifier: entity manager. | |
| ENTITY_RESOLVER | back to summary |
|---|---|
| private static final String ENTITY_RESOLVER Property identifier: entity resolver. | |
| ERROR_HANDLER | back to summary |
|---|---|
| private static final String ERROR_HANDLER Property identifier: error handler. | |
| ERROR_REPORTER | back to summary |
|---|---|
| private static final String ERROR_REPORTER Property identifier: error reporter. | |
| fComponents | back to summary |
|---|---|
| private final HashMap<K, V> fComponents Lookup map for components required for validation. | |
| fConfigUpdated | back to summary |
|---|---|
| private boolean fConfigUpdated fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed. | |
| fEntityManager | back to summary |
|---|---|
| private final XMLEntityManager fEntityManager Entity manager. | |
| fErrorHandler | back to summary |
|---|---|
| private ErrorHandler fErrorHandler Application's ErrorHandler. | |
| fErrorReporter | back to summary |
|---|---|
| private final XMLErrorReporter fErrorReporter Error reporter. | |
| fInitFeatures | back to summary |
|---|---|
| private final HashMap<K, V> fInitFeatures Stores initial feature values for validator reset. | |
| fInitProperties | back to summary |
|---|---|
| private final HashMap<K, V> fInitProperties Stores initial property values for validator reset. | |
| fInitSecurityManager | back to summary |
|---|---|
| private final SecurityManager fInitSecurityManager Stores the initial security manager. | |
| fLocale | back to summary |
|---|---|
| private Locale fLocale Locale chosen by the application. | |
| fNamespaceContext | back to summary |
|---|---|
| private final NamespaceContext fNamespaceContext Namespace context. | |
| fResourceResolver | back to summary |
|---|---|
| private LSResourceResolver fResourceResolver Application's LSResourceResolver. | |
| fSchemaValidator | back to summary |
|---|---|
| private final XMLSchemaValidator fSchemaValidator XML Schema validator. | |
| fUseGrammarPoolOnly | back to summary |
|---|---|
| private boolean fUseGrammarPoolOnly Tracks whether the validator should use components from the grammar pool to the exclusion of all others. | |
| fValidationManager | back to summary |
|---|---|
| private final ValidationManager fValidationManager Validation manager. | |
| ID_IDREF_CHECKING | back to summary |
|---|---|
| private static final String ID_IDREF_CHECKING Feature identifier: whether to ignore ID/IDREF errors | |
| IDENTITY_CONSTRAINT_CHECKING | back to summary |
|---|---|
| private static final String IDENTITY_CONSTRAINT_CHECKING Feature identifier: whether to ignore identity constraint errors | |
| IGNORE_XSI_TYPE | back to summary |
|---|---|
| private static final String IGNORE_XSI_TYPE Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered | |
| LOCALE | back to summary |
|---|---|
| private static final String LOCALE Property identifier: locale. | |
| NAMESPACE_CONTEXT | back to summary |
|---|---|
| private static final String NAMESPACE_CONTEXT Property identifier: namespace context. | |
| NORMALIZE_DATA | back to summary |
|---|---|
| private static final String NORMALIZE_DATA Feature identifier: expose schema normalized value | |
| SCHEMA_AUGMENT_PSVI | back to summary |
|---|---|
| private static final String SCHEMA_AUGMENT_PSVI Feature identifier: augment PSVI | |
| SCHEMA_ELEMENT_DEFAULT | back to summary |
|---|---|
| private static final String SCHEMA_ELEMENT_DEFAULT Feature identifier: send element default value via characters() | |
| SCHEMA_VALIDATION | back to summary |
|---|---|
| private static final String SCHEMA_VALIDATION Feature identifier: schema validation. | |
| SCHEMA_VALIDATOR | back to summary |
|---|---|
| private static final String SCHEMA_VALIDATOR Property identifier: XML Schema validator. | |
| SECURITY_MANAGER | back to summary |
|---|---|
| private static final String SECURITY_MANAGER Property identifier: security manager. | |
| SYMBOL_TABLE | back to summary |
|---|---|
| private static final String SYMBOL_TABLE Property identifier: symbol table. | |
| UNPARSED_ENTITY_CHECKING | back to summary |
|---|---|
| private static final String UNPARSED_ENTITY_CHECKING Feature identifier: whether to ignore unparsed entity errors | |
| USE_GRAMMAR_POOL_ONLY | back to summary |
|---|---|
| private static final String USE_GRAMMAR_POOL_ONLY Feature identifier: use grammar pool only. | |
| VALIDATION | back to summary |
|---|---|
| private static final String VALIDATION Feature identifier: validation. | |
| VALIDATION_MANAGER | back to summary |
|---|---|
| private static final String VALIDATION_MANAGER Property identifier: validation manager. | |
| XMLGRAMMAR_POOL | back to summary |
|---|---|
| private static final String XMLGRAMMAR_POOL Property identifier: grammar pool. | |
| XMLSchemaValidatorComponentManager | back to summary |
|---|---|
| public XMLSchemaValidatorComponentManager(XSGrammarPoolContainer grammarContainer) Constructs a component manager suitable for Xerces' schema validator. | |
| addRecognizedParamsAndSetDefaults | back to summary |
|---|---|
| public void addRecognizedParamsAndSetDefaults(XMLComponent component, XSGrammarPoolContainer grammarContainer) Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration.
| |
| getErrorHandler | back to summary |
|---|---|
| pack-priv ErrorHandler getErrorHandler() | |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String featureId) throws XMLConfigurationException Overrides org. Implements org. Returns the state of a feature.
| |
| getLocale | back to summary |
|---|---|
| pack-priv Locale getLocale() | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String propertyId) throws XMLConfigurationException Overrides org. Implements org. Returns the value of a property.
| |
| getResourceResolver | back to summary |
|---|---|
| pack-priv LSResourceResolver getResourceResolver() | |
| reset | back to summary |
|---|---|
| public void reset() throws XNIException Calls reset on each of the components owned by this component manager. | |
| restoreInitialState | back to summary |
|---|---|
| pack-priv void restoreInitialState() Cleans out configuration, restoring it to its initial state. | |
| setErrorHandler | back to summary |
|---|---|
| pack-priv void setErrorHandler(ErrorHandler errorHandler) | |
| setFeature | back to summary |
|---|---|
| public void setFeature(String featureId, boolean value) throws XMLConfigurationException Overrides org. Set the state of a feature.
| |
| setFeatureDefaults | back to summary |
|---|---|
| private void setFeatureDefaults(final XMLComponent component, final String[] recognizedFeatures, XSGrammarPoolContainer grammarContainer) Sets feature defaults for the given component on this configuration. | |
| setLocale | back to summary |
|---|---|
| pack-priv void setLocale(Locale locale) | |
| setProperty | back to summary |
|---|---|
| public void setProperty(String propertyId, Object value) throws XMLConfigurationException Overrides org. Sets the state of a property.
| |
| setPropertyDefaults | back to summary |
|---|---|
| private void setPropertyDefaults(final XMLComponent component, final String[] recognizedProperties) Sets property defaults for the given component on this configuration. | |
| setResourceResolver | back to summary |
|---|---|
| pack-priv void setResourceResolver(LSResourceResolver resourceResolver) | |