| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
TEST_COVERAGE_STRING |
This constant can be used to pass into
setString() to increase test coverage. |
| Constructor | Description |
|---|---|
DirectMetaBean() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isBuildable() |
Checks whether this bean is buildable or not.
|
<R> MetaProperty<R> |
metaProperty(java.lang.String propertyName) |
Gets a meta-property by name.
|
protected MetaProperty<?> |
metaPropertyGet(java.lang.String propertyName) |
Gets the meta-property by name.
|
protected java.lang.Object |
propertyGet(Bean bean,
java.lang.String propertyName,
boolean quiet) |
Gets the value of the property.
|
protected void |
propertySet(Bean bean,
java.lang.String propertyName,
java.lang.Object value,
boolean quiet) |
Sets the value of the property.
|
java.lang.String |
toString() |
Returns a string that summarises the meta-bean.
|
protected void |
validate(Bean bean) |
Validates the values of the properties.
|
annotation, annotations, beanName, beanType, builder, metaPropertyCount, metaPropertyExists, metaPropertyIterable, metaPropertyMap, of, registerpublic static final java.lang.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(java.lang.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(java.lang.String propertyName)
This implementation returns null, and must be overridden in subclasses.
propertyName - the property name, not nullprotected java.lang.Object propertyGet(Bean bean, java.lang.String propertyName, boolean quiet)
bean - the bean to query, not nullpropertyName - the property name, not nullquiet - true to return null if unable to readjava.util.NoSuchElementException - if the property name is invalidprotected void propertySet(Bean bean, java.lang.String propertyName, java.lang.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 writejava.util.NoSuchElementException - if the property name is invalidprotected void validate(Bean bean)
bean - the bean to validate, not nulljava.lang.RuntimeException - if a property is invalidpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007–2018 Joda.org. All rights reserved.