# Class EntityRef

EntityRef

A representation of an XML `EntityReference` node.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `detach()` | `Content|null` | Detaches the node from its parent `Element` node. |
| `getName()` | `String` | Gets the name of the `EntityReference` node. |
| `getParentElement()` | `Element|null` | Gets the node's parent `Element` node. |
| `getPublicId()` | `String|null` | Gets the public ID of the `EntityReference` node. |
| `getSystemId()` | `String|null` | 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()`

Detaches the node from its parent `Element` node. If the node does not have a parent,
this method has no effect.

#### Return


`Content|null` --- The detached node.

*** ** * ** ***

### `getName()`

Gets the name of the `EntityReference` node.

#### Return


`String` --- The name of the `EntityReference` node.

*** ** * ** ***

### `getParentElement()`

Gets the node's parent `Element` node. If the node does not have a parent, this method
returns `null`.

#### Return


`Element|null` --- The parent `Element` node.

*** ** * ** ***

### `getPublicId()`

Gets the public ID of the `EntityReference` node. If the node does not have a public ID,
this method returns `null`.

#### Return


`String|null` --- 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|null` --- 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.