net.sf.jagg.msd
Class RandomAccessListDiscriminator.ListChainedExtractor<E,B>
java.lang.Object
net.sf.jagg.msd.AbstractExtractor<E,T>
net.sf.jagg.msd.ChainedExtractor<E,B,java.util.List<B>>
net.sf.jagg.msd.RandomAccessListDiscriminator.ListChainedExtractor<E,B>
- Type Parameters:
E
- The type of element.B
- The base type of the list.
- All Implemented Interfaces:
- Extractor<E,B>
- Enclosing class:
- RandomAccessListDiscriminator<T>
protected class RandomAccessListDiscriminator.ListChainedExtractor<E,B>
- extends ChainedExtractor<E,B,java.util.List<B>>
A ListChainedExtractor
extracts members of a random access
list as labels.
Method Summary |
B |
getLabel(E element)
The label is the specific member of the list. |
boolean |
isComplete(E element)
The discrimination is complete when the process runs off the end of
the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomAccessListDiscriminator.ListChainedExtractor
public RandomAccessListDiscriminator.ListChainedExtractor(Extractor<E,java.util.List<B>> extractor)
- Create an
ListChainedExtractor
that uses the given
Extractor
to retrieve the list.
- Parameters:
extractor
- An Extractor
whose label is a list.
getLabel
public B getLabel(E element)
- The label is the specific member of the list.
- Specified by:
getLabel
in interface Extractor<E,B>
- Specified by:
getLabel
in class ChainedExtractor<E,B,java.util.List<B>>
- Parameters:
element
- The element.
- Returns:
- A specific member of the list.
isComplete
public boolean isComplete(E element)
- The discrimination is complete when the process runs off the end of
the list.
- Specified by:
isComplete
in interface Extractor<E,B>
- Specified by:
isComplete
in class AbstractExtractor<E,java.util.List<B>>
- Parameters:
element
- The element.
- Returns:
true
if off the end of the list,
false
otherwise.
Copyright © 2010-2013 jAgg Team. All Rights Reserved.