Table 15-15 summarizes the methods of available through EntityRef
interface.
Table 15-15 Summary of EntityRef Methods; Dom Package
Function | Summary |
---|---|
EntityRef
|
Constructor. |
getNotationName
|
Get entity's notation. |
getPublicId
|
Get entity's public ID. |
getSystemId
|
Get entity's system ID. |
getType
|
Get entity's type. |
~EntityRef
|
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();