## org.biojava.bio.program.tagvalue
Class RegexFieldFinder

    java.lang.Object
      org.biojava.bio.program.tagvalue.SimpleTagValueWrapper
          org.biojava.bio.program.tagvalue.RegexFieldFinder

All Implemented Interfaces:
  TagValueListener, TagValueWrapper

    public class RegexFieldFinder

extends SimpleTagValueWrapper

Constructor Summary
`RegexFieldFinder(TagValueListener delegate, Pattern pattern, String[] tags, boolean inLine)` Creates a new RegexFiledFinder.

Method Summary
`void` `endTag()` End the current tag.
`void` `startTag(Object tag)` Start a new tag.
`void` `value(TagValueContext ctxt, Object val)` A value has been seen.

Methods inherited from class org.biojava.bio.program.tagvalue.SimpleTagValueWrapper
`endRecord, getDelegate, setDelegate, startRecord`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RegexFieldFinder

    public RegexFieldFinder(TagValueListener delegate,
                            Pattern pattern,
                            String[] tags,
                            boolean inLine)

  Creates a new RegexFiledFinder.

  Parameters:
    `delegate` - the TagValueListener to forward events to
    `pattern` - a Pattern to match to values
    `tags` - an array of Strings giving tag names for each group in the pattern
    `inLine` - if false, an entire sub-document will be generated for the parent tag

Method Detail

### startTag

    public void startTag(Object tag)
                  throws ParserException

  Description copied from interface: `TagValueListener`
  Start a new tag.

  Specified by:
    `startTag` in interface `TagValueListener`
  Overrides:
    `startTag` in class `SimpleTagValueWrapper`
  Parameters:
    `tag` - the Object representing the new tag
  Throws:
    `ParserException` - if the tag could not be started

### endTag

    public void endTag()
                throws ParserException

  Description copied from interface: `TagValueListener`
  End the current tag.

  Specified by:
    `endTag` in interface `TagValueListener`
  Overrides:
    `endTag` in class `SimpleTagValueWrapper`
  Throws:
    `ParserException` - if the tag could not be ended

### value

    public void value(TagValueContext ctxt,
                      Object val)
               throws ParserException

  Description copied from interface: `TagValueListener`
  A value has been seen.

  Specified by:
    `value` in interface `TagValueListener`
  Overrides:
    `value` in class `SimpleTagValueWrapper`
  Parameters:
    `ctxt` - a TagValueContext that could be used to push a sub-document
    `val` - the value Object observed
  Throws:
    `ParserException` - if the value could not be processed