net.sf.jagg.msd
Class ClassDiscriminator.ClassChainedExtractor<E,B>
java.lang.Object
net.sf.jagg.msd.AbstractExtractor<E,T>
net.sf.jagg.msd.ChainedExtractor<E,java.lang.String,B>
net.sf.jagg.msd.ClassDiscriminator.ClassChainedExtractor<E,B>
- Type Parameters:
E
- The type of element.B
- The type of object.
- All Implemented Interfaces:
- Extractor<E,java.lang.String>
- Enclosing class:
- ClassDiscriminator<T>
protected class ClassDiscriminator.ClassChainedExtractor<E,B>
- extends ChainedExtractor<E,java.lang.String,B>
A ClassChainedExtractor
extracts the class name.
Method Summary |
java.lang.String |
getLabel(E element)
The label is the specific member of the array. |
boolean |
isComplete(E element)
The discrimination is complete when the chained Extractor
is complete. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassDiscriminator.ClassChainedExtractor
public ClassDiscriminator.ClassChainedExtractor(Extractor<E,B> extractor)
- Create a
ClassChainedExtractor
that uses the given
Extractor
to retrieve the Class
name.
- Parameters:
extractor
- An Extractor
whose label is a class
name.
getLabel
public java.lang.String getLabel(E element)
- The label is the specific member of the array.
- Specified by:
getLabel
in interface Extractor<E,java.lang.String>
- Specified by:
getLabel
in class ChainedExtractor<E,java.lang.String,B>
- Parameters:
element
- The element.
- Returns:
- A specific member of the array.
isComplete
public boolean isComplete(E element)
- The discrimination is complete when the chained
Extractor
is complete.
- Specified by:
isComplete
in interface Extractor<E,java.lang.String>
- Specified by:
isComplete
in class AbstractExtractor<E,B>
- Parameters:
element
- The element.
- Returns:
true
if complete, false
otherwise.
Copyright © 2010-2013 jAgg Team. All Rights Reserved.