org.mmbase.util.jumpers
Class DefaultUrlStrategy

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

public class DefaultUrlStrategy
extends JumperStrategy

This strategory completely depends on MMObjectBuilder.getDefaultUrl(int).

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

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

Constructor Detail

DefaultUrlStrategy

public DefaultUrlStrategy()
Method Detail

contains

public boolean contains(MMObjectNode node)
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)
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)


MMBase 2.0-SNAPSHOT - null