Class Entity


  • public final class Entity
    extends Object
    An SGML character entity.
    • Field Detail

      • name

        public final CharSequence name
        The name of this entity.
      • character

        public final char character
        The Unicode character corresponding to this entity.
    • Constructor Detail

      • Entity

        public Entity​(CharSequence name,
                      char character)
        Creates a new entity with the specified name and character.
        Parameters:
        name - the name of the new entity.
        character - its character value.
    • Method Detail

      • toString

        public String toString()
        Returns the name of this entity.
        Overrides:
        toString in class Object
        Returns:
        the name of this entity.