public class XMLSchemaValidatorBase extends java.lang.Object implements XSElementDeclHelper, FieldActivator
Modifier and Type | Class and Description |
---|---|
protected class |
XMLSchemaValidatorBase.KeyRefValueStore
Key reference value store.
|
protected class |
XMLSchemaValidatorBase.KeyValueStore
Key value store.
|
protected static class |
XMLSchemaValidatorBase.LocalIDKey |
protected static class |
XMLSchemaValidatorBase.ShortVector
A simple vector for
short s. |
protected class |
XMLSchemaValidatorBase.UniqueValueStore
Unique value store.
|
protected class |
XMLSchemaValidatorBase.ValueStoreBase
Value store implementation base class.
|
protected class |
XMLSchemaValidatorBase.ValueStoreCache
Value store cache.
|
protected static class |
XMLSchemaValidatorBase.XPathMatcherStack
Stack of XPath matchers for identity constraints.
|
protected class |
XMLSchemaValidatorBase.XSIErrorReporter
A wrapper of the standard error reporter.
|
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ALLOW_JAVA_ENCODINGS
Feature identifier: whether to recognize java encoding names
|
protected static java.lang.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 java.lang.String |
CONTINUE_AFTER_FATAL_ERROR
Feature identifier: whether to continue parsing a schema after a fatal error is encountered
|
protected static java.lang.String |
CTA_FULL_XPATH_CHECKING
Feature identifier: whether to allow full XPath 2.0 checking for CTA processing
|
protected static java.lang.String |
DATATYPE_XML_VERSION
Property identifier: datatype xml version.
|
protected static boolean |
DEBUG |
protected static boolean |
DEBUG_NORMALIZATION |
protected static java.lang.String |
DYNAMIC_VALIDATION
Feature identifier: dynamic validation.
|
protected static java.util.Hashtable |
EMPTY_TABLE |
protected static java.lang.String |
ENTITY_MANAGER |
static java.lang.String |
ENTITY_RESOLVER
Property identifier: entity resolver.
|
static java.lang.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 java.lang.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 org.apache.xerces.xs.XSTypeDefinition |
fCurrentType
Current type.
|
protected java.lang.String |
fDatatypeXMLVersion |
protected org.apache.xerces.xni.XMLString |
fDefaultValue |
protected org.apache.xerces.xni.XMLDocumentHandler |
fDocumentHandler
Document handler.
|
protected org.apache.xerces.xni.parser.XMLDocumentSource |
fDocumentSource |
protected boolean |
fDoValidation |
protected boolean |
fDynamicValidation |
protected static java.lang.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 org.apache.xerces.xni.XMLString |
fEmptyXMLStr |
protected boolean |
fEntityRef |
protected org.apache.xerces.xni.parser.XMLEntityResolver |
fEntityResolver
Entity resolver
|
protected java.util.Hashtable |
fExpandedLocationPairs |
protected java.lang.String |
fExternalNoNamespaceSchema |
protected java.lang.String |
fExternalSchemas |
protected org.apache.xerces.xs.datatypes.ObjectList |
fFailedAssertions
Failed assertions.
|
protected boolean |
fFirstChunk |
protected boolean |
fFullChecking |
protected XSGrammarBucket |
fGrammarBucket
Schema 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 |
fLocator
While parsing a document, keep the location of the document.
|
protected XMLSchemaValidatorBase.XPathMatcherStack |
fMatcherStack
Stack of active XPath matchers for identity constraints.
|
protected org.apache.xerces.xni.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 org.apache.xerces.xni.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 javax.xml.namespace.QName |
fRootElementDeclQName
value of the "root-element-declaration" property.
|
protected org.apache.xerces.xs.XSTypeDefinition |
fRootTypeDefinition |
protected javax.xml.namespace.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 java.lang.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 org.apache.xerces.xni.QName |
fTempQName
temporary qname
|
protected boolean |
fTrailing |
protected org.apache.xerces.xs.XSTypeAlternative |
fTypeAlternative
Type Alternative augmentation information.
|
protected boolean |
fTypeAlternativesChecking |
protected XSDTypeAlternativeValidator |
fTypeAlternativeValidator |
protected org.apache.xerces.xs.XSTypeDefinition[] |
fTypeStack
type stack.
|
protected boolean |
fUnionType |
protected java.util.ArrayList |
fUnparsedLocations |
protected boolean |
fUseGrammarPoolOnly |
protected ValidatedInfo |
fValidatedInfo
temporary validated info
|
protected ValidationManager |
fValidationManager |
protected java.lang.String |
fValidationRoot
String representation of the validation root.
|
protected org.apache.xerces.impl.xs.XSValidationState |
fValidationState |
protected XMLSchemaValidatorBase.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 XMLSchemaValidatorBase.XSIErrorReporter |
fXSIErrorReporter
Error reporter.
|
protected java.util.ArrayList |
fXSITypeErrors |
protected static java.lang.String |
GENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations
|
protected static java.lang.String |
HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations
|
protected static int |
ID_CONSTRAINT_NUM |
protected static java.lang.String |
ID_IDREF_CHECKING
Feature identifier: whether to ignore ID/IDREF errors
|
protected static java.lang.String |
IDENTITY_CONSTRAINT_CHECKING
Feature identifier: whether to ignore identity constraint errors
|
protected static java.lang.String |
IGNORE_XSI_TYPE
Feature identifier: whether to ignore xsi:type attributes until a global element declaration is encountered
|
protected static java.lang.String |
JAXP_SCHEMA_LANGUAGE
Property identifier: JAXP schema language.
|
protected static java.lang.String |
JAXP_SCHEMA_SOURCE
Property identifier: JAXP schema source.
|
protected static java.lang.String |
NAMESPACE_GROWTH
Feature identifier: namespace growth
|
protected CMNodeFactory |
nodeFactory |
protected static java.lang.String |
NORMALIZE_DATA
Feature identifier: expose schema normalized value
|
protected static java.lang.String |
PARSER_SETTINGS |
protected static java.lang.Object[] |
PROPERTY_DEFAULTS
Property defaults.
|
protected static java.lang.String[] |
RECOGNIZED_FEATURES
Recognized features.
|
protected static java.lang.String[] |
RECOGNIZED_PROPERTIES
Recognized properties.
|
protected static java.lang.String |
ROOT_ELEMENT_DECL
Property identifier: root element declaration.
|
protected static java.lang.String |
ROOT_TYPE_DEF
Property identifier: root type definition.
|
protected static java.lang.String |
SCHEMA_AUGMENT_PSVI
Feature identifier: augment PSVI
|
protected static java.lang.String |
SCHEMA_DV_FACTORY
Property identifier: Schema DV Factory
|
protected static java.lang.String |
SCHEMA_ELEMENT_DEFAULT
Feature identifier: send element default value via characters()
|
protected static java.lang.String |
SCHEMA_FULL_CHECKING
Feature identifier: schema full checking
|
protected static java.lang.String |
SCHEMA_LOCATION
Property identifier: schema location.
|
protected static java.lang.String |
SCHEMA_NONS_LOCATION
Property identifier: no namespace schema location.
|
protected static java.lang.String |
SCHEMA_VALIDATION
Feature identifier: validation.
|
protected static java.lang.String |
STANDARD_URI_CONFORMANT_FEATURE
Feature identifier: standard uri conformant feature.
|
static java.lang.String |
SYMBOL_TABLE
Property identifier: symbol table.
|
protected static java.lang.String |
TOLERATE_DUPLICATES
Feature identifier: tolerate duplicates
|
protected static java.lang.String |
TYPE_ALTERNATIVES_CHECKING
Feature identifier: whether to ignore type alternatives
|
protected static java.lang.String |
UNPARSED_ENTITY_CHECKING
Feature identifier: whether to ignore unparsed entity errors
|
protected static java.lang.String |
USE_GRAMMAR_POOL_ONLY
Feature identifier: use grammar pool only
|
protected static java.lang.String |
VALIDATE_ANNOTATIONS
Feature identifier: validate annotations.
|
protected static java.lang.String |
VALIDATION
Feature identifier: validation.
|
protected static java.lang.String |
VALIDATION_MANAGER |
protected static java.lang.String |
XML_SCHEMA_VERSION
Property identifier: xml schema version.
|
static java.lang.String |
XMLGRAMMAR_POOL
Property 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 XSElementDeclHelper
public XPathMatcher activateField(Field field, int initialDepth)
activateField
in interface FieldActivator
field
- 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 FieldActivator
identityConstraint
- The identity constraint.initialDepth
- the depth at which the selector began matchingpublic void endValueScopeFor(IdentityConstraint identityConstraint, int initialDepth)
endValueScopeFor
in interface FieldActivator
identityConstraint
- The identity constraint.initialDepth
- the 0-indexed depth where the Selector began to match.Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.