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, sequencePropertypublic static DataModelReflection convert(DataModelDefinition<?> definition, com.google.gson.JsonElement element) throws IOException
DataModelReflection.definition - structure of DataModelReflectionelement - conversion targetIOException - if failed to convertIllegalArgumentException - if some parameters were nullpublic void booleanProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerBoolean property.booleanProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void byteProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerByte property.byteProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void shortProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerShort property.shortProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void intProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerInteger property.intProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void longProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerLong property.longProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void integerProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerBigInteger property.integerProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void floatProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerFloat property.floatProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void doubleProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerDouble property.doubleProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void decimalProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerBigDecimal property.decimalProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void stringProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerString property.stringProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void dateProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerPropertyType.DATE property.dateProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void timeProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerPropertyType.TIME property.timeProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionpublic void datetimeProperty(PropertyName name, com.google.gson.JsonObject context) throws IOException
DataModelScannerPropertyType.DATETIME property.datetimeProperty in class DataModelScanner<com.google.gson.JsonObject,IOException>name - property namecontext - context object (specified in DataModelScanner.scan(DataModelDefinition, Object))IOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.