Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.teleal.lemma.reader.content.filter
Class FragmentFilter

    java.lang.Object
      org.teleal.lemma.reader.content.filter.FragmentFilter

All Implemented Interfaces:
  ContentFilter

    public class FragmentFilter

extends Object
implements ContentFilter

Excludes and includes lines, depending on the given fragment rules of the citation anchor.

Author:
  Christian Bauer

Constructor Summary
`FragmentFilter(Pattern fragmentLabelPattern)`

Method Summary
`String[]` | `filter(String[] source, CitationAnchor citation)`
`Pattern` | `getFragmentLabelPattern()`
`protected List<Integer>` | `getFragmentLines(String[] source, String[] fragments)`
`protected boolean` | `isLineMatchingFragment(String line, String fragment)`

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

Constructor Detail

### FragmentFilter

    public FragmentFilter(Pattern fragmentLabelPattern)

Method Detail

### getFragmentLabelPattern

    public Pattern getFragmentLabelPattern()

### filter

    public String[] filter(String[] source,
                           CitationAnchor citation)

  Specified by:
    `filter` in interface `ContentFilter`

### getFragmentLines

    protected List<Integer> getFragmentLines(String[] source,
                                             String[] fragments)

### isLineMatchingFragment

    protected boolean isLineMatchingFragment(String line,
                                             String fragment)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.