Class HtmlElementTables.TextContentModel

  • Enclosing class:
    HtmlElementTables

    public static final class HtmlElementTables.TextContentModel
    extends Object
    For each element, the kinds of character data it can contain.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextContentModel​(byte[] contentModelBitsPerElement)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canContainComment​(int elementIndex)
      Whether <!--...-> parses to a comment when it appears in the identified element.
      boolean canContainEntities​(int elementIndex)
      Whether &amp; parses to an HTML character reference when it appears in the identified element.
      boolean canContainPlainText​(int elementIndex)
      Whether parsing can produce an element with the given index that contains a text node that has human readable text instead of script or style source code.
      boolean canContainText​(int elementIndex)
      Whether parsing can produce an element with the given index that contains a text node.
      boolean isAllowed​(int elementIndex, HtmlElementTables.TextContentModelBit modelBit)
      True if the given model bit is allowed within the element.
      boolean isRaw​(int elementIndex)
      True iff things that look like tags when they appear lexically within the element do in fact, parse to tags.
      boolean isUnended​(int elementIndex)
      True if parsing the element always proceeds to the end of input.
    • Constructor Detail

      • TextContentModel

        public TextContentModel​(byte[] contentModelBitsPerElement)
    • Method Detail

      • canContainComment

        public boolean canContainComment​(int elementIndex)
        Whether <!--...-> parses to a comment when it appears in the identified element.
      • canContainEntities

        public boolean canContainEntities​(int elementIndex)
        Whether &amp; parses to an HTML character reference when it appears in the identified element.
      • canContainText

        public boolean canContainText​(int elementIndex)
        Whether parsing can produce an element with the given index that contains a text node.
      • canContainPlainText

        public boolean canContainPlainText​(int elementIndex)
        Whether parsing can produce an element with the given index that contains a text node that has human readable text instead of script or style source code.
      • isRaw

        public boolean isRaw​(int elementIndex)
        True iff things that look like tags when they appear lexically within the element do in fact, parse to tags.
      • isUnended

        public boolean isUnended​(int elementIndex)
        True if parsing the element always proceeds to the end of input.