Package org.w3c.tidy

Class Entity


  • public class Entity
    extends java.lang.Object
    HTML ISO entity.
    Version:
    $Revision: 487 $ ($Author: fgiust $)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private short code
      entity code.
      private java.lang.String name
      entity name.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entity​(java.lang.String name, int code)
      instantiates a new entity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short getCode()
      Getter for code.
      java.lang.String getName()
      Getter for name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
        entity name.
      • code

        private short code
        entity code.
    • Constructor Detail

      • Entity

        public Entity​(java.lang.String name,
                      int code)
        instantiates a new entity.
        Parameters:
        name - entity name
        code - entity code (will be casted to short)
    • Method Detail

      • getCode

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

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