|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.validators.common.XMLValidator.ValueStoreBase
Value store implementation base class. There are specific subclasses for handling unique, key, and keyref.
Field Summary | |
---|---|
protected IdentityConstraint |
fIdentityConstraint
Identity constraint. |
protected org.apache.xerces.validators.common.XMLValidator.OrderedHashtable |
fValues
Current data values. |
protected int |
fValuesCount
Current data value count. |
protected java.util.Vector |
fValueTuples
Data value tuples. |
protected IDValue |
NOT_AN_IDVALUE
Not a value (Unicode: #FFFF). |
Constructor Summary | |
---|---|
protected |
XMLValidator.ValueStoreBase(IdentityConstraint identityConstraint)
Constructs a value store for the specified identity constraint. |
Method Summary | |
---|---|
void |
addValue(Field field,
IDValue value)
Adds the specified value to the value store. |
void |
append(XMLValidator.ValueStoreBase newVal)
|
boolean |
contains(org.apache.xerces.validators.common.XMLValidator.OrderedHashtable tuple)
Returns true if this value store contains the specified values tuple. |
void |
destroy()
|
protected void |
duplicateValue(org.apache.xerces.validators.common.XMLValidator.OrderedHashtable tuple)
Called when a duplicate value is added. |
void |
endDocument()
Signals the end of the document. |
void |
endDocumentFragment()
|
void |
endValueScope()
Ends scope for value store. |
void |
reportNilError(IdentityConstraint id)
|
void |
startValueScope()
Start scope for value store. |
java.lang.String |
toString()
Returns a string representation of this object. |
protected java.lang.String |
toString(org.apache.xerces.validators.common.XMLValidator.OrderedHashtable tuple)
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 IDValue NOT_AN_IDVALUE
protected IdentityConstraint fIdentityConstraint
protected final org.apache.xerces.validators.common.XMLValidator.OrderedHashtable fValues
protected int fValuesCount
protected final java.util.Vector fValueTuples
Constructor Detail |
protected XMLValidator.ValueStoreBase(IdentityConstraint identityConstraint)
Method Detail |
public void destroy()
public void append(XMLValidator.ValueStoreBase newVal)
public void startValueScope() throws java.lang.Exception
public void endValueScope() throws java.lang.Exception
public void endDocumentFragment() throws java.lang.Exception
public void endDocument() throws java.lang.Exception
public void reportNilError(IdentityConstraint id) throws java.lang.Exception
reportNilError
in interface ValueStore
public void addValue(Field field, IDValue value) throws java.lang.Exception
addValue
in interface ValueStore
value
- The value to add.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.public boolean contains(org.apache.xerces.validators.common.XMLValidator.OrderedHashtable tuple)
protected void duplicateValue(org.apache.xerces.validators.common.XMLValidator.OrderedHashtable tuple) throws java.lang.Exception
tuple
- The duplicate value tuple.protected java.lang.String toString(org.apache.xerces.validators.common.XMLValidator.OrderedHashtable tuple)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |