Class BodyTag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Node, Tag

    public class BodyTag
    extends CompositeTag
    A Body Tag. Primarily a container for child tags.
    See Also:
    Serialized Form
    • Constructor Detail

      • BodyTag

        public BodyTag()
        Create a new body tag.
    • Method Detail

      • getIds

        public java.lang.String[] getIds()
        Return the set of names handled by this tag.
        Specified by:
        getIds in interface Tag
        Overrides:
        getIds in class TagNode
        Returns:
        The names to be matched that create tags of this type.
      • getEnders

        public java.lang.String[] getEnders()
        Return the set of tag names that cause this tag to finish.
        Specified by:
        getEnders in interface Tag
        Overrides:
        getEnders in class TagNode
        Returns:
        The names of following tags that stop further scanning.
      • getEndTagEnders

        public java.lang.String[] getEndTagEnders()
        Return the set of end tag names that cause this tag to finish.
        Specified by:
        getEndTagEnders in interface Tag
        Overrides:
        getEndTagEnders in class TagNode
        Returns:
        The names of following end tags that stop further scanning.
      • getBody

        public java.lang.String getBody()
        Returns the textual contents of this BODY tag. Equivalent to toPlainTextString().
        Returns:
        The 'browser' text in this tag.