Class StringUtils.CharacterEntity

  • Enclosing class:
    StringUtils

    private static class StringUtils.CharacterEntity
    extends java.lang.Object
    Represents an XML or HTML character entity reference.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      Character reference.
      private java.lang.Integer numericValue
      Numeric character reference.
    • Constructor Summary

      Constructors 
      Constructor Description
      CharacterEntity​(java.lang.Integer numericValue, java.lang.String name)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of the entity.
      java.lang.Integer getNumericValue()
      Returns the numeric value of the entity.
      • 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
        Character reference.
      • numericValue

        private java.lang.Integer numericValue
        Numeric character reference.
    • Constructor Detail

      • CharacterEntity

        public CharacterEntity​(java.lang.Integer numericValue,
                               java.lang.String name)
        Constructor.
        Parameters:
        numericValue - The numeric value of the entity.
        name - the name of the entity.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the entity.
        Returns:
        The name of the entity.
      • getNumericValue

        public java.lang.Integer getNumericValue()
        Returns the numeric value of the entity.
        Returns:
        The numeric value of the entity.