net.sf.jagg.msd
Class ArrayDiscriminator.ArrayChainedExtractor<E,B>
java.lang.Object
net.sf.jagg.msd.AbstractExtractor<E,T>
net.sf.jagg.msd.ChainedExtractor<E,B,B[]>
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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-2012 jAgg Team. All Rights Reserved.