Class OptionTag

All Implemented Interfaces:
Serializable, Cloneable, Node, Tag

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

    • OptionTag

      public OptionTag()
      Create a new option tag.
  • Method Details

    • getIds

      public 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 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 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 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(String value)
      Set the value of the value attribute.
      Parameters:
      value - The new value of the VALUE attribute.
    • getOptionText

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

      public 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.