public class TagMapper extends 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 |
---|---|
Object |
getNewTag(Object oldTag)
getNewTag returns the tag which substitutes the
specified value. |
void |
setNewTag(Object oldTag,
Object newTag)
setNewTag . |
public TagMapper()
TagMapper
.public void setNewTag(Object oldTag, Object newTag)
setNewTag
.oldTag
- an Object
tag to be substituted.newTag
- an Object
tag to substitue for the
old value.public Object getNewTag(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 PropertyChanger
oldTag
- an Object
to substitute.Object
.Copyright © 2020 BioJava. All rights reserved.