Class XMLSchemaValidator.ValueStoreCache
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreCache
-
- Enclosing class:
- XMLSchemaValidator
protected class XMLSchemaValidator.ValueStoreCache extends Object
Value store cache. This class is used to store the values for identity constraints.- Author:
- Andy Clark, IBM
-
-
Field Summary
Fields Modifier and Type Field Description protected HashMap
fGlobalIDConstraintMap
protected Stack
fGlobalMapStack
protected HashMap
fIdentityConstraint2ValueStoreMap
Values stores associated to specific identity constraints.protected ArrayList
fValueStores
stores all global Values stores.
-
Constructor Summary
Constructors Constructor Description ValueStoreCache()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDocument()
Check identity constraints.void
endElement()
endElement(): merges contents of fGlobalIDConstraintMap with the top of fGlobalMapStack into fGlobalIDConstraintMap.XMLSchemaValidator.ValueStoreBase
getGlobalValueStoreFor(IdentityConstraint id)
Returns the global value store associated to the specified IdentityConstraint.XMLSchemaValidator.ValueStoreBase
getValueStoreFor(IdentityConstraint id, int initialDepth)
Returns the value store associated to the specified IdentityConstraint.void
initValueStoresFor(XSElementDecl eDecl, FieldActivator activator)
Initializes the value stores for the specified element declaration.void
startDocument()
Resets the identity constraint cache.void
startElement()
String
toString()
Returns a string representation of this object.void
transplant(IdentityConstraint id, int initialDepth)
-
-
-
Field Detail
-
fValueStores
protected final ArrayList fValueStores
stores all global Values stores.
-
fIdentityConstraint2ValueStoreMap
protected final HashMap 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
protected final Stack fGlobalMapStack
-
fGlobalIDConstraintMap
protected final HashMap fGlobalIDConstraintMap
-
-
Method Detail
-
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
public void initValueStoresFor(XSElementDecl eDecl, FieldActivator activator)
Initializes the value stores for the specified element declaration.
-
getValueStoreFor
public XMLSchemaValidator.ValueStoreBase getValueStoreFor(IdentityConstraint id, int initialDepth)
Returns the value store associated to the specified IdentityConstraint.
-
getGlobalValueStoreFor
public XMLSchemaValidator.ValueStoreBase getGlobalValueStoreFor(IdentityConstraint id)
Returns the global value store associated to the specified IdentityConstraint.
-
transplant
public void transplant(IdentityConstraint id, int initialDepth)
-
endDocument
public void endDocument()
Check identity constraints.
-
-