public class SchemaValidatorHelper extends Object implements XSElementDeclHelper, FieldActivator
| Modifier and Type | Class and Description |
|---|---|
protected class |
SchemaValidatorHelper.KeyRefValueStore
Key reference value store.
|
protected class |
SchemaValidatorHelper.KeyValueStore
Key value store.
|
protected static class |
SchemaValidatorHelper.LocalIDKey |
protected static class |
SchemaValidatorHelper.ShortVector
A simple vector for
shorts. |
protected class |
SchemaValidatorHelper.UniqueValueStore
Unique value store.
|
protected class |
SchemaValidatorHelper.ValueStoreBase
Value store implementation base class.
|
protected class |
SchemaValidatorHelper.ValueStoreCache
Value store cache.
|
protected static class |
SchemaValidatorHelper.XPathMatcherStack
Stack of XPath matchers for identity constraints.
|
protected class |
SchemaValidatorHelper.XSIErrorReporter
A wrapper of the standard error reporter.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALLOW_JAVA_ENCODINGS
Feature identifier: whether to recognize java encoding names
|
protected static String |
ASSERT_COMMENT_PI_CHECKING
Feature identifier: whether to allow comment and PI nodes to be visible during
|
protected static int |
BUFFER_SIZE |
protected static String |
CONTINUE_AFTER_FATAL_ERROR
Feature identifier: whether to continue parsing a schema after a fatal error is encountered
|
protected static String |
DATATYPE_XML_VERSION
Property identifier: datatype xml version.
|
protected static boolean |
DEBUG |
protected static boolean |
DEBUG_NORMALIZATION |
protected static String |
DYNAMIC_VALIDATION
Feature identifier: dynamic validation.
|
protected static Hashtable |
EMPTY_TABLE |
protected static String |
ENTITY_MANAGER |
static String |
ENTITY_RESOLVER
Property identifier: entity resolver.
|
static String |
ERROR_REPORTER
Property identifier: error reporter.
|
protected boolean |
fAppendBuffer
Whether need to append characters to fBuffer
|
protected XSDAssertionValidator |
fAssertionValidator |
protected AugmentationsImpl |
fAugmentations |
protected boolean |
fAugPSVI |
protected StringBuffer |
fBuffer
Temporary string buffers.
|
protected CMBuilder |
fCMBuilder
used to build content models
|
protected XSCMValidator[] |
fCMStack
Content model stack.
|
protected int[][] |
fCMStateStack
stack to hold content model states
|
protected boolean |
fCommentsAndPIsForAssert |
protected int[] |
fCurrCMState
the current state of the current content model
|
protected XSCMValidator |
fCurrentCM
Current content model.
|
protected XSElementDecl |
fCurrentElemDecl
Current element declaration.
|
protected ElementPSVImpl |
fCurrentPSVI
current PSVI element info
|
protected XSTypeDefinition |
fCurrentType
Current type.
|
protected String |
fDatatypeXMLVersion |
protected XMLString |
fDefaultValue |
protected XMLDocumentHandler |
fDocumentHandler
Document handler.
|
protected XMLDocumentSource |
fDocumentSource |
protected boolean |
fDoValidation |
protected boolean |
fDynamicValidation |
protected static Boolean[] |
FEATURE_DEFAULTS
Feature defaults.
|
protected XSElementDecl[] |
fElemDeclStack
Element decl stack.
|
protected int |
fElementDepth
Element depth: -2: validator not in pipeline; >= -1 current depth.
|
protected XMLString |
fEmptyXMLStr |
protected boolean |
fEntityRef |
protected XMLEntityResolver |
fEntityResolver
Entity resolver
|
protected Hashtable |
fExpandedLocationPairs |
protected String |
fExternalNoNamespaceSchema |
protected String |
fExternalSchemas |
protected ObjectList |
fFailedAssertions
Failed assertions.
|
protected boolean |
fFirstChunk |
protected boolean |
fFullChecking |
protected XSGrammarBucket |
fGrammarBucket
Schema grammar resolver.
|
protected XMLGrammarPool |
fGrammarPool |
protected boolean |
fIDCChecking |
protected boolean |
fIdConstraint |
protected org.apache.xerces.impl.xs.IDContext |
fIDContext |
protected int |
fIgnoreXSITypeDepth |
protected boolean |
fInCDATA |
protected IntStack |
fInhrAttrCountStack |
protected Object |
fJaxpSchemaSource |
protected Hashtable |
fLocationPairs |
protected XMLLocator |
fLocator
While parsing a document, keep the location of the document.
|
protected SchemaValidatorHelper.XPathMatcherStack |
fMatcherStack
Stack of active XPath matchers for identity constraints.
|
protected NamespaceContext |
fNamespaceContext |
protected boolean |
fNamespaceGrowth |
protected int |
fNFullValidationDepth
anything above this level has validation_attempted != full
|
protected boolean |
fNil
nil value of the current element
|
protected boolean[] |
fNilStack
nil value stack
|
protected int |
fNNoneValidationDepth
anything above this level has validation_attempted != none
|
protected boolean |
fNormalizeData |
protected XMLString |
fNormalizedStr |
protected XSNotationDecl |
fNotation
notation value of the current element
|
protected XSNotationDecl[] |
fNotationStack
notation stack
|
protected XSSimpleType |
fQNameDV
the DV usd to convert xsi:type to a QName
|
protected XSElementDecl |
fRootElementDeclaration |
protected QName |
fRootElementDeclQName
value of the "root-element-declaration" property.
|
protected XSTypeDefinition |
fRootTypeDefinition |
protected QName |
fRootTypeQName
value of the "root-type-definition" property.
|
protected boolean |
fSawCharacters
Did we see non-whitespace character data?
|
protected boolean |
fSawText
Did we see any character data?
|
protected boolean[] |
fSawTextStack
stack to record if we saw character data
|
protected boolean |
fSchemaDynamicValidation |
protected boolean |
fSchemaElementDefault |
protected XMLSchemaLoader |
fSchemaLoader |
protected String |
fSchemaType
Schema type: None, DTD, Schema
|
protected int |
fSkipValidationDepth
Skip validation: anything below this level should be skipped
|
protected ValidationState |
fState4ApplyDefault |
protected ValidationState |
fState4XsiType |
protected boolean |
fStrictAssess
whether the curret element is strictly assessed
|
protected boolean[] |
fStrictAssessStack
strict assess stack
|
protected boolean[] |
fStringContent
Stack to record if we saw character data outside of element content
|
protected boolean |
fSubElement
Seen sub elements.
|
protected boolean[] |
fSubElementStack
Seen sub elements stack.
|
protected SubstitutionGroupHandler |
fSubGroupHandler |
protected SymbolTable |
fSymbolTable
Symbol table.
|
protected QName |
fTempQName
temporary qname
|
protected boolean |
fTrailing |
protected XSTypeAlternative |
fTypeAlternative
Type Alternative augmentation information.
|
protected boolean |
fTypeAlternativesChecking |
protected XSDTypeAlternativeValidator |
fTypeAlternativeValidator |
protected XSTypeDefinition[] |
fTypeStack
type stack.
|
protected boolean |
fUnionType |
protected ArrayList |
fUnparsedLocations |
protected boolean |
fUseGrammarPoolOnly |
protected ValidatedInfo |
fValidatedInfo
temporary validated info
|
protected ValidationManager |
fValidationManager |
protected String |
fValidationRoot
String representation of the validation root.
|
protected org.apache.xerces.impl.xs.XSValidationState |
fValidationState |
protected SchemaValidatorHelper.ValueStoreCache |
fValueStoreCache
Cache of value stores for identity constraint fields.
|
protected short |
fWhiteSpace |
protected XSDDescription |
fXSDDescription
Schema Grammar Description passed, to give a chance to application to supply the Grammar
|
protected SchemaValidatorHelper.XSIErrorReporter |
fXSIErrorReporter
Error reporter.
|
protected ArrayList |
fXSITypeErrors |
protected static String |
GENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations
|
protected static String |
HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations
|
protected static int |
ID_CONSTRAINT_NUM |
protected static String |
ID_IDREF_CHECKING
Feature identifier: whether to ignore ID/IDREF errors
|
protected static String |
IDENTITY_CONSTRAINT_CHECKING
Feature identifier: whether to ignore identity constraint errors
|
protected static String |
IGNORE_XSI_TYPE
Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered
|
protected static String |
JAXP_SCHEMA_LANGUAGE
Property identifier: JAXP schema language.
|
protected static String |
JAXP_SCHEMA_SOURCE
Property identifier: JAXP schema source.
|
protected static String |
NAMESPACE_GROWTH
Feature identifier: namespace growth
|
protected CMNodeFactory |
nodeFactory |
protected static String |
NORMALIZE_DATA
Feature identifier: expose schema normalized value
|
protected static String |
PARSER_SETTINGS |
protected static Object[] |
PROPERTY_DEFAULTS
Property defaults.
|
protected static String[] |
RECOGNIZED_FEATURES
Recognized features.
|
protected static String[] |
RECOGNIZED_PROPERTIES
Recognized properties.
|
protected static String |
ROOT_ELEMENT_DECL
Property identifier: root element declaration.
|
protected static String |
ROOT_TYPE_DEF
Property identifier: root type definition.
|
protected static String |
SCHEMA_AUGMENT_PSVI
Feature identifier: augment PSVI
|
protected static String |
SCHEMA_DV_FACTORY
Property identifier: Schema DV Factory
|
protected static String |
SCHEMA_ELEMENT_DEFAULT
Feature identifier: send element default value via characters()
|
protected static String |
SCHEMA_FULL_CHECKING
Feature identifier: schema full checking
|
protected static String |
SCHEMA_LOCATION
Property identifier: schema location.
|
protected static String |
SCHEMA_NONS_LOCATION
Property identifier: no namespace schema location.
|
protected static String |
SCHEMA_VALIDATION
Feature identifier: validation.
|
protected static String |
STANDARD_URI_CONFORMANT_FEATURE
Feature identifier: standard uri conformant feature.
|
static String |
SYMBOL_TABLE
Property identifier: symbol table.
|
protected static String |
TOLERATE_DUPLICATES
Feature identifier: tolerate duplicates
|
protected static String |
TYPE_ALTERNATIVES_CHECKING
Feature identifier: whether to ignore type alternatives
|
protected static String |
UNPARSED_ENTITY_CHECKING
Feature identifier: whether to ignore unparsed entity errors
|
protected static String |
USE_GRAMMAR_POOL_ONLY
Feature identifier: use grammar pool only
|
protected static String |
VALIDATE_ANNOTATIONS
Feature identifier: validate annotations.
|
protected static String |
VALIDATION
Feature identifier: validation.
|
protected static String |
VALIDATION_MANAGER |
protected static String |
XML_SCHEMA_VERSION
Property identifier: xml schema version.
|
static String |
XMLGRAMMAR_POOL
Property identifier: grammar pool.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SchemaValidatorHelper() |
| Modifier and Type | Method and Description |
|---|---|
XPathMatcher |
activateField(Field field,
int initialDepth)
Request to activate the specified field.
|
void |
endValueScopeFor(IdentityConstraint identityConstraint,
int initialDepth)
Ends the value scope for the specified identity constraint.
|
XSElementDecl |
getGlobalElementDecl(QName element) |
void |
startValueScopeFor(IdentityConstraint identityConstraint,
int initialDepth)
Start the value scope for the specified identity constraint.
|
protected static final boolean DEBUG
protected static final String VALIDATION
protected static final String SCHEMA_VALIDATION
protected static final String SCHEMA_FULL_CHECKING
protected static final String DYNAMIC_VALIDATION
protected static final String NORMALIZE_DATA
protected static final String SCHEMA_ELEMENT_DEFAULT
protected static final String SCHEMA_AUGMENT_PSVI
protected static final String ALLOW_JAVA_ENCODINGS
protected static final String STANDARD_URI_CONFORMANT_FEATURE
protected static final String GENERATE_SYNTHETIC_ANNOTATIONS
protected static final String VALIDATE_ANNOTATIONS
protected static final String HONOUR_ALL_SCHEMALOCATIONS
protected static final String USE_GRAMMAR_POOL_ONLY
protected static final String CONTINUE_AFTER_FATAL_ERROR
protected static final String PARSER_SETTINGS
protected static final String NAMESPACE_GROWTH
protected static final String TOLERATE_DUPLICATES
protected static final String IGNORE_XSI_TYPE
protected static final String ID_IDREF_CHECKING
protected static final String UNPARSED_ENTITY_CHECKING
protected static final String IDENTITY_CONSTRAINT_CHECKING
protected static final String TYPE_ALTERNATIVES_CHECKING
protected static final String ASSERT_COMMENT_PI_CHECKING
public static final String SYMBOL_TABLE
public static final String ERROR_REPORTER
public static final String ENTITY_RESOLVER
public static final String XMLGRAMMAR_POOL
protected static final String VALIDATION_MANAGER
protected static final String ENTITY_MANAGER
protected static final String SCHEMA_LOCATION
protected static final String SCHEMA_NONS_LOCATION
protected static final String JAXP_SCHEMA_SOURCE
protected static final String JAXP_SCHEMA_LANGUAGE
protected static final String ROOT_TYPE_DEF
protected static final String ROOT_ELEMENT_DECL
protected static final String SCHEMA_DV_FACTORY
protected static final String XML_SCHEMA_VERSION
protected static final String DATATYPE_XML_VERSION
protected static final String[] RECOGNIZED_FEATURES
protected static final Boolean[] FEATURE_DEFAULTS
protected static final String[] RECOGNIZED_PROPERTIES
protected static final Object[] PROPERTY_DEFAULTS
protected static final int ID_CONSTRAINT_NUM
protected static final Hashtable EMPTY_TABLE
protected ElementPSVImpl fCurrentPSVI
protected final AugmentationsImpl fAugmentations
protected XMLString fDefaultValue
protected boolean fDynamicValidation
protected boolean fSchemaDynamicValidation
protected boolean fDoValidation
protected boolean fFullChecking
protected boolean fNormalizeData
protected boolean fSchemaElementDefault
protected boolean fAugPSVI
protected boolean fIdConstraint
protected boolean fUseGrammarPoolOnly
protected boolean fNamespaceGrowth
protected String fSchemaType
protected boolean fEntityRef
protected boolean fInCDATA
protected SymbolTable fSymbolTable
protected XMLLocator fLocator
protected ArrayList fXSITypeErrors
protected org.apache.xerces.impl.xs.IDContext fIDContext
protected String fDatatypeXMLVersion
protected NamespaceContext fNamespaceContext
protected final SchemaValidatorHelper.XSIErrorReporter fXSIErrorReporter
protected XMLEntityResolver fEntityResolver
protected ValidationManager fValidationManager
protected org.apache.xerces.impl.xs.XSValidationState fValidationState
protected XMLGrammarPool fGrammarPool
protected String fExternalSchemas
protected String fExternalNoNamespaceSchema
protected Object fJaxpSchemaSource
protected final XSDDescription fXSDDescription
protected final Hashtable fLocationPairs
protected final Hashtable fExpandedLocationPairs
protected final ArrayList fUnparsedLocations
protected XMLDocumentHandler fDocumentHandler
protected XMLDocumentSource fDocumentSource
protected static final boolean DEBUG_NORMALIZATION
protected final XMLString fEmptyXMLStr
protected static final int BUFFER_SIZE
protected final XMLString fNormalizedStr
protected boolean fFirstChunk
protected boolean fTrailing
protected short fWhiteSpace
protected boolean fUnionType
protected final XSGrammarBucket fGrammarBucket
protected final SubstitutionGroupHandler fSubGroupHandler
protected final XSSimpleType fQNameDV
protected final CMNodeFactory nodeFactory
protected final CMBuilder fCMBuilder
protected final XMLSchemaLoader fSchemaLoader
protected String fValidationRoot
protected int fSkipValidationDepth
protected int fNFullValidationDepth
protected int fNNoneValidationDepth
protected int fElementDepth
protected boolean fSubElement
protected boolean[] fSubElementStack
protected XSElementDecl fCurrentElemDecl
protected XSElementDecl[] fElemDeclStack
protected boolean fNil
protected boolean[] fNilStack
protected XSNotationDecl fNotation
protected XSNotationDecl[] fNotationStack
protected XSTypeDefinition fCurrentType
protected ObjectList fFailedAssertions
protected XSTypeAlternative fTypeAlternative
protected XSTypeDefinition[] fTypeStack
protected XSCMValidator fCurrentCM
protected XSCMValidator[] fCMStack
protected int[] fCurrCMState
protected int[][] fCMStateStack
protected boolean fStrictAssess
protected boolean[] fStrictAssessStack
protected final StringBuffer fBuffer
protected boolean fAppendBuffer
protected boolean fSawText
protected boolean[] fSawTextStack
protected boolean fSawCharacters
protected boolean[] fStringContent
protected final QName fTempQName
protected QName fRootTypeQName
protected XSTypeDefinition fRootTypeDefinition
protected QName fRootElementDeclQName
protected XSElementDecl fRootElementDeclaration
protected int fIgnoreXSITypeDepth
protected boolean fIDCChecking
protected boolean fTypeAlternativesChecking
protected boolean fCommentsAndPIsForAssert
protected ValidatedInfo fValidatedInfo
protected ValidationState fState4XsiType
protected ValidationState fState4ApplyDefault
protected SchemaValidatorHelper.XPathMatcherStack fMatcherStack
For each element with identity constraints, the selector of each identity constraint is activated. When the selector matches its XPath, then all the fields of the identity constraint are activated.
Note: Once the activation scope is left, the XPath matchers are automatically removed from the stack of active matchers and no longer receive callbacks.
protected SchemaValidatorHelper.ValueStoreCache fValueStoreCache
protected XSDAssertionValidator fAssertionValidator
protected XSDTypeAlternativeValidator fTypeAlternativeValidator
protected IntStack fInhrAttrCountStack
public XSElementDecl getGlobalElementDecl(QName element)
getGlobalElementDecl in interface XSElementDeclHelperpublic XPathMatcher activateField(Field field, int initialDepth)
activateField in interface FieldActivatorfield - The field to activate.initialDepth - the 0-indexed depth in the instance document at which the Selector began to match.public void startValueScopeFor(IdentityConstraint identityConstraint, int initialDepth)
startValueScopeFor in interface FieldActivatoridentityConstraint - The identity constraint.initialDepth - the depth at which the selector began matchingpublic void endValueScopeFor(IdentityConstraint identityConstraint, int initialDepth)
endValueScopeFor in interface FieldActivatoridentityConstraint - The identity constraint.initialDepth - the 0-indexed depth where the Selector began to match.Copyright © 2013. All rights reserved.