protected class

XMLSchemaValidator.ValueStoreCache

extends Object
java.lang.Object
   ↳ org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreCache

Class Overview

Value store cache. This class is used to store the values for identity constraints.

Summary

Fields
protected final Hashtable fGlobalIDConstraintMap
protected final Stack fGlobalMapStack
protected final Hashtable fIdentityConstraint2ValueStoreMap Values stores associated to specific identity constraints.
protected final Vector fValueStores stores all global Values stores.
Public Constructors
XMLSchemaValidator.ValueStoreCache()
Default constructor.
Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected final Hashtable fGlobalIDConstraintMap

protected final Stack fGlobalMapStack

protected final Hashtable 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.

protected final Vector fValueStores

stores all global Values stores.

Public Constructors

public XMLSchemaValidator.ValueStoreCache ()

Default constructor.

Public Methods

public void endDocument ()

Check identity constraints.

public void endElement ()

endElement(): merges contents of fGlobalIDConstraintMap with the top of fGlobalMapStack into fGlobalIDConstraintMap.

public XMLSchemaValidator.ValueStoreBase getGlobalValueStoreFor (IdentityConstraint id)

Returns the global value store associated to the specified IdentityConstraint.

public XMLSchemaValidator.ValueStoreBase getValueStoreFor (IdentityConstraint id, int initialDepth)

Returns the value store associated to the specified IdentityConstraint.

public void initValueStoresFor (XSElementDecl eDecl, FieldActivator activator)

Initializes the value stores for the specified element declaration.

public void startDocument ()

Resets the identity constraint cache.

public void startElement ()

public String toString ()

Returns a string representation of this object.

public void transplant (IdentityConstraint id, int initialDepth)