|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.impl.BasicImmutableBeanBuilder<T>
T - the bean typepublic abstract class BasicImmutableBeanBuilder<T extends Bean>
Basic implementation of BeanBuilder that wraps a MetaBean.
The subclass implementation generally has concrete fields for each property.
This class has effectively been replaced by AbstractBeanBuilder.
| Constructor Summary | |
|---|---|
BasicImmutableBeanBuilder(MetaBean meta)
Constructs the builder. |
|
| Method Summary | |
|---|---|
BeanBuilder<T> |
set(MetaProperty<?> metaProperty,
Object value)
Sets the value of a single property into the builder. |
BeanBuilder<T> |
setAll(Map<String,? extends Object> propertyValueMap)
Sets the value of a map of properties into the builder. |
BeanBuilder<T> |
setString(MetaProperty<?> metaProperty,
String value)
Sets the value of a single property into the builder. |
BeanBuilder<T> |
setString(String propertyName,
String value)
Sets the value of a single property into the builder. |
String |
toString()
Returns a string that summarises the builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.joda.beans.BeanBuilder |
|---|
build, set |
| Constructor Detail |
|---|
public BasicImmutableBeanBuilder(MetaBean meta)
meta - the meta-bean, not null| Method Detail |
|---|
public BeanBuilder<T> set(MetaProperty<?> metaProperty,
Object value)
BeanBuilder
This will normally behave as per a Map, however it may not
and as a general rule callers should only set each property once.
set in interface BeanBuilder<T extends Bean>metaProperty - the meta-property, not nullvalue - the property value, may be null
this, for chaining, not null
public BeanBuilder<T> setString(String propertyName,
String value)
BeanBuilderThis converts the string to the correct type for the property. Conversion uses Joda-Convert.
This will normally behave as per a Map, however it may not
and as a general rule callers should only set each property once.
setString in interface BeanBuilder<T extends Bean>propertyName - the property name, not nullvalue - the property value, may be null
this, for chaining, not null
public BeanBuilder<T> setString(MetaProperty<?> metaProperty,
String value)
BeanBuilderThis converts the string to the correct type for the property. Conversion uses Joda-Convert.
This will normally behave as per a Map, however it may not
and as a general rule callers should only set each property once.
setString in interface BeanBuilder<T extends Bean>metaProperty - the meta-property name, not nullvalue - the property value, may be null
this, for chaining, not nullpublic BeanBuilder<T> setAll(Map<String,? extends Object> propertyValueMap)
BeanBuilder
Each map entry is used as the input to BeanBuilder.set(String, Object).
This will normally behave as per a Map, however it may not
and as a general rule callers should only set each property once.
setAll in interface BeanBuilder<T extends Bean>propertyValueMap - the property name to value map, not null
this, for chaining, not nullpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||