|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.biojava.bio.program.tagvalue.RegexChanger
A ValueChanger.Changer that returns a specific match value using a regex Pattern.
| Constructor Summary | |
RegexChanger(java.util.regex.Pattern pattern,
int matchGroup)
Create a new RegexChanger with a pattern. |
|
| Method Summary | |
java.lang.Object |
change(java.lang.Object value)
Produce a modified value from an old value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RegexChanger(java.util.regex.Pattern pattern,
int matchGroup)
pattern - the Pattern used to split valuesmatchGroup - the group to pull out - use 0 to pull out the whole match| Method Detail |
public java.lang.Object change(java.lang.Object value)
throws ParserException
ChangeTable.ChangerProduce a modified value from an old value.
It is strongly recommended that this method is re-entrant and does not modify the state of the Changer in a way that would affect future return -values.
change in interface ChangeTable.Changervalue - the old value Object
ParserException - if value could not be changed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||