net.sf.jagg.msd
Class SelfExtractor<E>

java.lang.Object
  extended by net.sf.jagg.msd.SelfExtractor<E>
Type Parameters:
E - The element type whose label is itself.
All Implemented Interfaces:
Extractor<E,E>

public class SelfExtractor<E>
extends java.lang.Object
implements Extractor<E,E>

A SelfExtractor returns the element itself as the label.

Since:
0.5.0
Author:
Randy Gettman

Constructor Summary
SelfExtractor()
           
 
Method Summary
 E getLabel(E element)
          Returns the element as its own label.
 boolean isAllComplete()
          The SelfExtractor is never "all complete", i.e., there are no Discriminators up the chain to notify that discrimination is complete.
 boolean isComplete(E element)
          The SelfExtractor is never "complete", i.e., we would never want to prevent the calling of getLabel because that method will always succeed.
 void setAllComplete(boolean allComplete)
          The SelfExtractor is never "all complete", i.e., there are no Discriminators up the chain to notify that discrimination is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfExtractor

public SelfExtractor()
Method Detail

getLabel

public E getLabel(E element)
Returns the element as its own label.

Specified by:
getLabel in interface Extractor<E,E>
Parameters:
element - The element.
Returns:
The element as the label.

isComplete

public boolean isComplete(E element)
The SelfExtractor is never "complete", i.e., we would never want to prevent the calling of getLabel because that method will always succeed.

Specified by:
isComplete in interface Extractor<E,E>
Parameters:
element - The element.
Returns:
false.

setAllComplete

public void setAllComplete(boolean allComplete)
The SelfExtractor is never "all complete", i.e., there are no Discriminators up the chain to notify that discrimination is complete.

Specified by:
setAllComplete in interface Extractor<E,E>
Parameters:
allComplete - Whether all elements were complete.

isAllComplete

public boolean isAllComplete()
The SelfExtractor is never "all complete", i.e., there are no Discriminators up the chain to notify that discrimination is complete.

Specified by:
isAllComplete in interface Extractor<E,E>
Returns:
false.


Copyright © 2010-2013 jAgg Team. All Rights Reserved.