|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.util.KeyValue<List<String>> org.pentaho.di.core.util.StringListPluginProperty
public class StringListPluginProperty
Field Summary | |
---|---|
static char |
SEPARATOR_CHAR
The separator character. |
static String |
VALUE_XML_TAG_NAME
Value XML tag name. |
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 | |
---|---|
StringListPluginProperty(String key)
|
Method Summary | |
---|---|
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,
ObjectId stepId)
|
void |
saveToPreferences(Preferences node)
|
void |
saveToRepositoryStep(Repository repository,
ObjectId transformationId,
ObjectId stepId)
|
void |
setValues(String... values)
|
int |
size()
|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String VALUE_XML_TAG_NAME
public static final char SEPARATOR_CHAR
Constructor Detail |
---|
public StringListPluginProperty(String key)
key
- key to use.Method Detail |
---|
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, 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, ObjectId transformationId, ObjectId stepId) throws KettleException
saveToRepositoryStep
in interface PluginProperty
repository
- the repository.transformationId
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |