public class StringListPluginProperty extends KeyValue<List<String>> implements PluginProperty, Iterable<String>
Modifier and Type | Field and Description |
---|---|
static char |
SEPARATOR_CHAR
The separator character.
|
static String |
VALUE_XML_TAG_NAME
Value XML tag name.
|
DEFAULT_TRUE_VALUES, VALID_KEY_CHARS
BOOLEAN_STRING_TRUE, DEFAULT_BOOLEAN_VALUE, DEFAULT_DOUBLE_VALUE, DEFAULT_INTEGER_VALUE, DEFAULT_STRING_VALUE
Constructor and Description |
---|
StringListPluginProperty(String key) |
Modifier and Type | Method and Description |
---|---|
void |
appendXml(StringBuilder builder) |
void |
assertValueNotNull()
Assert state, value not null.
|
static String |
asString(List<String> list) |
boolean |
evaluate() |
static List<String> |
fromString(String input) |
boolean |
isEmpty() |
Iterator<String> |
iterator() |
void |
loadXml(Node node) |
void |
readFromPreferences(Preferences node) |
void |
readFromRepositoryStep(Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore,
ObjectId stepId) |
void |
saveToPreferences(Preferences node) |
void |
saveToRepositoryStep(Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore,
ObjectId transformationId,
ObjectId stepId) |
void |
setValues(String... values) |
int |
size() |
assertKey, booleanValue, booleanValue, booleanValue, booleanValue, booleanValue, doubleValue, doubleValue, floatValue, floatValue, getKey, getValue, integerValue, integerValue, longValue, longValue, setValue, stringValue, stringValue, stringValueDefaultIfBlank, toString, value, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String VALUE_XML_TAG_NAME
public static final char SEPARATOR_CHAR
public StringListPluginProperty(String key)
key
- key to use.public static String asString(List<String> list)
list
- list to transform, maybe null.public static List<String> fromString(String input)
input
- the input.public void appendXml(StringBuilder builder)
appendXml
in interface PluginProperty
builder
- builder to append to.at.aschauer.commons.pentaho.plugin.PluginProperty#appendXml(java.lang.StringBuilder)
public boolean evaluate()
evaluate
in interface PluginProperty
at.aschauer.commons.pentaho.plugin.PluginProperty#evaluate()
public void loadXml(Node node)
loadXml
in interface PluginProperty
node
- the node.at.aschauer.commons.pentaho.plugin.PluginProperty#loadXml(org.w3c.dom.Node)
public void readFromPreferences(Preferences node)
readFromPreferences
in interface PluginProperty
node
- preferences node.at.aschauer.commons.pentaho.plugin.PluginProperty#readFromPreferences(java.util.prefs.Preferences)
public void readFromRepositoryStep(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId stepId) throws KettleException
readFromRepositoryStep
in interface PluginProperty
repository
- the repository.stepId
- the stepId.KettleException
- ...at.aschauer.commons.pentaho.plugin.PluginProperty#readFromRepositoryStep(org.pentaho.di.repository.Repository,
long)
public void saveToPreferences(Preferences node)
saveToPreferences
in interface PluginProperty
node
- preferences nodeat.aschauer.commons.pentaho.plugin.PluginProperty#saveToPreferences(java.util.prefs.Preferences)
public void saveToRepositoryStep(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, ObjectId transformationId, ObjectId stepId) throws KettleException
saveToRepositoryStep
in interface PluginProperty
repository
- the repository.metaStore
- the MetaStoretransformationId
- the transformationId.stepId
- the stepId.KettleException
- ...at.aschauer.commons.pentaho.plugin.PluginProperty#saveToRepositoryStep(org.pentaho.di.repository.Repository,
long, long)
public void setValues(String... values)
values
- values to set, no validation.public Iterator<String> iterator() throws IllegalStateException
iterator
in interface Iterable<String>
IllegalStateException
Iterable.iterator()
public boolean isEmpty()
public int size() throws IllegalStateException
IllegalStateException
- if value is null.public void assertValueNotNull() throws IllegalStateException
IllegalStateException
- if this.value is null.Copyright © 2018 Hitachi Vantara. All rights reserved.