net.sf.jagg.msd
Class ArrayDiscriminator.ArrayChainedExtractor<E,B>

java.lang.Object
  extended by net.sf.jagg.msd.AbstractExtractor<E,T>
      extended by net.sf.jagg.msd.ChainedExtractor<E,B,B[]>
          extended by net.sf.jagg.msd.ArrayDiscriminator.ArrayChainedExtractor<E,B>
Type Parameters:
E - The type of element.
B - The base type of the array.
All Implemented Interfaces:
Extractor<E,B>
Enclosing class:
ArrayDiscriminator<T>

protected class ArrayDiscriminator.ArrayChainedExtractor<E,B>
extends ChainedExtractor<E,B,B[]>

An ArrayChainedExtractor extracts members of an array as labels.


Field Summary
 
Fields inherited from class net.sf.jagg.msd.AbstractExtractor
amIAllComplete, myExtractor, myIndex
 
Constructor Summary
ArrayDiscriminator.ArrayChainedExtractor(Extractor<E,B[]> extractor)
          Create an ArrayChainednExtractor that uses the given Extractor to retrieve the array.
 
Method Summary
 B getLabel(E element)
          The label is the specific member of the array.
 boolean isComplete(E element)
          The discrimination is complete when the process runs off the end of the array.
 
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

ArrayDiscriminator.ArrayChainedExtractor

public ArrayDiscriminator.ArrayChainedExtractor(Extractor<E,B[]> extractor)
Create an ArrayChainednExtractor that uses the given Extractor to retrieve the array.

Parameters:
extractor - An Extractor whose label is an array.
Method Detail

getLabel

public B getLabel(E element)
The label is the specific member of the array.

Specified by:
getLabel in interface Extractor<E,B>
Specified by:
getLabel in class ChainedExtractor<E,B,B[]>
Parameters:
element - The element.
Returns:
A specific member of the array.

isComplete

public boolean isComplete(E element)
The discrimination is complete when the process runs off the end of the array.

Specified by:
isComplete in interface Extractor<E,B>
Specified by:
isComplete in class AbstractExtractor<E,B[]>
Parameters:
element - The element.
Returns:
true if off the end of the array, false otherwise.


Copyright © 2010-2013 jAgg Team. All Rights Reserved.