net.sf.jagg.msd
Class PropertiesDiscriminator.MethodCallChainedExtractor<E,L,B>
java.lang.Object
net.sf.jagg.msd.AbstractExtractor<E,T>
net.sf.jagg.msd.ChainedExtractor<E,L,B>
net.sf.jagg.msd.PropertiesDiscriminator.MethodCallChainedExtractor<E,L,B>
- Type Parameters:
E - The type of element.L - The type of label.B - The base type of the object.
- All Implemented Interfaces:
- Extractor<E,L>
- Enclosing class:
- PropertiesDiscriminator<T>
protected class PropertiesDiscriminator.MethodCallChainedExtractor<E,L,B>
- extends ChainedExtractor<E,L,B>
An MethodCallChainedExtractor extracts results of a method
call as labels.
|
Method Summary |
L |
getLabel(E element)
The label is the result of a MethodCall on the base
object type. |
boolean |
isComplete(E element)
The discrimination is complete after all properties have been used. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesDiscriminator.MethodCallChainedExtractor
public PropertiesDiscriminator.MethodCallChainedExtractor(Extractor<E,B> extractor)
- Create an
MethodCallChainedExtractor that uses the given
Extractor to retrieve the base item.
- Parameters:
extractor - An Extractor.
getLabel
public L getLabel(E element)
- The label is the result of a
MethodCall on the base
object type.
- Specified by:
getLabel in interface Extractor<E,L>- Specified by:
getLabel in class ChainedExtractor<E,L,B>
- Parameters:
element - The element.
- Returns:
- The result of a
MethodCall on the base object
type.
isComplete
public boolean isComplete(E element)
- The discrimination is complete after all properties have been used.
- Specified by:
isComplete in interface Extractor<E,L>- Specified by:
isComplete in class AbstractExtractor<E,B>
- Parameters:
element - The element.
- Returns:
true if complete,
false otherwise.
Copyright © 2010-2012 jAgg Team. All Rights Reserved.