public abstract class VariableValue extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static MessageBundle |
BUNDLE |
| Modifier | Constructor and Description |
|---|---|
protected |
VariableValue(ValueType type) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getListValue()
Get a list for this value
|
Map<String,String> |
getMapValue()
Get a map for this value
|
String |
getScalarValue()
Get a simple string for this value
|
ValueType |
getType()
Get the type for this value
|
abstract boolean |
isEmpty()
Tell whether this value is empty
|
protected static final MessageBundle BUNDLE
protected VariableValue(ValueType type)
public final ValueType getType()
public String getScalarValue()
Only valid for string values
IllegalArgumentException - value is not a string valuepublic List<String> getListValue()
Only valid for list values
IllegalArgumentException - value is not a list valuepublic Map<String,String> getMapValue()
Only valid for map values
IllegalArgumentException - value is not a map valuepublic abstract boolean isEmpty()
For strings, this tells whether the string itself is empty. For lists and maps, this tells whether the list or map have no elements/entries.
Copyright © 2013. All Rights Reserved.