A representation of an XML Entity
node.
Methods
Method | Return type | Brief description |
---|---|---|
detach() | Content | Detaches the node from its parent Element node. |
get | String | Gets the name of the Entity node. |
get | Element | Gets the node's parent Element node. |
get | String | Gets the public ID of the Entity node. |
get | String | Gets the system ID of the Entity node. |
get | String | Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document. |
set | Entity | Sets the name of the Entity node. |
set | Entity | Sets the public ID of the Entity node. |
set | Entity | Sets the system ID of the Entity node. |
Detailed documentation
detach()
getName()
Gets the name of the Entity
node.
Return
String
— the name of the Entity
node
getParentElement()
getPublicId()
Gets the public ID of the Entity
node. If the node does not have a public ID,
this method returns null
.
Return
String
— the public ID of the Entity
node, or null
if it has none
getSystemId()
Gets the system ID of the Entity
node. If the node does not have a system ID,
this method returns null
.
Return
String
— the system ID of the Entity
node, or null
if it has none
getValue()
Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document.
Return
String
— the text value of all nodes that are direct or indirect children of the node
setName(name)
Sets the name of the Entity
node.
Parameters
Name | Type | Description |
---|---|---|
name | String | the name to set |
Return
Entity
— the Entity
node, for chaining
setPublicId(id)
Sets the public ID of the Entity
node.
Parameters
Name | Type | Description |
---|---|---|
id | String | the public ID to set |
Return
Entity
— the Entity
node, for chaining
setSystemId(id)
Sets the system ID of the Entity
node.
Parameters
Name | Type | Description |
---|---|---|
id | String | the system ID to set |
Return
Entity
— the Entity
node, for chaining