protected abstract class

XMLSchemaValidator.ValueStoreBase

extends Object
implements ValueStore
java.lang.Object
   ↳ org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreBase
Known Direct Subclasses

Class Overview

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

Summary

Fields
protected int fFieldCount
protected Field[] fFields
protected IdentityConstraint fIdentityConstraint Identity constraint.
public Vector fItemValueTypes
protected ShortList[] fLocalItemValueTypes
protected short[] fLocalValueTypes
protected Object[] fLocalValues current data
public XMLSchemaValidator.ShortVector fValueTypes
public final Vector fValues global data
protected int fValuesCount Current data value count.
Protected Constructors
XMLSchemaValidator.ValueStoreBase(IdentityConstraint identityConstraint)
Constructs a value store for the specified identity constraint.
Public Methods
void addValue(Field field, Object actualValue, short valueType, ShortList itemValueType)
Adds the specified value to the value store.
void append(XMLSchemaValidator.ValueStoreBase newVal)
void clear()
boolean contains()
Returns true if this value store contains the locally scoped value stores
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.
void endDocument()
Signals the end of the document.
void endDocumentFragment()
void endValueScope()
Ends scope for value store.
void reportError(String key, Object[] args)
Since the valueStore will have access to an error reporter, this allows it to be called appropriately.
void startValueScope()
Start scope for value store.
String toString()
Returns a string representation of this object.
Protected Methods
void checkDuplicateValues()
String toString(Vector values, int start, int length)
Returns a string of the specified values.
String toString(Object[] values)
Returns a string of the specified values.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.impl.xs.identity.ValueStore

Fields

protected int fFieldCount

protected Field[] fFields

protected IdentityConstraint fIdentityConstraint

Identity constraint.

public Vector fItemValueTypes

protected ShortList[] fLocalItemValueTypes

protected short[] fLocalValueTypes

protected Object[] fLocalValues

current data

public XMLSchemaValidator.ShortVector fValueTypes

public final Vector fValues

global data

protected int fValuesCount

Current data value count.

Protected Constructors

protected XMLSchemaValidator.ValueStoreBase (IdentityConstraint identityConstraint)

Constructs a value store for the specified identity constraint.

Public Methods

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.

public void append (XMLSchemaValidator.ValueStoreBase newVal)

public void clear ()

public boolean contains ()

Returns true if this value store contains the locally scoped value stores

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.

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.

public void endDocumentFragment ()

public void endValueScope ()

Ends scope for value store.

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

Since the valueStore will have access to an error reporter, this allows it to be called appropriately.

Parameters
key the key of the localized error message
args the list of arguments for substitution.

public void startValueScope ()

Start scope for value store.

public String toString ()

Returns a string representation of this object.

Protected Methods

protected void checkDuplicateValues ()

protected String toString (Vector values, int start, int length)

Returns a string of the specified values.

protected String toString (Object[] values)

Returns a string of the specified values.