Package org.apache.xerces.impl.xs
Class XMLSchemaValidator.ValueStoreCache
java.lang.Object
org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreCache
- Enclosing class:
XMLSchemaValidator
Value store cache. This class is used to store the values for
identity constraints.
- Author:
- Andy Clark, IBM
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck identity constraints.voidendElement(): merges contents of fGlobalIDConstraintMap with the top of fGlobalMapStack into fGlobalIDConstraintMap.Returns the global value store associated to the specified IdentityConstraint.getValueStoreFor(IdentityConstraint id, int initialDepth) Returns the value store associated to the specified IdentityConstraint.voidinitValueStoresFor(XSElementDecl eDecl, FieldActivator activator) Initializes the value stores for the specified element declaration.voidResets the identity constraint cache.voidtoString()Returns a string representation of this object.voidtransplant(IdentityConstraint id, int initialDepth)
-
Field Details
-
fValueStores
stores all global Values stores. -
fIdentityConstraint2ValueStoreMap
Values stores associated to specific identity constraints. This hashtable maps IdentityConstraints and the 0-based element on which their selectors first matched to a corresponding ValueStore. This should take care of all cases, including where ID constraints with descendant-or-self axes occur on recursively-defined elements. -
fGlobalMapStack
-
fGlobalIDConstraintMap
-
-
Constructor Details
-
ValueStoreCache
public ValueStoreCache()Default constructor.
-
-
Method Details
-
startDocument
public void startDocument()Resets the identity constraint cache. -
startElement
public void startElement() -
endElement
public void endElement()endElement(): merges contents of fGlobalIDConstraintMap with the top of fGlobalMapStack into fGlobalIDConstraintMap. -
initValueStoresFor
Initializes the value stores for the specified element declaration. -
getValueStoreFor
Returns the value store associated to the specified IdentityConstraint. -
getGlobalValueStoreFor
Returns the global value store associated to the specified IdentityConstraint. -
transplant
-
endDocument
public void endDocument()Check identity constraints. -
toString
Returns a string representation of this object.
-