* @param obj the object being referenced.
* @param xml the input XML element holding the reference identifier.
*/
public void createReference(Object obj, XMLFormat.InputElement xml)
throws XMLStreamException {
CharArray value = xml._reader.getAttributeValue(
toCsq(_idURI), toCsq(_idName));
if (value == null)
return;
int i = value.toInt();
if (_idToObject.size() != i)
throw new XMLStreamException("Identifier discontinuity detected "
+ "(expected " + _idToObject.size() + " found " + i + ")");
_idToObject.add(obj);
}