Packagesystem.text.html
Classpublic class Entity
InheritanceEntity Inheritance Object

The Entity class.



Public Properties
 PropertyDefined By
  char : String
The String char value of the entity.
Entity
  name : String
The String name value of the entity.
Entity
  number : int
The Number value of the entity.
Entity
Public Methods
 MethodDefined By
  
Entity(char:String, name:String, number:int)
Creates a new Entity instance.
Entity
  
toNumber():String
Returns the 'entity number' string representation of the entity.
Entity
  
toString():String
Returns the 'entity string' representation of the entity.
Entity
  
valueOf():String
Returns the character value of the entity.
Entity
Property Detail
charproperty
public var char:String

The String char value of the entity.

nameproperty 
public var name:String

The String name value of the entity.

numberproperty 
public var number:int

The Number value of the entity.

Constructor Detail
Entity()Constructor
public function Entity(char:String, name:String, number:int)

Creates a new Entity instance.

Parameters
char:String — The entity character value.
 
name:String — The entity name of the specified character.
 
number:int — The entity number representation of the specified character.
Method Detail
toNumber()method
public function toNumber():String

Returns the 'entity number' string representation of the entity.

Returns
String — the 'entity number' string representation of the entity.
toString()method 
public function toString():String

Returns the 'entity string' representation of the entity.

Returns
String — the 'entity string' representation of the entity.
valueOf()method 
public function valueOf():String

Returns the character value of the entity.

Returns
String — the character value of the entity.