Class SpecialEntity


  • public class SpecialEntity
    extends java.lang.Object
    • Constructor Detail

      • SpecialEntity

        public SpecialEntity​(java.lang.String key,
                             int intCode,
                             java.lang.String htmlString,
                             boolean htmlSpecialEntity)
        Parameters:
        key - value between & and the ';' example 'amp' for '&'
        intCode -
        htmlString -
        htmlSpecialEntity - entity is affected by translateSpecialEntities property setting.
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Returns:
        the key
      • intValue

        public int intValue()
        Returns:
        the intCode
      • getHtmlString

        public java.lang.String getHtmlString()
        Returns:
        the domString
      • getEscapedXmlString

        public java.lang.String getEscapedXmlString()
      • getEscaped

        public java.lang.String getEscaped​(boolean htmlEscaped)
      • isHtmlSpecialEntity

        public boolean isHtmlSpecialEntity()
        Returns:
        the translateSpecialEntities
      • charValue

        public char charValue()
        Returns:
        intValue() cast to an char
      • getDecimalNCR

        public java.lang.String getDecimalNCR()
        Returns:
        Numeric Character Reference in decimal format
      • getHexNCR

        public java.lang.String getHexNCR()
        Returns:
        Numeric Character Reference in hex format
      • getEscapedValue

        public java.lang.String getEscapedValue()
        Returns:
        Escaped value of the entity