public final class JsonObjectDriver extends DataModelScanner<com.google.gson.JsonObject,IOException>
DataModelReflection
.Modifier and Type | Method and Description |
---|---|
void |
booleanProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
Boolean property. |
void |
byteProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
Byte property. |
static DataModelReflection |
convert(DataModelDefinition<?> definition,
com.google.gson.JsonElement element)
Converts JsonElement into a corresponded
DataModelReflection . |
void |
dateProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
PropertyType.DATE property. |
void |
datetimeProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
PropertyType.DATETIME property. |
void |
decimalProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
BigDecimal property. |
void |
doubleProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
Double property. |
void |
floatProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
Float property. |
void |
integerProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
BigInteger property. |
void |
intProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
Integer property. |
void |
longProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
Long property. |
void |
shortProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
Short property. |
void |
stringProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
String property. |
void |
timeProperty(PropertyName name,
com.google.gson.JsonObject context)
Invoked each
PropertyType.TIME property. |
anyProperty, objectProperty, scan, scan, sequenceProperty
public static DataModelReflection convert(DataModelDefinition<?> definition, com.google.gson.JsonElement element) throws IOException
DataModelReflection
.definition
- structure of DataModelReflection
element
- conversion targetIOException
- if failed to convertIllegalArgumentException
- if some parameters were null
public void booleanProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
Boolean
property.booleanProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void byteProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
Byte
property.byteProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void shortProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
Short
property.shortProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void intProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
Integer
property.intProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void longProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
Long
property.longProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void integerProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
BigInteger
property.integerProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void floatProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
Float
property.floatProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void doubleProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
Double
property.doubleProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void decimalProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
BigDecimal
property.decimalProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void stringProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
String
property.stringProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void dateProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
PropertyType.DATE
property.dateProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void timeProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
PropertyType.TIME
property.timeProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
public void datetimeProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScanner
PropertyType.DATETIME
property.datetimeProperty
in class DataModelScanner<com.google.gson.JsonObject,IOException>
name
- property namecontext
- context object (specified in DataModelScanner.scan(DataModelDefinition, Object)
)IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.