Table 2-15 summarizes the methods available through EntityRef interface.
Table 2-15 Summary of EntityRef Methods; Dom Package
| Function | Summary | 
|---|---|
| 
 Constructor.  | 
|
| 
 Get entity's notation.  | 
|
| 
 Get entity's public ID.  | 
|
| 
 Get entity's system ID.  | 
|
| 
 Get entity's type.  | 
|
| 
 Public default destructor.  | 
Class constructor.
| Syntax | Description | 
|---|---|
EntityRef( const NodeRef< Node>& node_ref, Node* nptr);  | 
Used to create references to a given entity node after a call to create Entity. | 
EntityRef( const EntityRef< Node>& nref);  | 
Copy constructor. | 
| Parameter | Description | 
|---|---|
node_ref  | 
reference to provide the context | 
nptr  | 
referenced node | 
(EntityRef) Node reference object
For unparsed entities, returns the name of its notation (in the data encoding). For parsed entities and other node types, returns NULL.
oratext* getNotationName() const;
(oratext*) entity's notation
Returns an entity's public identifier (in the data encoding).
oratext* getPublicId() const;
(oratext*) entity's public identifier
Returns an entity's system identifier (in the data encoding).
oratext* getSystemId() const;
(oratext*) entity's system identifier
Returns a boolean for an entity describing whether it is general (TRUE) or parameter (FALSE).
boolean getType() const;
(boolean) TRUE for general entity, FALSE for parameter entity
This is the default destructor.
~EntityRef();