|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.program.tagvalue.TagMapper
public class TagMapper
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 Summary | |
---|---|
TagMapper()
Creates a new, empty TagMapper . |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagMapper()
TagMapper
.
Method Detail |
---|
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 PropertyChanger
oldTag
- an Object
to substitute.
Object
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |