Package org.apache.hop.core.util
Class IntegerPluginProperty
- java.lang.Object
-
- org.apache.hop.core.util.KeyValue<Integer>
-
- org.apache.hop.core.util.IntegerPluginProperty
-
- All Implemented Interfaces:
Serializable,IPluginProperty
public class IntegerPluginProperty extends KeyValue<Integer> implements IPluginProperty
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.hop.core.util.KeyValue
DEFAULT_TRUE_VALUES, VALID_KEY_CHARS
-
Fields inherited from interface org.apache.hop.core.util.IPluginProperty
BOOLEAN_STRING_TRUE, DEFAULT_BOOLEAN_VALUE, DEFAULT_DOUBLE_VALUE, DEFAULT_INTEGER_VALUE, DEFAULT_STRING_VALUE
-
-
Constructor Summary
Constructors Constructor Description IntegerPluginProperty(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)voidsaveToPreferences(Preferences node)-
Methods inherited from class org.apache.hop.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
-
IntegerPluginProperty
public IntegerPluginProperty(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 interfaceIPluginProperty- Returns:
- true if value not null or 'false'.
-
appendXml
public void appendXml(StringBuilder builder)
- Specified by:
appendXmlin interfaceIPluginProperty- Parameters:
builder- builder to append to.
-
loadXml
public void loadXml(Node node)
- Specified by:
loadXmlin interfaceIPluginProperty- Parameters:
node- the node.
-
saveToPreferences
public void saveToPreferences(Preferences node)
- Specified by:
saveToPreferencesin interfaceIPluginProperty- Parameters:
node- preferences node
-
readFromPreferences
public void readFromPreferences(Preferences node)
- Specified by:
readFromPreferencesin interfaceIPluginProperty- Parameters:
node- preferences node.
-
-