Package org.pentaho.di.core.util
Class StringPluginProperty
- java.lang.Object
-
- org.pentaho.di.core.util.KeyValue<String>
-
- org.pentaho.di.core.util.StringPluginProperty
-
- All Implemented Interfaces:
Serializable,PluginProperty
public class StringPluginProperty extends KeyValue<String> implements PluginProperty
- Author:
- Thomas Hoedl(asc042)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.pentaho.di.core.util.KeyValue
DEFAULT_TRUE_VALUES, VALID_KEY_CHARS
-
Fields inherited from interface org.pentaho.di.core.util.PluginProperty
BOOLEAN_STRING_TRUE, DEFAULT_BOOLEAN_VALUE, DEFAULT_DOUBLE_VALUE, DEFAULT_INTEGER_VALUE, DEFAULT_STRING_VALUE
-
-
Constructor Summary
Constructors Constructor Description StringPluginProperty(String key)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendXml(StringBuilder builder)booleanevaluate()voidloadXml(Node node)voidreadFromPreferences(Preferences node)voidreadFromRepositoryStep(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId stepId)voidsaveToPreferences(Preferences node)voidsaveToRepositoryStep(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId transformationId, org.pentaho.di.repository.ObjectId stepId)-
Methods inherited from class org.pentaho.di.core.util.KeyValue
assertKey, booleanValue, booleanValue, booleanValue, booleanValue, booleanValue, doubleValue, doubleValue, floatValue, floatValue, getKey, getValue, integerValue, integerValue, longValue, longValue, setValue, stringValue, stringValue, stringValueDefaultIfBlank, toString, value, value
-
-
-
-
Constructor Detail
-
StringPluginProperty
public StringPluginProperty(String key) throws IllegalArgumentException
Constructor. Value is null.- Parameters:
key- key to set.- Throws:
IllegalArgumentException- if key is invalid.
-
-
Method Detail
-
evaluate
public boolean evaluate()
- Specified by:
evaluatein interfacePluginProperty- Returns:
- true if value not null or 'false'.
- See Also:
at.aschauer.commons.pentaho.plugin.PluginProperty#evaluate()
-
appendXml
public void appendXml(StringBuilder builder)
- Specified by:
appendXmlin interfacePluginProperty- Parameters:
builder- builder to append to.- See Also:
at.aschauer.commons.pentaho.plugin.PluginProperty#appendXml(java.lang.StringBuilder)
-
loadXml
public void loadXml(Node node)
- Specified by:
loadXmlin interfacePluginProperty- Parameters:
node- the node.- See Also:
at.aschauer.commons.pentaho.plugin.PluginProperty#loadXml(org.w3c.dom.Node)
-
readFromRepositoryStep
public void readFromRepositoryStep(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId stepId) throws org.pentaho.di.core.exception.KettleException
- Specified by:
readFromRepositoryStepin interfacePluginProperty- Parameters:
repository- the repository.stepId- the stepId.- Throws:
org.pentaho.di.core.exception.KettleException- ...- See Also:
at.aschauer.commons.pentaho.plugin.PluginProperty#readFromRepositoryStep(org.pentaho.di.repository.Repository, long)
-
saveToPreferences
public void saveToPreferences(Preferences node)
- Specified by:
saveToPreferencesin interfacePluginProperty- Parameters:
node- preferences node- See Also:
at.aschauer.commons.pentaho.plugin.PluginProperty#saveToPreferences(java.util.prefs.Preferences)
-
readFromPreferences
public void readFromPreferences(Preferences node)
- Specified by:
readFromPreferencesin interfacePluginProperty- Parameters:
node- preferences node.- See Also:
at.aschauer.commons.pentaho.plugin.PluginProperty#readFromPreferences(java.util.prefs.Preferences)
-
saveToRepositoryStep
public void saveToRepositoryStep(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId transformationId, org.pentaho.di.repository.ObjectId stepId) throws org.pentaho.di.core.exception.KettleException
- Specified by:
saveToRepositoryStepin interfacePluginProperty- Parameters:
repository- the repository.metaStore- the MetaStoretransformationId- the transformationId.stepId- the stepId.- Throws:
org.pentaho.di.core.exception.KettleException- ...- See Also:
at.aschauer.commons.pentaho.plugin.PluginProperty#saveToRepositoryStep(org.pentaho.di.repository.Repository, long, long)
-
-