net.sf.jagg.msd
Class ClassDiscriminator.ClassChainedExtractor<E,B>

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


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

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

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.