A representation of an XML EntityReference
node.
Methods
Method | Return type | Brief description |
---|---|---|
detach() | Content | Detaches the node from its parent Element node. |
getName() | String | Gets the name of the EntityReference node. |
getParentElement() | Element | Gets the node's parent Element node. |
getPublicId() | String | Gets the public ID of the EntityReference node. |
getSystemId() | String | Gets the system ID of the EntityReference node. |
getValue() | 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. |
setName(name) | EntityRef | Sets the name of the EntityReference node. |
setPublicId(id) | EntityRef | Sets the public ID of the EntityReference node. |
setSystemId(id) | EntityRef | Sets the system ID of the EntityReference node. |
Detailed documentation
detach()
getName()
Gets the name of the EntityReference
node.
Return
String
— the name of the EntityReference
node
getParentElement()
getPublicId()
Gets the public ID of the EntityReference
node. If the node does not have a public ID,
this method returns null
.
Return
String
— the public ID of the EntityReference
node, or null
if it has none
getSystemId()
Gets the system ID of the EntityReference
node. If the node does not have a system ID,
this method returns null
.
Return
String
— the system ID of the EntityReference
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 EntityReference
node.
Parameters
Name | Type | Description |
---|---|---|
name | String | the name to set |
Return
EntityRef
— the EntityReference
node, for chaining
setPublicId(id)
Sets the public ID of the EntityReference
node.
Parameters
Name | Type | Description |
---|---|---|
id | String | the public ID to set |
Return
EntityRef
— the EntityReference
node, for chaining
setSystemId(id)
Sets the system ID of the EntityReference
node.
Parameters
Name | Type | Description |
---|---|---|
id | String | the system ID to set |
Return
EntityRef
— the EntityReference
node, for chaining