Package org.biojava.bio.program.tagvalue
Class TagMapper
- java.lang.Object
 - 
- org.biojava.bio.program.tagvalue.TagMapper
 
 
- 
- All Implemented Interfaces:
 PropertyChanger
public class TagMapper extends Object implements PropertyChanger
TagMappermaps arbitrary object keys to new keys.If there is no explicit mapping from old to new keys, then the old key will be used.
- Since:
 - 1.2
 - Author:
 - Matthew Pocock, Keith James (docs).
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TagMapper()Creates a new, emptyTagMapper. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetNewTag(Object oldTag)getNewTagreturns the tag which substitutes the specified value.voidsetNewTag(Object oldTag, Object newTag)setNewTag. 
 - 
 
- 
- 
Constructor Detail
- 
TagMapper
public TagMapper()
Creates a new, emptyTagMapper. 
 - 
 
- 
Method Detail
- 
setNewTag
public void setNewTag(Object oldTag, Object newTag)
setNewTag.- Parameters:
 oldTag- anObjecttag to be substituted.newTag- anObjecttag to substitue for the old value.
 
- 
getNewTag
public Object getNewTag(Object oldTag)
Description copied from interface:PropertyChangergetNewTagreturns the tag which substitutes the specified value.If there is no mapping associated with this tag, it is returned unchanged.
- Specified by:
 getNewTagin interfacePropertyChanger- Parameters:
 oldTag- anObjectto substitute.- Returns:
 - an 
Object. 
 
 - 
 
 -