net.sf.jagg.msd
Class PropertiesDiscriminator.MethodCallChainedExtractor<E,L,B>

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


Field Summary
 
Fields inherited from class net.sf.jagg.msd.AbstractExtractor
amIAllComplete, myExtractor, myIndex
 
Constructor Summary
PropertiesDiscriminator.MethodCallChainedExtractor(Extractor<E,B> extractor)
          Create an MethodCallChainedExtractor that uses the given Extractor to retrieve the base item.
 
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 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

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

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-2013 jAgg Team. All Rights Reserved.