Class TagActionMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,TagAction>
Direct Known Subclasses:
DefaultTagActionMap

public abstract class TagActionMap extends HashMap<String,TagAction>
Base class for definition a set of TagActions that are to be used for the HTML parsing process.
See Also:
  • Field Details

  • Constructor Details

    • TagActionMap

      public TagActionMap()
  • Method Details

    • setTagAction

      protected void setTagAction(String tag, TagAction action)
      Sets a particular TagAction for a given tag. Any existing TagAction for that tag will be removed and overwritten.
      Parameters:
      tag - The tag (will be stored internally 1. as it is, 2. lower-case, 3. upper-case)
      action - The TagAction
    • addTagAction

      protected void addTagAction(String tag, TagAction action)
      Adds a particular TagAction for a given tag. If a TagAction already exists for that tag, a chained action, consisting of the previous and the new TagAction is created.
      Parameters:
      tag - The tag (will be stored internally 1. as it is, 2. lower-case, 3. upper-case)
      action - The TagAction