org.apache.cocoon.pipeline.components.parameters
Class Parameters

java.lang.Object
  extended by org.apache.cocoon.pipeline.components.parameters.Parameters

public class Parameters
extends Object


Constructor Summary
Parameters(Map<String,? extends Object> configuration)
           
 
Method Summary
 Map<String,String> export()
           
 String get(String key, String defaultValue)
           
 boolean getAsBoolean(String key, boolean defaultValue)
           
 int getAsInteger(String key, int defaultValue)
           
 long getAsLong(String key, long defaultValue)
           
 Object getParameter(String name, Object defaultValue)
           
 boolean getParameterAsBoolean(String name, boolean defaultValue)
           
 Parameters merge(Parameters other)
           
 String setParameter(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters

public Parameters(Map<String,? extends Object> configuration)
Method Detail

getAsInteger

public int getAsInteger(String key,
                        int defaultValue)

get

public String get(String key,
                  String defaultValue)

getAsBoolean

public boolean getAsBoolean(String key,
                            boolean defaultValue)

getAsLong

public long getAsLong(String key,
                      long defaultValue)

getParameter

public Object getParameter(String name,
                           Object defaultValue)

getParameterAsBoolean

public boolean getParameterAsBoolean(String name,
                                     boolean defaultValue)

merge

public Parameters merge(Parameters other)

setParameter

public String setParameter(String name,
                           Object value)

export

public Map<String,String> export()


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.