Class OptionTag

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

    public class OptionTag
    extends CompositeTag
    An option tag within a form.
    See Also:
    Serialized Form
    • Constructor Detail

      • OptionTag

        public OptionTag()
        Create a new option 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.
      • getValue

        public java.lang.String getValue()
        Get the VALUE attribute, if any.
        Returns:
        The value of the VALUE attribute, or null if the attribute doesn't exist.
      • setValue

        public void setValue​(java.lang.String value)
        Set the value of the value attribute.
        Parameters:
        value - The new value of the VALUE attribute.
      • getOptionText

        public java.lang.String getOptionText()
        Get the text of this option.
        Returns:
        The textual contents of this OPTION tag.
      • toString

        public java.lang.String toString()
        Return a string representation of this node suitable for debugging.
        Specified by:
        toString in interface Node
        Overrides:
        toString in class CompositeTag
        Returns:
        The value and text of this tag in a string.