org.openemcee.microflow.impl
Class KVParams

java.lang.Object
  extended byorg.openemcee.microflow.impl.KVParams
All Implemented Interfaces:
MicroflowParameters

public class KVParams
extends java.lang.Object
implements MicroflowParameters

Author:
Scott Schenkein

Constructor Summary
KVParams()
          Creates a new instance of KVParams
 
Method Summary
 void addParameter(java.lang.String key, java.lang.String value)
           
 void clearParams()
           
 java.lang.String getParameter(java.lang.String key)
          Retrieve a parameter of this name, if it is not set, this returns null.
 java.lang.String getParameter(java.lang.String key, java.lang.String defaultValue)
          Retrieve a parameter of this name, if it is not set, return a default value.
 java.lang.String[] getParameterNames()
          Retrieve a list of all the parameters available in this parameter bag.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KVParams

public KVParams()
Creates a new instance of KVParams

Method Detail

clearParams

public void clearParams()

addParameter

public void addParameter(java.lang.String key,
                         java.lang.String value)

getParameter

public java.lang.String getParameter(java.lang.String key)
Description copied from interface: MicroflowParameters
Retrieve a parameter of this name, if it is not set, this returns null.

Specified by:
getParameter in interface MicroflowParameters
Parameters:
key - The name of the parameter to retrieve.
Returns:
Returns the value associated with the parameter, or null if not set.

getParameter

public java.lang.String getParameter(java.lang.String key,
                                     java.lang.String defaultValue)
Description copied from interface: MicroflowParameters
Retrieve a parameter of this name, if it is not set, return a default value.

Specified by:
getParameter in interface MicroflowParameters
Parameters:
key - The name of the parameter to get.
defaultValue - The value to return of the parameter is not defined.
Returns:
Returns the value associated with the parameter, or the default value if not set.

toString

public java.lang.String toString()

getParameterNames

public java.lang.String[] getParameterNames()
Description copied from interface: MicroflowParameters
Retrieve a list of all the parameters available in this parameter bag.

Specified by:
getParameterNames in interface MicroflowParameters
Returns:
An array of parameter names as strings.


OpenEmcee Microflow Engine for Java: All software and content contained herein is subject to the Mozilla public license v1.1.
SourceForge.net Logo