org.pentaho.di.core.util
Class PluginPropertyFactory

java.lang.Object
  extended by org.pentaho.di.core.util.PluginPropertyFactory

public class PluginPropertyFactory
extends Object

Author:
Thomas Hoedl(asc042)

Constructor Summary
PluginPropertyFactory(KeyValueSet properties)
          Constructor.
 
Method Summary
 BooleanPluginProperty createBoolean(String key)
           
 IntegerPluginProperty createInteger(String key)
           
 StringPluginProperty createString(String key)
           
 StringListPluginProperty createStringList(String key)
           
 KeyValueSet getProperties()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginPropertyFactory

public PluginPropertyFactory(KeyValueSet properties)
                      throws IllegalArgumentException
Constructor.

Parameters:
properties - properties to set.
Throws:
IllegalArgumentException - if properties is null.
Method Detail

getProperties

public KeyValueSet getProperties()
Returns:
the properties

createString

public StringPluginProperty createString(String key)
                                  throws IllegalArgumentException
Parameters:
key - key to set.
Returns:
new string property.
Throws:
IllegalArgumentException - if key is invalid.

createInteger

public IntegerPluginProperty createInteger(String key)
                                    throws IllegalArgumentException
Parameters:
key - key to set.
Returns:
new integer property.
Throws:
IllegalArgumentException - if key is invalid.

createBoolean

public BooleanPluginProperty createBoolean(String key)
                                    throws IllegalArgumentException
Parameters:
key - key to set.
Returns:
new boolean property.
Throws:
IllegalArgumentException - if key is invalid.

createStringList

public StringListPluginProperty createStringList(String key)
                                          throws IllegalArgumentException
Parameters:
key - key.
Returns:
new string list.
Throws:
IllegalArgumentException - if key is invalid.