Main Page Class Hierarchy Compound List File List Compound Members
XMLRefInfo Class Reference
List of all members.
|
Public Methods |
bool | getDeclared () const |
const XMLCh * | getRefName () const |
bool | getUsed () const |
void | setDeclared (const bool newValue) |
void | setUsed (const bool newValue) |
|
| XMLRefInfo (const XMLCh *const refName, const bool fDeclared=false, const bool fUsed=false) |
|
Detailed Description
This class provides a simple means to track ID Ref usage. Since id/idref semamatics are part of XML 1.0, any validator will likely to be able to track them. Instances of this class represent a reference and two markers, one for its being declared and another for its being used. When the document is done, one can look at each instance and, if used but not declared, its an error.
The getKey() method allows it to support keyed collection semantics. It returns the referenced name, so these objects will be stored via the hash of the name. This name will either be a standard QName if namespaces are not enabled/supported by the validator, or it will be in the form {url}name if namespace processing is enabled.
The documentation for this class was generated from the following file:
Generated on Tue Nov 19 09:36:48 2002 by
1.3-rc1