org.qi4j.spi.property
Interface ValueType
public interface ValueType
Base class for types of values in ValueComposites.
type
TypeName type()
isNumber
boolean isNumber()
isBoolean
boolean isBoolean()
isString
boolean isString()
isValue
boolean isValue()
isDate
boolean isDate()
isEnum
boolean isEnum()
types
List<PropertyType> types()
toJSON
void toJSON(Object value,
JSONWriter json)
throws JSONException
- Throws:
JSONException
toJSON
Object toJSON(Object value)
throws JSONException
- Throws:
JSONException
fromJSON
Object fromJSON(Object object,
Module module)
throws JSONException
- Throws:
JSONException
toQueryParameter
String toQueryParameter(Object value)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
fromQueryParameter
Object fromQueryParameter(String parameter,
Module module)
throws IllegalArgumentException,
JSONException
- Throws:
IllegalArgumentException
JSONException