Class IDValue


public class IDValue
extends java.lang.Object

Stores a value associated with a particular field of an identity constraint that has successfully matched some string in an instance document. This class also stores the DatatypeValidator associated with the element or attribute whose content is the string in question; this must be done here because type determination is dynamic.

This class also makes it its business to provide functionality to determine whether two instances are duplicates.

Neil Graham, IBM

Field Summary
protected  DatatypeValidator fValidator
protected  java.lang.String fValue
Constructor Summary
IDValue(java.lang.String value, DatatypeValidator val)
Method Summary
 boolean isDuplicateOf(IDValue value)
          Returns whether the supplied IDValue is a duplicate of this IDValue.
 java.lang.String toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


protected java.lang.String fValue


protected DatatypeValidator fValidator
Constructor Detail


public IDValue(java.lang.String value,
               DatatypeValidator val)
Method Detail


public boolean isDuplicateOf(IDValue value)
Returns whether the supplied IDValue is a duplicate of this IDValue. It is a duplicate only if either of these conditions are true: - The Datatypes are the same or related by derivation and the values are in the same valuespace. - The datatypes are unrelated and the values are Stringwise identical.
value - The value to compare. once within a selection scope.


public java.lang.String toString()
toString in class java.lang.Object

Copyright 1999-2001 Apache XML Project. All Rights Reserved.