| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_COVERAGE_STRING
This constant can be used to pass into
setString() to increase test coverage. |
| Constructor and Description |
|---|
DirectMetaBean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBuildable()
Checks whether this bean is buildable or not.
|
<R> MetaProperty<R> |
metaProperty(String propertyName)
Gets a meta-property by name.
|
protected MetaProperty<?> |
metaPropertyGet(String propertyName)
Gets the meta-property by name.
|
protected Object |
propertyGet(Bean bean,
String propertyName,
boolean quiet)
Gets the value of the property.
|
protected void |
propertySet(Bean bean,
String propertyName,
Object value,
boolean quiet)
Sets the value of the property.
|
String |
toString()
Returns a string that summarises the meta-bean.
|
protected void |
validate(Bean bean)
Validates the values of the properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitannotation, annotations, beanName, beanType, builder, metaPropertyCount, metaPropertyExists, metaPropertyIterable, metaPropertyMap, of, registerpublic static final String TEST_COVERAGE_STRING
setString() to increase test coverage.public boolean isBuildable()
MetaBean
A buildable bean can be constructed using MetaBean.builder().
If this method returns true then builder() must return a valid builder.
If this method returns false then builder() must throw UnsupportedOperationException.
isBuildable in interface MetaBeanpublic <R> MetaProperty<R> metaProperty(String propertyName)
MetaBeanEach meta-bean manages a single bean with a known set of properties. This method returns the property with the specified name.
The base interface throws an exception if the name is not recognised.
By contrast, the DynamicMetaBean subinterface creates the property on demand.
metaProperty in interface MetaBeanR - the property type, optional, enabling auto-castingpropertyName - the property name to retrieve, not nullprotected MetaProperty<?> metaPropertyGet(String propertyName)
This implementation returns null, and must be overridden in subclasses.
propertyName - the property name, not nullprotected Object propertyGet(Bean bean, String propertyName, boolean quiet)
bean - the bean to query, not nullpropertyName - the property name, not nullquiet - true to return null if unable to readNoSuchElementException - if the property name is invalidprotected void propertySet(Bean bean, String propertyName, Object value, boolean quiet)
bean - the bean to update, not nullpropertyName - the property name, not nullvalue - the value of the property, may be nullquiet - true to take no action if unable to writeNoSuchElementException - if the property name is invalidprotected void validate(Bean bean)
bean - the bean to validate, not nullRuntimeException - if a property is invalidCopyright © 2007–2017 Joda.org. All rights reserved.