T - type of data modelpublic static class DataModelDefinition.Builder<T> extends Object
DataModelReflection.| Modifier and Type | Field and Description |
|---|---|
protected DataModelDefinition<T> |
definition
The current definition object.
|
protected Map<PropertyName,Object> |
properties
The current properties (includes
null values). |
| Constructor and Description |
|---|
Builder(DataModelDefinition<T> definition)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
DataModelDefinition.Builder<T> |
add(PropertyName name,
Object value)
Adds a property to the building object.
|
DataModelReflection |
build()
Builds a reflection object with since added properties.
|
protected final DataModelDefinition<T> definition
protected final Map<PropertyName,Object> properties
null values).public Builder(DataModelDefinition<T> definition)
definition - the target model definition objectIllegalArgumentException - if some parameters were nullpublic DataModelDefinition.Builder<T> add(PropertyName name, Object value)
name - the property namevalue - the property value (nullable)IllegalArgumentException - if the property is not defined (on check = true),
or the property value has inconsistent type,
or some parameters were nullIllegalStateException - the property has been already addedpublic DataModelReflection build()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.