Package org.pentaho.di.core.util
Class PluginPropertyFactory
- java.lang.Object
-
- org.pentaho.di.core.util.PluginPropertyFactory
-
public class PluginPropertyFactory extends Object
- Author:
- Thomas Hoedl(asc042)
-
-
Constructor Summary
Constructors Constructor Description PluginPropertyFactory(KeyValueSet properties)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanPluginPropertycreateBoolean(String key)IntegerPluginPropertycreateInteger(String key)StringPluginPropertycreateString(String key)StringListPluginPropertycreateStringList(String key)KeyValueSetgetProperties()
-
-
-
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.
-
-