public class XMLSchemaValidatorBase extends java.lang.Object implements XSElementDeclHelper, FieldActivator
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | XMLSchemaValidatorBase.KeyRefValueStoreKey reference value store. | 
| protected class  | XMLSchemaValidatorBase.KeyValueStoreKey value store. | 
| protected static class  | XMLSchemaValidatorBase.LocalIDKey | 
| protected static class  | XMLSchemaValidatorBase.ShortVectorA simple vector for  shorts. | 
| protected class  | XMLSchemaValidatorBase.UniqueValueStoreUnique value store. | 
| protected class  | XMLSchemaValidatorBase.ValueStoreBaseValue store implementation base class. | 
| protected class  | XMLSchemaValidatorBase.ValueStoreCacheValue store cache. | 
| protected static class  | XMLSchemaValidatorBase.XPathMatcherStackStack of XPath matchers for identity constraints. | 
| protected class  | XMLSchemaValidatorBase.XSIErrorReporterA wrapper of the standard error reporter. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected static java.lang.String | ALLOW_JAVA_ENCODINGSFeature identifier: whether to recognize java encoding names | 
| protected static java.lang.String | ASSERT_COMMENT_PI_CHECKINGFeature identifier: whether to allow comment and PI nodes to be visible during  | 
| protected static int | BUFFER_SIZE | 
| protected static java.lang.String | CONTINUE_AFTER_FATAL_ERRORFeature identifier: whether to continue parsing a schema after a fatal error is encountered | 
| protected static java.lang.String | CTA_FULL_XPATH_CHECKINGFeature identifier: whether to allow full XPath 2.0 checking for CTA processing | 
| protected static java.lang.String | DATATYPE_XML_VERSIONProperty identifier: datatype xml version. | 
| protected static boolean | DEBUG | 
| protected static boolean | DEBUG_NORMALIZATION | 
| protected static java.lang.String | DYNAMIC_VALIDATIONFeature identifier: dynamic validation. | 
| protected static java.util.Hashtable | EMPTY_TABLE | 
| protected static java.lang.String | ENTITY_MANAGER | 
| static java.lang.String | ENTITY_RESOLVERProperty identifier: entity resolver. | 
| static java.lang.String | ERROR_REPORTERProperty identifier: error reporter. | 
| protected boolean | fAppendBufferWhether need to append characters to fBuffer | 
| protected XSDAssertionValidator | fAssertionValidator | 
| protected AugmentationsImpl | fAugmentations | 
| protected boolean | fAugPSVI | 
| protected java.lang.StringBuffer | fBufferTemporary string buffers. | 
| protected CMBuilder | fCMBuilderused to build content models | 
| protected XSCMValidator[] | fCMStackContent model stack. | 
| protected int[][] | fCMStateStackstack to hold content model states | 
| protected boolean | fCommentsAndPIsForAssert | 
| protected int[] | fCurrCMStatethe current state of the current content model | 
| protected XSCMValidator | fCurrentCMCurrent content model. | 
| protected XSElementDecl | fCurrentElemDeclCurrent element declaration. | 
| protected ElementPSVImpl | fCurrentPSVIcurrent PSVI element info | 
| protected org.apache.xerces.xs.XSTypeDefinition | fCurrentTypeCurrent type. | 
| protected java.lang.String | fDatatypeXMLVersion | 
| protected org.apache.xerces.xni.XMLString | fDefaultValue | 
| protected org.apache.xerces.xni.XMLDocumentHandler | fDocumentHandlerDocument handler. | 
| protected org.apache.xerces.xni.parser.XMLDocumentSource | fDocumentSource | 
| protected boolean | fDoValidation | 
| protected boolean | fDynamicValidation | 
| protected static java.lang.Boolean[] | FEATURE_DEFAULTSFeature defaults. | 
| protected XSElementDecl[] | fElemDeclStackElement decl stack. | 
| protected int | fElementDepthElement depth: -2: validator not in pipeline; >= -1 current depth. | 
| protected org.apache.xerces.xni.XMLString | fEmptyXMLStr | 
| protected boolean | fEntityRef | 
| protected org.apache.xerces.xni.parser.XMLEntityResolver | fEntityResolverEntity resolver | 
| protected java.util.Hashtable | fExpandedLocationPairs | 
| protected java.lang.String | fExternalNoNamespaceSchema | 
| protected java.lang.String | fExternalSchemas | 
| protected org.apache.xerces.xs.datatypes.ObjectList | fFailedAssertionsFailed assertions. | 
| protected boolean | fFirstChunk | 
| protected boolean | fFullChecking | 
| protected XSGrammarBucket | fGrammarBucketSchema grammar resolver. | 
| protected org.apache.xerces.xni.grammars.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 java.lang.Object | fJaxpSchemaSource | 
| protected java.util.Hashtable | fLocationPairs | 
| protected org.apache.xerces.xni.XMLLocator | fLocatorWhile parsing a document, keep the location of the document. | 
| protected XMLSchemaValidatorBase.XPathMatcherStack | fMatcherStackStack of active XPath matchers for identity constraints. | 
| protected org.apache.xerces.xni.NamespaceContext | fNamespaceContext | 
| protected boolean | fNamespaceGrowth | 
| protected int | fNFullValidationDepthanything above this level has validation_attempted != full | 
| protected boolean | fNilnil value of the current element | 
| protected boolean[] | fNilStacknil value stack | 
| protected int | fNNoneValidationDepthanything above this level has validation_attempted != none | 
| protected boolean | fNormalizeData | 
| protected org.apache.xerces.xni.XMLString | fNormalizedStr | 
| protected XSNotationDecl | fNotationnotation value of the current element | 
| protected XSNotationDecl[] | fNotationStacknotation stack | 
| protected XSSimpleType | fQNameDVthe DV usd to convert xsi:type to a QName | 
| protected XSElementDecl | fRootElementDeclaration | 
| protected javax.xml.namespace.QName | fRootElementDeclQNamevalue of the "root-element-declaration" property. | 
| protected org.apache.xerces.xs.XSTypeDefinition | fRootTypeDefinition | 
| protected javax.xml.namespace.QName | fRootTypeQNamevalue of the "root-type-definition" property. | 
| protected boolean | fSawCharactersDid we see non-whitespace character data? | 
| protected boolean | fSawTextDid we see any character data? | 
| protected boolean[] | fSawTextStackstack to record if we saw character data | 
| protected boolean | fSchemaDynamicValidation | 
| protected boolean | fSchemaElementDefault | 
| protected XMLSchemaLoader | fSchemaLoader | 
| protected java.lang.String | fSchemaTypeSchema type: None, DTD, Schema | 
| protected int | fSkipValidationDepthSkip validation: anything below this level should be skipped | 
| protected ValidationState | fState4ApplyDefault | 
| protected ValidationState | fState4XsiType | 
| protected boolean | fStrictAssesswhether the curret element is strictly assessed | 
| protected boolean[] | fStrictAssessStackstrict assess stack | 
| protected boolean[] | fStringContentStack to record if we saw character data outside of element content | 
| protected boolean | fSubElementSeen sub elements. | 
| protected boolean[] | fSubElementStackSeen sub elements stack. | 
| protected SubstitutionGroupHandler | fSubGroupHandler | 
| protected SymbolTable | fSymbolTableSymbol table. | 
| protected org.apache.xerces.xni.QName | fTempQNametemporary qname | 
| protected boolean | fTrailing | 
| protected org.apache.xerces.xs.XSTypeAlternative | fTypeAlternativeType Alternative augmentation information. | 
| protected boolean | fTypeAlternativesChecking | 
| protected XSDTypeAlternativeValidator | fTypeAlternativeValidator | 
| protected org.apache.xerces.xs.XSTypeDefinition[] | fTypeStacktype stack. | 
| protected boolean | fUnionType | 
| protected java.util.ArrayList | fUnparsedLocations | 
| protected boolean | fUseGrammarPoolOnly | 
| protected ValidatedInfo | fValidatedInfotemporary validated info | 
| protected ValidationManager | fValidationManager | 
| protected java.lang.String | fValidationRootString representation of the validation root. | 
| protected org.apache.xerces.impl.xs.XSValidationState | fValidationState | 
| protected XMLSchemaValidatorBase.ValueStoreCache | fValueStoreCacheCache of value stores for identity constraint fields. | 
| protected short | fWhiteSpace | 
| protected XSDDescription | fXSDDescriptionSchema Grammar Description passed,  to give a chance to application to supply the Grammar | 
| protected XMLSchemaValidatorBase.XSIErrorReporter | fXSIErrorReporterError reporter. | 
| protected java.util.ArrayList | fXSITypeErrors | 
| protected static java.lang.String | GENERATE_SYNTHETIC_ANNOTATIONSFeature: generate synthetic annotations | 
| protected static java.lang.String | HONOUR_ALL_SCHEMALOCATIONSFeature identifier: honour all schemaLocations | 
| protected static int | ID_CONSTRAINT_NUM | 
| protected static java.lang.String | ID_IDREF_CHECKINGFeature identifier: whether to ignore ID/IDREF errors | 
| protected static java.lang.String | IDENTITY_CONSTRAINT_CHECKINGFeature identifier: whether to ignore identity constraint errors | 
| protected static java.lang.String | IGNORE_XSI_TYPEFeature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered | 
| protected static java.lang.String | JAXP_SCHEMA_LANGUAGEProperty identifier: JAXP schema language. | 
| protected static java.lang.String | JAXP_SCHEMA_SOURCEProperty identifier: JAXP schema source. | 
| protected static java.lang.String | NAMESPACE_GROWTHFeature identifier: namespace growth | 
| protected CMNodeFactory | nodeFactory | 
| protected static java.lang.String | NORMALIZE_DATAFeature identifier: expose schema normalized value | 
| protected static java.lang.String | PARSER_SETTINGS | 
| protected static java.lang.Object[] | PROPERTY_DEFAULTSProperty defaults. | 
| protected static java.lang.String[] | RECOGNIZED_FEATURESRecognized features. | 
| protected static java.lang.String[] | RECOGNIZED_PROPERTIESRecognized properties. | 
| protected static java.lang.String | ROOT_ELEMENT_DECLProperty identifier: root element declaration. | 
| protected static java.lang.String | ROOT_TYPE_DEFProperty identifier: root type definition. | 
| protected static java.lang.String | SCHEMA_AUGMENT_PSVIFeature identifier: augment PSVI | 
| protected static java.lang.String | SCHEMA_DV_FACTORYProperty identifier: Schema DV Factory | 
| protected static java.lang.String | SCHEMA_ELEMENT_DEFAULTFeature identifier: send element default value via characters() | 
| protected static java.lang.String | SCHEMA_FULL_CHECKINGFeature identifier: schema full checking | 
| protected static java.lang.String | SCHEMA_LOCATIONProperty identifier: schema location. | 
| protected static java.lang.String | SCHEMA_NONS_LOCATIONProperty identifier: no namespace schema location. | 
| protected static java.lang.String | SCHEMA_VALIDATIONFeature identifier: validation. | 
| protected static java.lang.String | STANDARD_URI_CONFORMANT_FEATUREFeature identifier: standard uri conformant feature. | 
| static java.lang.String | SYMBOL_TABLEProperty identifier: symbol table. | 
| protected static java.lang.String | TOLERATE_DUPLICATESFeature identifier: tolerate duplicates | 
| protected static java.lang.String | TYPE_ALTERNATIVES_CHECKINGFeature identifier: whether to ignore type alternatives | 
| protected static java.lang.String | UNPARSED_ENTITY_CHECKINGFeature identifier: whether to ignore unparsed entity errors | 
| protected static java.lang.String | USE_GRAMMAR_POOL_ONLYFeature identifier: use grammar pool only | 
| protected static java.lang.String | VALIDATE_ANNOTATIONSFeature identifier: validate annotations. | 
| protected static java.lang.String | VALIDATIONFeature identifier: validation. | 
| protected static java.lang.String | VALIDATION_MANAGER | 
| protected static java.lang.String | XML_SCHEMA_VERSIONProperty identifier: xml schema version. | 
| static java.lang.String | XMLGRAMMAR_POOLProperty identifier: grammar pool. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | XMLSchemaValidatorBase() | 
| 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(org.apache.xerces.xni.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 java.lang.String VALIDATION
protected static final java.lang.String SCHEMA_VALIDATION
protected static final java.lang.String SCHEMA_FULL_CHECKING
protected static final java.lang.String DYNAMIC_VALIDATION
protected static final java.lang.String NORMALIZE_DATA
protected static final java.lang.String SCHEMA_ELEMENT_DEFAULT
protected static final java.lang.String SCHEMA_AUGMENT_PSVI
protected static final java.lang.String ALLOW_JAVA_ENCODINGS
protected static final java.lang.String STANDARD_URI_CONFORMANT_FEATURE
protected static final java.lang.String GENERATE_SYNTHETIC_ANNOTATIONS
protected static final java.lang.String VALIDATE_ANNOTATIONS
protected static final java.lang.String HONOUR_ALL_SCHEMALOCATIONS
protected static final java.lang.String USE_GRAMMAR_POOL_ONLY
protected static final java.lang.String CONTINUE_AFTER_FATAL_ERROR
protected static final java.lang.String PARSER_SETTINGS
protected static final java.lang.String NAMESPACE_GROWTH
protected static final java.lang.String TOLERATE_DUPLICATES
protected static final java.lang.String IGNORE_XSI_TYPE
protected static final java.lang.String ID_IDREF_CHECKING
protected static final java.lang.String UNPARSED_ENTITY_CHECKING
protected static final java.lang.String IDENTITY_CONSTRAINT_CHECKING
protected static final java.lang.String TYPE_ALTERNATIVES_CHECKING
protected static final java.lang.String CTA_FULL_XPATH_CHECKING
protected static final java.lang.String ASSERT_COMMENT_PI_CHECKING
public static final java.lang.String SYMBOL_TABLE
public static final java.lang.String ERROR_REPORTER
public static final java.lang.String ENTITY_RESOLVER
public static final java.lang.String XMLGRAMMAR_POOL
protected static final java.lang.String VALIDATION_MANAGER
protected static final java.lang.String ENTITY_MANAGER
protected static final java.lang.String SCHEMA_LOCATION
protected static final java.lang.String SCHEMA_NONS_LOCATION
protected static final java.lang.String JAXP_SCHEMA_SOURCE
protected static final java.lang.String JAXP_SCHEMA_LANGUAGE
protected static final java.lang.String ROOT_TYPE_DEF
protected static final java.lang.String ROOT_ELEMENT_DECL
protected static final java.lang.String SCHEMA_DV_FACTORY
protected static final java.lang.String XML_SCHEMA_VERSION
protected static final java.lang.String DATATYPE_XML_VERSION
protected static final java.lang.String[] RECOGNIZED_FEATURES
protected static final java.lang.Boolean[] FEATURE_DEFAULTS
protected static final java.lang.String[] RECOGNIZED_PROPERTIES
protected static final java.lang.Object[] PROPERTY_DEFAULTS
protected static final int ID_CONSTRAINT_NUM
protected static final java.util.Hashtable EMPTY_TABLE
protected ElementPSVImpl fCurrentPSVI
protected final AugmentationsImpl fAugmentations
protected org.apache.xerces.xni.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 java.lang.String fSchemaType
protected boolean fEntityRef
protected boolean fInCDATA
protected SymbolTable fSymbolTable
protected org.apache.xerces.xni.XMLLocator fLocator
protected java.util.ArrayList fXSITypeErrors
protected org.apache.xerces.impl.xs.IDContext fIDContext
protected java.lang.String fDatatypeXMLVersion
protected org.apache.xerces.xni.NamespaceContext fNamespaceContext
protected final XMLSchemaValidatorBase.XSIErrorReporter fXSIErrorReporter
protected org.apache.xerces.xni.parser.XMLEntityResolver fEntityResolver
protected ValidationManager fValidationManager
protected org.apache.xerces.impl.xs.XSValidationState fValidationState
protected org.apache.xerces.xni.grammars.XMLGrammarPool fGrammarPool
protected java.lang.String fExternalSchemas
protected java.lang.String fExternalNoNamespaceSchema
protected java.lang.Object fJaxpSchemaSource
protected final XSDDescription fXSDDescription
protected final java.util.Hashtable fLocationPairs
protected final java.util.Hashtable fExpandedLocationPairs
protected final java.util.ArrayList fUnparsedLocations
protected org.apache.xerces.xni.XMLDocumentHandler fDocumentHandler
protected org.apache.xerces.xni.parser.XMLDocumentSource fDocumentSource
protected static final boolean DEBUG_NORMALIZATION
protected final org.apache.xerces.xni.XMLString fEmptyXMLStr
protected static final int BUFFER_SIZE
protected final org.apache.xerces.xni.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 java.lang.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 org.apache.xerces.xs.XSTypeDefinition fCurrentType
protected org.apache.xerces.xs.datatypes.ObjectList fFailedAssertions
protected org.apache.xerces.xs.XSTypeAlternative fTypeAlternative
protected org.apache.xerces.xs.XSTypeDefinition[] fTypeStack
protected XSCMValidator fCurrentCM
protected XSCMValidator[] fCMStack
protected int[] fCurrCMState
protected int[][] fCMStateStack
protected boolean fStrictAssess
protected boolean[] fStrictAssessStack
protected final java.lang.StringBuffer fBuffer
protected boolean fAppendBuffer
protected boolean fSawText
protected boolean[] fSawTextStack
protected boolean fSawCharacters
protected boolean[] fStringContent
protected final org.apache.xerces.xni.QName fTempQName
protected javax.xml.namespace.QName fRootTypeQName
protected org.apache.xerces.xs.XSTypeDefinition fRootTypeDefinition
protected javax.xml.namespace.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 XMLSchemaValidatorBase.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 XMLSchemaValidatorBase.ValueStoreCache fValueStoreCache
protected XSDAssertionValidator fAssertionValidator
protected XSDTypeAlternativeValidator fTypeAlternativeValidator
protected IntStack fInhrAttrCountStack
public XSElementDecl getGlobalElementDecl(org.apache.xerces.xni.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 © 1999-2022 The Apache Software Foundation. All Rights Reserved.