org.apache.xerces.impl.xs

Class XMLSchemaValidator.ValueStoreBase

protected abstract class XMLSchemaValidator.ValueStoreBase extends Object implements ValueStore

Value store implementation base class. There are specific subclasses for handling unique, key, and keyref.

Author: Andy Clark, IBM

Field Summary
protected intfFieldCount
protected Field[]fFields
protected IdentityConstraintfIdentityConstraint
Identity constraint.
VectorfItemValueTypes
protected ShortList[]fLocalItemValueTypes
protected Object[]fLocalValues
current data
protected short[]fLocalValueTypes
VectorfValues
global data
protected intfValuesCount
Current data value count.
XMLSchemaValidator.ShortVectorfValueTypes
Constructor Summary
protected ValueStoreBase(IdentityConstraint identityConstraint)
Constructs a value store for the specified identity constraint.
Method Summary
voidaddValue(Field field, Object actualValue, short valueType, ShortList itemValueType)
Adds the specified value to the value store.
voidappend(XMLSchemaValidator.ValueStoreBase newVal)
protected voidcheckDuplicateValues()
Check whether this set is contained in the value store.
voidclear()
booleancontains()
Returns true if this value store contains the locally scoped value stores
intcontains(XMLSchemaValidator.ValueStoreBase vsb)
Returns -1 if this value store contains the specified values, otherwise the index of the first field in the key sequence.
voidendDocument()
Signals the end of the document.
voidendDocumentFragment()
voidendValueScope()
Ends scope for value store.
voidreportError(String key, Object[] args)
voidstartValueScope()
Start scope for value store.
protected StringtoString(Object[] values)
Returns a string of the specified values.
protected StringtoString(Vector values, int start, int length)
Returns a string of the specified values.
StringtoString()
Returns a string representation of this object.

Field Detail

fFieldCount

protected int fFieldCount

fFields

protected Field[] fFields

fIdentityConstraint

protected IdentityConstraint fIdentityConstraint
Identity constraint.

fItemValueTypes

public Vector fItemValueTypes

fLocalItemValueTypes

protected ShortList[] fLocalItemValueTypes

fLocalValues

protected Object[] fLocalValues
current data

fLocalValueTypes

protected short[] fLocalValueTypes

fValues

public final Vector fValues
global data

fValuesCount

protected int fValuesCount
Current data value count.

fValueTypes

public XMLSchemaValidator.ShortVector fValueTypes

Constructor Detail

ValueStoreBase

protected ValueStoreBase(IdentityConstraint identityConstraint)
Constructs a value store for the specified identity constraint.

Method Detail

addValue

public void addValue(Field field, Object actualValue, short valueType, ShortList itemValueType)
Adds the specified value to the value store.

Parameters: 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.

append

public void append(XMLSchemaValidator.ValueStoreBase newVal)

checkDuplicateValues

protected void checkDuplicateValues()
Check whether this set is contained in the value store. *

clear

public void clear()

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.

reportError

public void reportError(String key, Object[] args)

startValueScope

public void startValueScope()
Start scope for value store.

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.

toString

public String toString()
Returns a string representation of this object.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.