org.mmbase.util.jumpers
Class ChainedJumperStrategy

java.lang.Object
  extended by org.mmbase.util.jumpers.JumperStrategy
      extended by org.mmbase.util.jumpers.ChainedJumperStrategy

public class ChainedJumperStrategy
extends JumperStrategy

Version:
$Id: ChainedJumperStrategy.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
ChainedJumperStrategy()
           
 
Method Summary
 void add(JumperStrategy j)
           
 String calculate(MMObjectNode node)
          calculates an url for this node.
 void clear()
           
 boolean contains(MMObjectNode node)
          signals whether this strategy can calculate an url for this node.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChainedJumperStrategy

public ChainedJumperStrategy()
Method Detail

add

public void add(JumperStrategy j)

clear

public void clear()

contains

public boolean contains(MMObjectNode node)
Description copied from class: JumperStrategy
signals whether this strategy can calculate an url for this node.

Overrides:
contains in class JumperStrategy
Parameters:
node - node for which an url has to be calculated for
Returns:
url for this node

calculate

public String calculate(MMObjectNode node)
Description copied from class: JumperStrategy
calculates an url for this node. call this method only when the contains(node) returns true.

Specified by:
calculate in class JumperStrategy
Parameters:
node - node for which an url has to be calculated for
Returns:
the url for this node
See Also:
JumperStrategy.contains(MMObjectNode)

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null