Class StringValue
- java.lang.Object
-
- no.priv.bang.modeling.modelstore.value.ValueBase
-
- no.priv.bang.modeling.modelstore.value.StringValue
-
- All Implemented Interfaces:
Value
class StringValue extends ValueBase
Wraps aString
value in aPropertyset
. Will return well defined values if asked to return a different property type.
-
-
Constructor Summary
Constructors Constructor Description StringValue(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
asBoolean()
Propertyset
asComplexProperty()
Double
asDouble()
ValueList
asList()
Long
asLong()
Propertyset
asReference()
String
asString()
boolean
equals(Object obj)
int
hashCode()
boolean
isString()
String
toString()
-
Methods inherited from class no.priv.bang.modeling.modelstore.value.ValueBase
asId, isBoolean, isComplexProperty, isDouble, isId, isList, isLong, isReference
-
-
-
-
Field Detail
-
value
private String value
-
-
Constructor Detail
-
StringValue
StringValue(String value)
-
-
Method Detail
-
isString
public boolean isString()
-
asBoolean
public Boolean asBoolean()
-
asLong
public Long asLong()
-
asDouble
public Double asDouble()
-
asString
public String asString()
-
asComplexProperty
public Propertyset asComplexProperty()
-
asReference
public Propertyset asReference()
-
asList
public ValueList asList()
-
-