net.ontopia.utils
Class GrabberGrabber

java.lang.Object
  extended by net.ontopia.utils.GrabberGrabber
All Implemented Interfaces:
GrabberIF<java.lang.Object,java.lang.Object>

public class GrabberGrabber
extends java.lang.Object
implements GrabberIF<java.lang.Object,java.lang.Object>

INTERNAL: Grabber that makes the second grabber grab what the first grabber grabs and so on. Any number of grabbers may be chained together.


Field Summary
protected  java.util.List<GrabberIF> grabbers
           
 
Constructor Summary
GrabberGrabber(GrabberIF... grabbers)
           
 
Method Summary
 void addGrabber(GrabberIF grabber)
          Add grabber to the end of the grabber list.
 java.util.List<GrabberIF> getGrabbers()
          Gets the chained grabbers.
 java.lang.Object grab(java.lang.Object object)
          Returns an object that is somehow extracted from the given object.
 void setGrabbers(java.util.List<GrabberIF> grabbers)
          Sets the grabbers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grabbers

protected java.util.List<GrabberIF> grabbers
Constructor Detail

GrabberGrabber

public GrabberGrabber(GrabberIF... grabbers)
Method Detail

getGrabbers

public java.util.List<GrabberIF> getGrabbers()
Gets the chained grabbers.


setGrabbers

public void setGrabbers(java.util.List<GrabberIF> grabbers)
Sets the grabbers.


addGrabber

public void addGrabber(GrabberIF grabber)
Add grabber to the end of the grabber list.


grab

public java.lang.Object grab(java.lang.Object object)
Description copied from interface: GrabberIF
Returns an object that is somehow extracted from the given object.

Specified by:
grab in interface GrabberIF<java.lang.Object,java.lang.Object>


Copyright © 2000-2012 Ontopia.