net.sf.jagg.msd
Class RandomAccessListDiscriminator.ListChainedExtractor<E,B>

java.lang.Object
  extended by net.sf.jagg.msd.AbstractExtractor<E,T>
      extended by net.sf.jagg.msd.ChainedExtractor<E,B,java.util.List<B>>
          extended by 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.


Field Summary
 
Fields inherited from class net.sf.jagg.msd.AbstractExtractor
amIAllComplete, myExtractor, myIndex
 
Constructor Summary
RandomAccessListDiscriminator.ListChainedExtractor(Extractor<E,java.util.List<B>> extractor)
          Create an ListChainedExtractor that uses the given Extractor to retrieve the list.
 
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 net.sf.jagg.msd.AbstractExtractor
isAllComplete, 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, setAllComplete
 

Constructor Detail

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.
Method Detail

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.