org.apache.xerces.impl.xs
Class XMLSchemaValidator.ValueStoreBase
java.lang.Object
org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreBase
- XMLSchemaValidator
- ValueStore
protected abstract class XMLSchemaValidator.ValueStoreBase
extends java.lang.Object
Value store implementation base class. There are specific subclasses
for handling unique, key, and keyref.
- Andy Clark, IBM
fFieldCount
protected int fFieldCount
fFields
protected Field[] fFields
fLocalValues
protected Object[] fLocalValues
current data
fValues
public final Vector fValues
global data
fValuesCount
protected int fValuesCount
Current data value count.
ValueStoreBase
protected ValueStoreBase(IdentityConstraint identityConstraint)
Constructs a value store for the specified identity constraint.
addValue
public void addValue(Field field,
Object actualValue)
Adds the specified value to the value store.
- addValue in interface ValueStore
field
- The field associated to the value. This reference
is used to ensure that each field only adds a value
once within a selection scope.
checkDuplicateValues
protected void checkDuplicateValues()
contains
public boolean contains()
Returns true if this value store contains the locally scoped value stores
contains
public Object contains(Vector values)
Returns true if this value store contains the specified
values.
endDocument
public void endDocument()
Signals the end of the document. This is where the specific
instances of value stores can verify the integrity of the
identity constraints.
endDocumentFragment
public void endDocumentFragment()
endValueScope
public void endValueScope()
Ends scope for value store.
startValueScope
public void startValueScope()
Start scope for value store.
toString
public String toString()
Returns a string representation of this object.
toString
protected String toString(Object[] values)
Returns a string of the specified values.
Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.