Package com.kohlschutter.boilerpipe.sax
Class TagActionMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,TagAction>
- Direct Known Subclasses:
DefaultTagActionMap
Base class for definition a set of
TagActions that are to be used for the HTML parsing
process.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTagAction(String tag, TagAction action) Adds a particularTagActionfor a given tag.protected voidsetTagAction(String tag, TagAction action) Sets a particularTagActionfor a given tag.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
TagActionMap
public TagActionMap()
-
-
Method Details
-
setTagAction
Sets a particularTagActionfor 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- TheTagAction
-
addTagAction
Adds a particularTagActionfor a given tag. If a TagAction already exists for that tag, a chained action, consisting of the previous and the newTagActionis created.- Parameters:
tag- The tag (will be stored internally 1. as it is, 2. lower-case, 3. upper-case)action- TheTagAction
-