Package org.pentaho.di.core.util
Class StringListPluginProperty
- All Implemented Interfaces:
Serializable,Iterable<String>,PluginProperty
public class StringListPluginProperty
extends KeyValue<List<String>>
implements PluginProperty, Iterable<String>
- Author:
- Thomas Hoedl
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charThe separator character.static final StringValue XML tag name.Fields inherited from class org.pentaho.di.core.util.KeyValue
DEFAULT_TRUE_VALUES, VALID_KEY_CHARSFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidappendXml(StringBuilder builder) voidAssert state, value not null.static Stringbooleanevaluate()fromString(String input) booleanisEmpty()iterator()voidvoidvoidreadFromRepositoryStep(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) voidintsize()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, valueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
VALUE_XML_TAG_NAME
Value XML tag name.- See Also:
-
SEPARATOR_CHAR
public static final char SEPARATOR_CHARThe separator character.- See Also:
-
-
Constructor Details
-
StringListPluginProperty
- Parameters:
key- key to use.
-
-
Method Details
-
asString
- Parameters:
list- list to transform, maybe null.- Returns:
- string, never null.
-
fromString
- Parameters:
input- the input.- Returns:
- new list, never null.
-
appendXml
- Specified by:
appendXmlin interfacePluginProperty- Parameters:
builder- builder to append to.- See Also:
-
at.aschauer.commons.pentaho.plugin.PluginProperty#appendXml(java.lang.StringBuilder)
-
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()
-
loadXml
- Specified by:
loadXmlin interfacePluginProperty- Parameters:
node- the node.- See Also:
-
at.aschauer.commons.pentaho.plugin.PluginProperty#loadXml(org.w3c.dom.Node)
-
readFromPreferences
- Specified by:
readFromPreferencesin interfacePluginProperty- Parameters:
node- preferences node.- See Also:
-
at.aschauer.commons.pentaho.plugin.PluginProperty#readFromPreferences(java.util.prefs.Preferences)
-
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
- Specified by:
saveToPreferencesin interfacePluginProperty- Parameters:
node- preferences node- See Also:
-
at.aschauer.commons.pentaho.plugin.PluginProperty#saveToPreferences(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)
-
setValues
- Parameters:
values- values to set, no validation.
-
iterator
- Specified by:
iteratorin interfaceIterable<String>- Throws:
IllegalStateException- See Also:
-
isEmpty
public boolean isEmpty()- Returns:
- true if list is empty .
-
size
- Returns:
- size
- Throws:
IllegalStateException- if value is null.
-
assertValueNotNull
Assert state, value not null.- Throws:
IllegalStateException- if this.value is null.
-