org.qi4j.spi.property
Interface ValueType


public interface ValueType

Base class for types of values in ValueComposites.


Method Summary
 Object fromJSON(Object object, Module module)
           
 Object fromQueryParameter(String parameter, Module module)
           
 boolean isBoolean()
           
 boolean isDate()
           
 boolean isEnum()
           
 boolean isNumber()
           
 boolean isString()
           
 boolean isValue()
           
 Object toJSON(Object value)
           
 void toJSON(Object value, JSONWriter json)
           
 String toQueryParameter(Object value)
           
 TypeName type()
           
 List<PropertyType> types()
           
 

Method Detail

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