public class Entity
extends java.lang.Object
implements java.io.Serializable
Entity class represents the SGML entity. Refers to
"ISO 8879 -- Standard Generalized Markup Language (SGML)".| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.lang.String |
name
The name of the entity.
|
protected java.lang.String |
text
The text (content) of the entity.
|
| コンストラクタと説明 |
|---|
Entity()
Constructs an empty entity.
|
Entity(java.lang.String name,
java.lang.String text)
Constructs an entity with the specified name and text.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.String |
getName()
Returns the name of this entity.
|
java.lang.String |
getText()
Returns the text of this entity.
|
void |
setName(java.lang.String name)
Sets the name of this entity to be the specified name.
|
void |
setText(java.lang.String text)
Sets the text of this entity to be the specified text.
|
protected java.lang.String name
protected java.lang.String text
public Entity()
public Entity(java.lang.String name,
java.lang.String text)
name - the specified name.text - the specified text.public java.lang.String getName()
public void setName(java.lang.String name)
name - the specified name.public java.lang.String getText()
public void setText(java.lang.String text)
text - the specified text.