org.merlotxml.util.xml.xerces
Class SchemaIdentityConstraintValidator.DynamicValueStore

java.lang.Object
  extended byorg.merlotxml.util.xml.xerces.SchemaIdentityConstraintValidator.DynamicValueStore
Enclosing class:
SchemaIdentityConstraintValidator

public class SchemaIdentityConstraintValidator.DynamicValueStore
extends java.lang.Object

Similar to org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreCache except that the Xerces ValueStores are not dynamic - they were intended to validate only once during parsing.

These ValueStores are used for identity constraints - to keep track of the values of Keys, KeyRefs, and Uniques. It allows errors about duplicate IDs to be obtained. It also gives the possible values that may be inserted into a KeyRef field.


Field Summary
 IDValue EMPTY_IDVALUE
           
 IDValue NOT_AN_IDVALUE
          Not a value (Unicode: #FFFF).
 
Constructor Summary
SchemaIdentityConstraintValidator.DynamicValueStore(org.apache.xerces.impl.xs.identity.IdentityConstraint constraint)
           
 
Method Summary
 java.lang.String getErrorMessage(FieldNode node)
           
 void setValue(org.apache.xerces.impl.xs.identity.Field field, FieldNode node, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_AN_IDVALUE

public final IDValue NOT_AN_IDVALUE
Not a value (Unicode: #FFFF).


EMPTY_IDVALUE

public final IDValue EMPTY_IDVALUE
Constructor Detail

SchemaIdentityConstraintValidator.DynamicValueStore

public SchemaIdentityConstraintValidator.DynamicValueStore(org.apache.xerces.impl.xs.identity.IdentityConstraint constraint)
Method Detail

setValue

public void setValue(org.apache.xerces.impl.xs.identity.Field field,
                     FieldNode node,
                     java.lang.String value)

getErrorMessage

public java.lang.String getErrorMessage(FieldNode node)