|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.fge.uritemplate.vars.values.VariableValue
public abstract class VariableValue
Abstract class for one variable value
Field Summary | |
---|---|
protected static MessageBundle |
BUNDLE
|
Constructor Summary | |
---|---|
protected |
VariableValue(ValueType type)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final MessageBundle BUNDLE
Constructor Detail |
---|
protected VariableValue(ValueType type)
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |