Top Description Methods
org.apache.xerces.impl.xs.identity

public Interface ValueStore

Known Direct Implementers
org.apache.xerces.impl.xs.XMLSchemaValidator.ValueStoreBase
Imports
org.apache.xerces.xs.ShortList

Interface for storing values associated to an identity constraint. Each value stored corresponds to a field declared for the identity constraint. One instance of an object implementing this interface is created for each identity constraint per element declaration in the instance document to store the information for this identity constraint.

Note

The component performing identity constraint collection and validation is responsible for providing an implementation of this interface. The component is also responsible for performing the necessary checks required by each type of identity constraint.

Author
Andy Clark, IBM
Version
$Id: ValueStore.java 520039 2007-03-19 18:34:38Z mrglavas $

Method Summary

Modifier and TypeMethod and Description
public void
addValue(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.
field
,
boolean
a flag indiciating whether the field may be matched.
mayMatch
,
Object
The value to add.
actualValue
,
short
Type of the value to add.
valueType
,
ShortList
If the value is a list, a list of types for each of the values in the list.
itemValueType
)

Adds the specified value to the value store.

public void
reportError(String
the key of the localized error message
key
,
Object[]
the list of arguments for substitution.
args
)

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

Method Detail

addValueback to summary
public void addValue(Field field, boolean mayMatch, Object actualValue, short valueType, ShortList itemValueType)

Adds the specified value to the value store.

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

mayMatch:boolean

a flag indiciating whether the field may be matched.

actualValue:Object

The value to add.

valueType:short

Type of the value to add.

itemValueType:ShortList

If the value is a list, a list of types for each of the values in the list.

reportErrorback to summary
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:String

the key of the localized error message

args:Object[]

the list of arguments for substitution.