T - the bean typepublic abstract class DirectFieldsBeanBuilder<T extends Bean> extends Object implements BeanBuilder<T>
This implementation is intended to have fields generated in the subclass.
| Modifier | Constructor and Description |
|---|---|
protected |
DirectFieldsBeanBuilder()
Constructs the builder.
|
| Modifier and Type | Method and Description |
|---|---|
<P> P |
get(MetaProperty<P> metaProperty)
Gets the value of a single property previously added to the builder.
|
Object |
get(String propertyName)
Gets the value of a single property previously added to the builder.
|
BeanBuilder<T> |
set(MetaProperty<?> metaProperty,
Object value)
Sets the value of a single property into the builder.
|
String |
toString()
Returns a string that summarises the builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuild, setprotected DirectFieldsBeanBuilder()
public Object get(String propertyName)
BeanBuilderget in interface BeanBuilder<T extends Bean>propertyName - the property name to query, not nullpublic <P> P get(MetaProperty<P> metaProperty)
BeanBuilderget in interface BeanBuilder<T extends Bean>P - the type of the property.metaProperty - the meta-property to query, not nullpublic 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 to set, not nullvalue - the property value, may be nullthis, for chaining, not nullCopyright © 2007–2017 Joda.org. All rights reserved.