Package org.w3c.tidy
Class Entity
- java.lang.Object
-
- org.w3c.tidy.Entity
-
public class Entity extends Object
HTML ISO entity.- Version:
- $Revision$ ($Author$)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetCode()Getter forcode.StringgetName()Getter forname.
-
-
-
Constructor Detail
-
Entity
public Entity(String name, int code)
instantiates a new entity.- Parameters:
name- entity namecode- entity code (will be casted to short)
-
-
Method Detail
-
getCode
public short getCode()
Getter forcode.- Returns:
- Returns the code.
-
getName
public String getName()
Getter forname.- Returns:
- Returns the name.
-
-