public class TagMapper extends java.lang.Object implements PropertyChanger
TagMapper maps arbitrary object keys to new keys.
If there is no explicit mapping from old to new keys, then the old key will be used.
| Constructor and Description |
|---|
TagMapper()
Creates a new, empty
TagMapper. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getNewTag(java.lang.Object oldTag)
getNewTag returns the tag which substitutes the
specified value. |
void |
setNewTag(java.lang.Object oldTag,
java.lang.Object newTag)
setNewTag. |
public void setNewTag(java.lang.Object oldTag,
java.lang.Object newTag)
setNewTag.oldTag - an Object tag to be substituted.newTag - an Object tag to substitue for the
old value.public java.lang.Object getNewTag(java.lang.Object oldTag)
PropertyChanger
getNewTag returns the tag which substitutes the
specified value.
If there is no mapping associated with this tag, it is returned unchanged.
getNewTag in interface PropertyChangeroldTag - an Object to substitute.Object.