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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FragmentFilter
public FragmentFilter(Pattern fragmentLabelPattern)
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)
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.