org.w3c.tidy

Class Entity


public class Entity
extends java.lang.Object

HTML ISO entity.
Version:
$Revision: 487 $ ($Author: fgiust $)
Authors:
Dave Raggett dsr@w3.org
Andy Quick ac.quick@sympatico.ca (translation to Java)
Fabrizio Giustina

Constructor Summary

Entity(String name, int code)
instantiates a new entity.

Method Summary

short
getCode()
Getter for code.
String
getName()
Getter for name.

Constructor Details

Entity

public Entity(String name,
              int code)
instantiates a new entity.
Parameters:
name - entity name
code - entity code (will be casted to short)

Method Details

getCode

public short getCode()
Getter for code.
Returns:
Returns the code.

getName

public String getName()
Getter for name.
Returns:
Returns the name.