org.apache.xerces.impl.xs
Class XMLSchemaValidator.ValueStoreCache

java.lang.Object
  |
  +--org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreCache
Enclosing class:
XMLSchemaValidator

protected class XMLSchemaValidator.ValueStoreCache
extends java.lang.Object

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

Author:
Andy Clark, IBM

Field Summary
protected  java.util.Hashtable fGlobalIDConstraintMap
           
protected  java.util.Stack fGlobalMapStack
           
protected  java.util.Hashtable fIdentityConstraint2ValueStoreMap
          Values stores associated to specific identity constraints.
protected  java.util.Vector fValueStores
          stores all global Values stores.
 
Constructor Summary
XMLSchemaValidator.ValueStoreCache()
          Default constructor.
 
Method Summary
 void endDocument()
          Check identity constraints.
 void endElement()
           
 XMLSchemaValidator.ValueStoreBase getGlobalValueStoreFor(IdentityConstraint id)
          Returns the global value store associated to the specified IdentityConstraint.
 XMLSchemaValidator.ValueStoreBase getValueStoreFor(Field field)
          Returns the value store associated to the specified field.
 XMLSchemaValidator.ValueStoreBase getValueStoreFor(IdentityConstraint id)
          Returns the value store associated to the specified IdentityConstraint.
 void initValueStoresFor(XSElementDecl eDecl)
          Initializes the value stores for the specified element declaration.
 void startDocument()
          Resets the identity constraint cache.
 void startElement()
           
 java.lang.String toString()
          Returns a string representation of this object.
 void transplant(IdentityConstraint id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fValueStores

protected final java.util.Vector fValueStores
stores all global Values stores.

fIdentityConstraint2ValueStoreMap

protected final java.util.Hashtable fIdentityConstraint2ValueStoreMap
Values stores associated to specific identity constraints.

fGlobalMapStack

protected final java.util.Stack fGlobalMapStack

fGlobalIDConstraintMap

protected final java.util.Hashtable fGlobalIDConstraintMap
Constructor Detail

XMLSchemaValidator.ValueStoreCache

public XMLSchemaValidator.ValueStoreCache()
Default constructor.
Method Detail

startDocument

public void startDocument()
                   throws org.apache.xerces.xni.XNIException
Resets the identity constraint cache.

startElement

public void startElement()

endElement

public void endElement()

initValueStoresFor

public void initValueStoresFor(XSElementDecl eDecl)
                        throws org.apache.xerces.xni.XNIException
Initializes the value stores for the specified element declaration.

getValueStoreFor

public XMLSchemaValidator.ValueStoreBase getValueStoreFor(Field field)
Returns the value store associated to the specified field.

getValueStoreFor

public XMLSchemaValidator.ValueStoreBase getValueStoreFor(IdentityConstraint id)
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)

endDocument

public void endDocument()
                 throws org.apache.xerces.xni.XNIException
Check identity constraints.

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class java.lang.Object


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.