public class LabelPattern
extends java.util.Hashtable<java.lang.String,java.util.ArrayList<java.lang.String>>
ArrayList
). A parent LabelPattern can be set.Modifier and Type | Field and Description |
---|---|
protected LabelPattern |
parent
The parent of this LabelPattern.
|
Constructor and Description |
---|
LabelPattern() |
LabelPattern(LabelPattern parent) |
Modifier and Type | Method and Description |
---|---|
void |
addLabelPattern(java.lang.String type,
java.lang.String pattern) |
java.util.ArrayList<java.lang.String> |
getDefaultValue()
This method is called "...Value" to be in line with the other methods
|
LabelPattern |
getParent()
Get the parent LabelPattern
|
java.util.ArrayList<java.lang.String> |
getValue(java.lang.String key)
Gets an object for a desired label from this LabelPattern or one of it's
parents.
|
boolean |
isDefaultValue(java.lang.String key)
Checks whether this pattern is customized or the default value.
|
void |
removeLabelPattern(java.lang.String type)
Remove a label pattern from the LabelPattern.
|
void |
removeLabelPattern(java.lang.String type,
boolean sure) |
void |
setDefaultValue(java.lang.String labelPattern)
Sets the DEFAULT PATTERN for this label pattern
|
void |
setParent(LabelPattern parent)
Sets the parent LabelPattern.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
protected LabelPattern parent
public LabelPattern()
public LabelPattern(LabelPattern parent)
public void setParent(LabelPattern parent)
parent
- a String
public LabelPattern getParent()
public void addLabelPattern(java.lang.String type, java.lang.String pattern)
public void removeLabelPattern(java.lang.String type)
type
- a String
public void removeLabelPattern(java.lang.String type, boolean sure)
public final java.util.ArrayList<java.lang.String> getValue(java.lang.String key)
get
method of Hashtable
.
If this fails, we try the default.key
- a String
public final boolean isDefaultValue(java.lang.String key)
public java.util.ArrayList<java.lang.String> getDefaultValue()
public void setDefaultValue(java.lang.String labelPattern)
pattern
- the pattern to store