|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.impl.xs.XMLSchemaValidatorBase.ValueStoreBase
Value store implementation base class. There are specific subclasses for handling unique, key, and keyref.
Field Summary | |
protected java.lang.String |
fElementName
|
protected int |
fFieldCount
|
protected Field[] |
fFields
|
protected boolean |
fHasValue
|
protected IdentityConstraint |
fIdentityConstraint
Identity constraint. |
java.util.Vector |
fItemValueTypes
|
protected org.apache.xerces.xs.ShortList[] |
fLocalItemValueTypes
|
protected java.lang.Object[] |
fLocalValues
current data |
protected short[] |
fLocalValueTypes
|
java.util.Vector |
fValues
global data |
protected int |
fValuesCount
Current data value count. |
XMLSchemaValidatorBase.ShortVector |
fValueTypes
|
Constructor Summary | |
protected |
XMLSchemaValidatorBase.ValueStoreBase(IdentityConstraint identityConstraint,
java.lang.String elementName)
Constructs a value store for the specified identity constraint. |
Method Summary | |
void |
addValue(Field field,
boolean mayMatch,
java.lang.Object actualValue,
short valueType,
org.apache.xerces.xs.ShortList itemValueType)
Adds the specified value to the value store. |
void |
append(XMLSchemaValidatorBase.ValueStoreBase newVal)
|
protected void |
checkDuplicateValues()
|
void |
clear()
|
boolean |
contains()
Returns true if this value store contains the locally scoped value stores |
int |
contains(XMLSchemaValidatorBase.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. |
java.lang.String |
getElementName()
Returns the name of the element which holds the identity constraint that is stored in this value store |
void |
reportError(java.lang.String key,
java.lang.Object[] args)
Since the valueStore will have access to an error reporter, this allows it to be called appropriately. |
void |
setElementName(java.lang.String elementName)
Sets the name of the element which holds the identity constraint that is stored in this value store |
void |
startValueScope()
Start scope for value store. |
java.lang.String |
toString()
Returns a string representation of this object. |
protected java.lang.String |
toString(java.lang.Object[] values)
Returns a string of the specified values. |
protected java.lang.String |
toString(java.util.Vector values,
int start,
int length)
Returns a string of the specified values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected IdentityConstraint fIdentityConstraint
protected int fFieldCount
protected Field[] fFields
protected java.lang.String fElementName
protected java.lang.Object[] fLocalValues
protected short[] fLocalValueTypes
protected org.apache.xerces.xs.ShortList[] fLocalItemValueTypes
protected int fValuesCount
protected boolean fHasValue
public final java.util.Vector fValues
public XMLSchemaValidatorBase.ShortVector fValueTypes
public java.util.Vector fItemValueTypes
Constructor Detail |
protected XMLSchemaValidatorBase.ValueStoreBase(IdentityConstraint identityConstraint, java.lang.String elementName)
Method Detail |
public void clear()
public void append(XMLSchemaValidatorBase.ValueStoreBase newVal)
public void startValueScope()
public void endValueScope()
public void endDocumentFragment()
public void endDocument()
public void reportError(java.lang.String key, java.lang.Object[] args)
ValueStore
reportError
in interface ValueStore
key
- the key of the localized error messageargs
- the list of arguments for substitution.public void addValue(Field field, boolean mayMatch, java.lang.Object actualValue, short valueType, org.apache.xerces.xs.ShortList itemValueType)
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.mayMatch
- a flag indiciating whether the field may be matched.actualValue
- The value to add.valueType
- Type of the value to add.itemValueType
- If the value is a list, a list of types for each of the values in the list.public void setElementName(java.lang.String elementName)
setElementName
in interface ValueStore
public java.lang.String getElementName()
getElementName
in interface ValueStore
public boolean contains()
public int contains(XMLSchemaValidatorBase.ValueStoreBase vsb)
protected void checkDuplicateValues()
protected java.lang.String toString(java.lang.Object[] values)
protected java.lang.String toString(java.util.Vector values, int start, int length)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |