Package | Description |
---|---|
org.joda.beans |
Base interfaces and annotations defining Joda-Beans.
|
org.joda.beans.impl |
Base implementations of Joda-Bean interfaces.
|
org.joda.beans.impl.direct |
Implementation of Joda-Beans designed for extension by the code generator.
|
org.joda.beans.impl.flexi |
Implementation of Joda-Beans as a flexible map of data.
|
org.joda.beans.impl.map |
Implementation of Joda-Beans extending a map.
|
org.joda.beans.impl.reflection |
Implementation of Joda-Beans using reflection.
|
org.joda.beans.integrate.freemarker |
Integration of Joda-Beans and Freemarker.
|
org.joda.beans.integrate.mongo |
Integration of Joda-Beans and MongoDB.
|
org.joda.beans.query |
Support for the BeanQuery interface.
|
org.joda.beans.test |
Utility to assist with testing and comparing Joda-Beans.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BeanBuilder<T extends Bean>
A builder for a bean, providing a safe way to create it.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DynamicBean
A dynamic bean that allows properties to be added and removed.
|
Modifier and Type | Method and Description |
---|---|
<B extends Bean> |
Property.bean()
Gets the bean which owns this property.
|
static <T extends Bean> |
JodaBeanUtils.clone(T original) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Bean> |
MetaBean.beanType()
Get the type of the bean represented as a
Class . |
BeanBuilder<? extends Bean> |
MetaBean.builder()
Creates a bean builder that can be used to create an instance of this bean.
|
static Comparator<Bean> |
JodaBeanUtils.comparator(BeanQuery<?> query,
boolean ascending)
Obtains a comparator for the specified bean query.
|
static Comparator<Bean> |
JodaBeanUtils.comparatorAscending(BeanQuery<?> query)
Obtains an ascending comparator for the specified bean query.
|
static Comparator<Bean> |
JodaBeanUtils.comparatorDescending(BeanQuery<?> query)
Obtains an descending comparator for the specified bean query.
|
Modifier and Type | Method and Description |
---|---|
Property<P> |
MetaProperty.createProperty(Bean bean)
Creates a property that binds this meta-property to a specific bean.
|
PropertyMap |
MetaBean.createPropertyMap(Bean bean)
Creates a map of properties for the specified bean.
|
P |
MetaProperty.get(Bean bean)
Gets the value of the property for the specified bean.
|
P |
BeanQuery.get(Bean bean)
Queries a value from the specified bean.
|
String |
MetaProperty.getString(Bean bean)
Gets the value of the property for the specified bean converted to a string.
|
String |
MetaProperty.getString(Bean bean,
org.joda.convert.StringConvert stringConvert)
Gets the value of the property for the specified bean converted to a string.
|
static boolean |
JodaBeanUtils.propertiesEqual(Bean bean1,
Bean bean2)
Checks if the two beans have the same set of properties.
|
static int |
JodaBeanUtils.propertiesHashCode(Bean bean)
Returns a hash code based on the set of properties on a bean.
|
static String |
JodaBeanUtils.propertiesToString(Bean bean,
String prefix)
Returns a string describing the set of properties on a bean.
|
P |
MetaProperty.put(Bean bean,
Object value)
Sets the value of the property on the associated bean and returns the previous value.
|
void |
MetaProperty.set(Bean bean,
Object value)
Sets the value of the property on the specified bean.
|
void |
MetaProperty.setString(Bean bean,
String value)
Sets the value of the property on the specified bean from a string by conversion.
|
void |
MetaProperty.setString(Bean bean,
String value,
org.joda.convert.StringConvert stringConvert)
Sets the value of the property on the specified bean from a string by conversion.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicBeanBuilder<T extends Bean>
Basic implementation of
BeanBuilder that wraps a real bean. |
Modifier and Type | Class and Description |
---|---|
class |
BasicBean
Basic implementation of
Bean intended for applications to subclass. |
Modifier and Type | Method and Description |
---|---|
<B extends Bean> |
BasicProperty.bean() |
Modifier and Type | Method and Description |
---|---|
Property<P> |
BasicMetaProperty.createProperty(Bean bean) |
PropertyMap |
BasicMetaBean.createPropertyMap(Bean bean) |
String |
BasicMetaProperty.getString(Bean bean) |
String |
BasicMetaProperty.getString(Bean bean,
org.joda.convert.StringConvert stringConvert) |
static BasicPropertyMap |
BasicPropertyMap.of(Bean bean)
Factory to create a property map avoiding duplicate generics.
|
static <P> BasicProperty<P> |
BasicProperty.of(Bean bean,
MetaProperty<P> metaProperty)
Factory to create a property avoiding duplicate generics.
|
P |
BasicMetaProperty.put(Bean bean,
Object value) |
void |
BasicMetaProperty.setString(Bean bean,
String value) |
void |
BasicMetaProperty.setString(Bean bean,
String value,
org.joda.convert.StringConvert stringConvert) |
Modifier and Type | Class and Description |
---|---|
class |
DirectBean
A bean implementation designed for use by the code generator.
|
Modifier and Type | Method and Description |
---|---|
P |
DirectMetaProperty.get(Bean bean) |
void |
DirectMetaProperty.set(Bean bean,
Object value) |
Modifier and Type | Class and Description |
---|---|
class |
FlexiBean
Implementation of a fully dynamic
Bean . |
Modifier and Type | Class and Description |
---|---|
class |
MapBean
Implementation of a fully dynamic
Bean based on an exposed Map . |
Modifier and Type | Method and Description |
---|---|
static <B extends Bean> |
ReflectiveMetaBean.of(Class<B> beanClass)
Factory to create a meta-bean avoiding duplicate generics.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Bean> |
ReflectiveMetaBean.beanType() |
BeanBuilder<Bean> |
ReflectiveMetaBean.builder() |
Modifier and Type | Method and Description |
---|---|
Property<P> |
ReflectiveMetaProperty.createProperty(Bean bean) |
PropertyMap |
ReflectiveMetaBean.createPropertyMap(Bean bean) |
P |
ReflectiveMetaProperty.get(Bean bean) |
void |
ReflectiveMetaProperty.set(Bean bean,
Object value) |
Modifier and Type | Method and Description |
---|---|
static <P> ReflectiveMetaProperty<P> |
ReflectiveMetaProperty.of(Class<? extends Bean> beanType,
String propertyName)
Factory to create a meta-property avoiding duplicate generics.
|
Constructor and Description |
---|
FreemarkerTemplateModel(Bean bean,
FreemarkerObjectWrapper wrapper)
Creates an instance of the model.
|
Constructor and Description |
---|
BeanMongoDBObject(Bean bean)
Creates an instance wrapping a bean.
|
Modifier and Type | Method and Description |
---|---|
P |
ChainedBeanQuery.get(Bean bean) |
Modifier and Type | Method and Description |
---|---|
static <P> ChainedBeanQuery<P> |
ChainedBeanQuery.of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<? extends Bean> prop3,
BeanQuery<P> prop4)
Obtains a chained query from four queries.
|
static <P> ChainedBeanQuery<P> |
ChainedBeanQuery.of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<? extends Bean> prop3,
BeanQuery<P> prop4)
Obtains a chained query from four queries.
|
static <P> ChainedBeanQuery<P> |
ChainedBeanQuery.of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<? extends Bean> prop3,
BeanQuery<P> prop4)
Obtains a chained query from four queries.
|
static <P> ChainedBeanQuery<P> |
ChainedBeanQuery.of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<P> prop3)
Obtains a chained query from three queries.
|
static <P> ChainedBeanQuery<P> |
ChainedBeanQuery.of(BeanQuery<? extends Bean> prop1,
BeanQuery<? extends Bean> prop2,
BeanQuery<P> prop3)
Obtains a chained query from three queries.
|
static <P> ChainedBeanQuery<P> |
ChainedBeanQuery.of(BeanQuery<? extends Bean> prop1,
BeanQuery<P> prop2)
Obtains a chained query from two other queries.
|
Modifier and Type | Method and Description |
---|---|
static void |
BeanAssert.assertBeanEquals(Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message.
|
static void |
BeanAssert.assertBeanEquals(String message,
Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message.
|
static void |
BeanAssert.assertBeanEqualsFullDetail(Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message.
|
static void |
BeanAssert.assertBeanEqualsFullDetail(String message,
Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message, with
an unlimited number of errors reported.
|
Copyright © 2007–2013 Joda.org. All rights reserved.