org.enhydra.apache.xerces.validators.common
Class XMLValidator.ValueStoreCache

java.lang.Object
  |
  +--org.enhydra.apache.xerces.validators.common.XMLValidator.ValueStoreCache
Enclosing class:
XMLValidator

protected class XMLValidator.ValueStoreCache
extends Object

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

Author:
Andy Clark, IBM

Field Summary
protected  Hashtable fGlobalIDConstraintMap
           
protected  Stack fGlobalMapStack
           
protected  Hashtable fIdentityConstraint2ValueStoreMap
          Values stores associated to specific identity constraints.
protected  Vector fValueStores
          stores all global Values stores.
 
Constructor Summary
XMLValidator.ValueStoreCache()
          Default constructor.
 
Method Summary
 void endDocument()
          Check identity constraints.
 void endElement()
           
 XMLValidator.ValueStoreBase getGlobalValueStoreFor(IdentityConstraint id)
          Returns the global value store associated to the specified IdentityConstraint.
 XMLValidator.ValueStoreBase getValueStoreFor(Field field)
          Returns the value store associated to the specified field.
 XMLValidator.ValueStoreBase getValueStoreFor(IdentityConstraint id)
          Returns the value store associated to the specified IdentityConstraint.
 void initValueStoresFor(XMLElementDecl eDecl)
          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)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fValueStores

protected final Vector fValueStores
stores all global Values stores.

fIdentityConstraint2ValueStoreMap

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

fGlobalMapStack

protected final Stack fGlobalMapStack

fGlobalIDConstraintMap

protected final Hashtable fGlobalIDConstraintMap
Constructor Detail

XMLValidator.ValueStoreCache

public XMLValidator.ValueStoreCache()
Default constructor.
Method Detail

startDocument

public void startDocument()
                   throws Exception
Resets the identity constraint cache.

startElement

public void startElement()

endElement

public void endElement()

initValueStoresFor

public void initValueStoresFor(XMLElementDecl eDecl)
                        throws Exception
Initializes the value stores for the specified element declaration.

getValueStoreFor

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

getValueStoreFor

public XMLValidator.ValueStoreBase getValueStoreFor(IdentityConstraint id)
Returns the value store associated to the specified IdentityConstraint.

getGlobalValueStoreFor

public XMLValidator.ValueStoreBase getGlobalValueStoreFor(IdentityConstraint id)
Returns the global value store associated to the specified IdentityConstraint.

transplant

public void transplant(IdentityConstraint id)
                throws Exception

endDocument

public void endDocument()
                 throws Exception
Check identity constraints.

toString

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


Copyright © 1999 The Apache Software Foundation. All Rights reserved.