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.
fFieldCount
protected int fFieldCount
fFields
protected Field[] fFields
fItemValueTypes
public Vector fItemValueTypes
fLocalItemValueTypes
protected org.apache.xerces.xs.ShortList[] fLocalItemValueTypes
fLocalValueTypes
protected short[] fLocalValueTypes
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,
short valueType,
org.apache.xerces.xs.ShortList itemValueType)
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.actualValue
- The value to add.
checkDuplicateValues
protected void checkDuplicateValues()
contains
public boolean contains()
Returns true if this value store contains the locally scoped value stores
contains
public int contains(XMLSchemaValidator.ValueStoreBase vsb)
Returns -1 if this value store contains the specified
values, otherwise the index of the first field in the
key sequence.
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.
toString
protected String toString(Vector values,
int start,
int length)
Returns a string of the specified values.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.