it.unimi.dsi.parser
Class Entity

java.lang.Object
  extended by it.unimi.dsi.parser.Entity

public final class Entity
extends java.lang.Object

An SGML character entity.


Field Summary
 char character
          The Unicode character corresponding to this entity.
 java.lang.CharSequence name
          The name of this entity.
 
Constructor Summary
Entity(java.lang.CharSequence name, char character)
          Creates a new entity with the specified name and character.
 
Method Summary
 java.lang.String toString()
          Returns the name of this entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.CharSequence name
The name of this entity.


character

public final char character
The Unicode character corresponding to this entity.

Constructor Detail

Entity

public Entity(java.lang.CharSequence name,
              char character)
Creates a new entity with the specified name and character.

Parameters:
name - the name of the new entity.
character - its character value.
Method Detail

toString

public java.lang.String toString()
Returns the name of this entity.

Overrides:
toString in class java.lang.Object
Returns:
the name of this entity.