|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jagg.msd.AbstractExtractor<E,T>
net.sf.jagg.msd.ChainedExtractor<E,L,T>
E
- The element type, matching Extractor
.L
- The label type, matching Extractor
.T
- The label type from a chained Extractor
,
from which this can generate a new label of type L
.public abstract class ChainedExtractor<E,L,T>
A ChainedExtractor
extracts a part of an element and returns it
as the label. It relies on labels from a chained Extractor
so
it can produce its own labels based on that chained Extractor's
labels. At the end of the chain is an Extractor
that returns
the element itself -- a SelfExtractor
.
SelfExtractor
Field Summary |
---|
Fields inherited from class net.sf.jagg.msd.AbstractExtractor |
---|
amIAllComplete, myExtractor, myIndex |
Constructor Summary | |
---|---|
ChainedExtractor(Extractor<E,T> extractor)
Creates an ChainedExtractor that uses the given
Extractor in a chain for its labels. |
Method Summary | |
---|---|
abstract L |
getLabel(E element)
Returns the label for a given element. |
Methods inherited from class net.sf.jagg.msd.AbstractExtractor |
---|
isAllComplete, isComplete, setAllComplete, setIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jagg.msd.Extractor |
---|
isAllComplete, isComplete, setAllComplete |
Constructor Detail |
---|
public ChainedExtractor(Extractor<E,T> extractor)
ChainedExtractor
that uses the given
Extractor
in a chain for its labels.
extractor
- The chained Extractor
.Method Detail |
---|
public abstract L getLabel(E element)
getLabel
in interface Extractor<E,L>
element
- The element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |