Package org.w3c.tidy
Class EntityTable
java.lang.Object
org.w3c.tidy.EntityTable
Entity hash table.
- Version:
- $Revision: 622 $ ($Author: fgiust $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Method Summary
Modifier and TypeMethodDescriptionint
entityCode
(String name) Returns the entity code for the given entity name.entityName
(short code) Returns the entity name for the given entity code.static EntityTable
Returns the default entity table instance.Lookup an entity by its name.
-
Method Details
-
lookup
Lookup an entity by its name.- Parameters:
name
- entity name- Returns:
- entity
-
entityCode
Returns the entity code for the given entity name.- Parameters:
name
- entity name- Returns:
- entity code or 0 for unknown entity names
-
entityName
Returns the entity name for the given entity code.- Parameters:
code
- entity code- Returns:
- entity name or null for unknown entity codes
-
getDefaultEntityTable
Returns the default entity table instance.- Returns:
- entity table instance
-