| 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.light |
Implementation of light immutable Joda-Beans.
|
| 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.ser |
Serialization of Joda-Beans.
|
| org.joda.beans.ser.bin |
Serialization of Joda-Beans using a binary format.
|
| org.joda.beans.ser.json |
Serialization of Joda-Beans using JSON.
|
| org.joda.beans.ser.map | |
| org.joda.beans.ser.xml |
Serialization of Joda-Beans using XML.
|
| 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.
|
interface |
TypedMetaBean<T extends Bean>
A meta-bean that captures the type of the bean.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DynamicBean
A dynamic bean that allows properties to be added and removed.
|
interface |
ImmutableBean
An immutable bean consisting of a set of properties.
|
| 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)
Clones a bean.
|
static <T extends Bean> |
JodaBeanUtils.cloneAlways(T original)
Clones a bean always.
|
| Modifier and Type | Method and Description |
|---|---|
static Iterator<Bean> |
JodaBeanUtils.beanIterator(Bean bean)
Returns an iterator over all the beans contained within the bean.
|
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 <P> Function<Bean,P> |
JodaBeanUtils.chain(Function<Bean,? extends Bean> fn1,
MetaProperty<P> mp2)
Chains a function to a meta-property.
|
static <P> Function<Bean,P> |
JodaBeanUtils.chain(MetaProperty<? extends Bean> mp1,
MetaProperty<P> mp2)
Chains two meta-properties together.
|
static Comparator<Bean> |
JodaBeanUtils.comparator(Function<Bean,?> query,
boolean ascending)
Obtains a comparator for the specified bean query.
|
static Comparator<Bean> |
JodaBeanUtils.comparatorAscending(Function<Bean,?> query)
Obtains an ascending comparator for the specified bean query.
|
static Comparator<Bean> |
JodaBeanUtils.comparatorDescending(Function<Bean,?> query)
Obtains an descending comparator for the specified bean query.
|
| Modifier and Type | Method and Description |
|---|---|
static Iterator<Bean> |
JodaBeanUtils.beanIterator(Bean bean)
Returns an iterator over all the beans contained within the bean.
|
default Property<P> |
MetaProperty.createProperty(Bean bean)
Creates a property that binds this meta-property to a specific bean.
|
static boolean |
JodaBeanUtils.equalIgnoring(Bean bean1,
Bean bean2,
MetaProperty<?>... properties)
Checks if two beans are equal ignoring one or more properties.
|
static Map<String,Object> |
JodaBeanUtils.flatten(Bean bean)
Flattens a bean to a
Map. |
P |
MetaProperty.get(Bean bean)
Gets the value of the property for the specified bean.
|
default String |
MetaProperty.getString(Bean bean)
Gets the value of the property for the specified bean converted to a string.
|
default String |
MetaProperty.getString(Bean bean,
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.
|
default 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.
|
default void |
MetaProperty.setString(Bean bean,
String value)
Sets the value of the property on the specified bean from a string by conversion.
|
default void |
MetaProperty.setString(Bean bean,
String value,
StringConvert stringConvert)
Sets the value of the property on the specified bean from a string by conversion.
|
| Modifier and Type | Method and Description |
|---|---|
static <P> Function<Bean,P> |
JodaBeanUtils.chain(Function<Bean,? extends Bean> fn1,
MetaProperty<P> mp2)
Chains a function to a meta-property.
|
static <P> Function<Bean,P> |
JodaBeanUtils.chain(Function<Bean,? extends Bean> fn1,
MetaProperty<P> mp2)
Chains a function to a meta-property.
|
static <P> Function<Bean,P> |
JodaBeanUtils.chain(MetaProperty<? extends Bean> mp1,
MetaProperty<P> mp2)
Chains two meta-properties together.
|
static Comparator<Bean> |
JodaBeanUtils.comparator(Function<Bean,?> query,
boolean ascending)
Obtains a comparator for the specified bean query.
|
static Comparator<Bean> |
JodaBeanUtils.comparatorAscending(Function<Bean,?> query)
Obtains an ascending comparator for the specified bean query.
|
static Comparator<Bean> |
JodaBeanUtils.comparatorDescending(Function<Bean,?> query)
Obtains an descending comparator for the specified bean query.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicBeanBuilder<T extends Bean>
Basic implementation of
BeanBuilder that wraps a real bean. |
class |
BasicImmutableBeanBuilder<T extends Bean>
Basic implementation of
BeanBuilder that wraps a MetaBean. |
class |
BufferingBeanBuilder<T extends Bean>
Implementation of
BeanBuilder that buffers data in a local map. |
| 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 |
|---|---|
P |
StandaloneMetaProperty.get(Bean bean) |
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.
|
void |
StandaloneMetaProperty.set(Bean bean,
Object value) |
| Modifier and Type | Class and Description |
|---|---|
class |
DirectBeanBuilder<T extends Bean>
A builder implementation designed for use by the code generator.
|
class |
DirectFieldsBeanBuilder<T extends Bean>
A builder implementation designed for use by the code generator.
|
class |
DirectPrivateBeanBuilder<T extends Bean>
A builder implementation designed for use by the code generator.
|
class |
MinimalMetaBean<T extends Bean>
A meta-bean implementation designed for use by the code generator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DirectBean
A bean implementation designed for use by the code generator.
|
| Modifier and Type | Method and Description |
|---|---|
static <B extends Bean> |
MinimalMetaBean.of(Class<B> beanType,
Supplier<BeanBuilder<B>> builderSupplier,
Function<B,Object>... getters)
Obtains an instance of the meta-bean for immutable beans.
|
static <B extends Bean> |
MinimalMetaBean.of(Class<B> beanType,
Supplier<BeanBuilder<B>> builderSupplier,
List<Function<B,Object>> getters,
List<BiConsumer<B,Object>> setters)
Obtains an instance of the meta-bean for mutable beans.
|
| Modifier and Type | Method and Description |
|---|---|
P |
DirectMetaProperty.get(Bean bean) |
protected Object |
DirectMetaBean.propertyGet(Bean bean,
String propertyName,
boolean quiet)
Gets the value of the property.
|
protected void |
DirectMetaBean.propertySet(Bean bean,
String propertyName,
Object value,
boolean quiet)
Sets the value of the property.
|
void |
DirectMetaProperty.set(Bean bean,
Object value) |
protected void |
DirectMetaBean.validate(Bean bean)
Validates the values of the properties.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FlexiBean
Implementation of a fully dynamic
Bean. |
| Modifier and Type | Class and Description |
|---|---|
class |
LightMetaBean<T extends Bean>
A meta-bean implementation that operates using method handles.
|
| Modifier and Type | Method and Description |
|---|---|
static <B extends Bean> |
LightMetaBean.of(Class<B> beanClass)
Deprecated.
Use method handles version of this method
|
static <B extends Bean> |
LightMetaBean.of(Class<B> beanType,
MethodHandles.Lookup lookup,
Object... defaultValues)
Obtains an instance of the meta-bean.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MapBean
Implementation of a fully dynamic
Bean based on an exposed Map. |
| Modifier and Type | Class and Description |
|---|---|
class |
ReflectiveMetaBean<T extends Bean>
A meta-bean implementation that uses reflection.
|
| Modifier and Type | Method and Description |
|---|---|
static <B extends Bean> |
ReflectiveMetaBean.of(Class<B> beanClass,
String... propertyNames)
Create a meta-bean and meta properties.
|
| 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 |
|---|---|
static Object |
SerOptional.extractValue(MetaProperty<?> metaProp,
Bean bean)
Extracts the value of the property from a bean, unwrapping any optional.
|
| Modifier and Type | Method and Description |
|---|---|
Bean |
JodaBeanBinReader.read(byte[] input)
Reads and parses to a bean.
|
Bean |
JodaBeanBinReader.read(InputStream input)
Reads and parses to a bean.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
JodaBeanBinWriter.write(Bean bean)
Writes the bean to an array of bytes.
|
byte[] |
JodaBeanBinWriter.write(Bean bean,
boolean rootType)
Writes the bean to an array of bytes.
|
void |
JodaBeanBinWriter.write(Bean bean,
boolean rootType,
OutputStream output)
Writes the bean to the
OutputStream. |
void |
JodaBeanBinWriter.write(Bean bean,
OutputStream output)
Writes the bean to the
OutputStream. |
| Modifier and Type | Method and Description |
|---|---|
Bean |
JodaBeanJsonReader.read(Reader input)
Reads and parses to a bean.
|
Bean |
JodaBeanJsonReader.read(String input)
Reads and parses to a bean.
|
| Modifier and Type | Method and Description |
|---|---|
String |
JodaBeanSimpleJsonWriter.write(Bean bean)
Writes the bean to a string.
|
String |
JodaBeanJsonWriter.write(Bean bean)
Writes the bean to a string.
|
void |
JodaBeanSimpleJsonWriter.write(Bean bean,
Appendable output)
Writes the bean to the
Appendable. |
void |
JodaBeanJsonWriter.write(Bean bean,
Appendable output)
Writes the bean to the
Appendable. |
String |
JodaBeanJsonWriter.write(Bean bean,
boolean rootType)
Writes the bean to a string specifying whether to include the type at the root.
|
void |
JodaBeanJsonWriter.write(Bean bean,
boolean rootType,
Appendable output)
Writes the bean to the
Appendable specifying whether to include the type at the root. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
JodaBeanSimpleMapWriter.write(Bean bean)
Writes the bean to a string.
|
| Modifier and Type | Method and Description |
|---|---|
Bean |
JodaBeanXmlReader.read(InputStream input)
Reads and parses to a bean.
|
Bean |
JodaBeanXmlReader.read(Reader input)
Reads and parses to a bean.
|
Bean |
JodaBeanXmlReader.read(String input)
Reads and parses to a bean.
|
| Modifier and Type | Method and Description |
|---|---|
String |
JodaBeanXmlWriter.write(Bean bean)
Writes the bean to a string.
|
String |
JodaBeanXmlWriter.write(Bean bean,
boolean rootType)
Writes the bean to a string.
|
StringBuilder |
JodaBeanXmlWriter.writeToBuilder(Bean bean)
Writes the bean to the
StringBuilder. |
StringBuilder |
JodaBeanXmlWriter.writeToBuilder(Bean bean,
boolean rootType)
Writes the bean to the
StringBuilder. |
| 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(Bean expected,
Bean actual,
double tolerance)
Asserts that two beans are equal, providing a better error message.
|
static void |
BeanAssert.assertBeanEquals(String baseMsg,
Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message.
|
static void |
BeanAssert.assertBeanEquals(String baseMsg,
Bean expected,
Bean actual,
double tolerance)
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(Bean expected,
Bean actual,
double tolerance)
Asserts that two beans are equal, providing a better error message.
|
static void |
BeanAssert.assertBeanEqualsFullDetail(String baseMsg,
Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message, with
an unlimited number of errors reported.
|
static void |
BeanAssert.assertBeanEqualsFullDetail(String baseMsg,
Bean expected,
Bean actual,
double tolerance)
Asserts that two beans are equal, providing a better error message, with
an unlimited number of errors reported.
|
static void |
JodaBeanTests.coverBeanEquals(Bean bean1,
Bean bean2)
Test a bean equals method for the primary purpose of increasing test coverage.
|
static void |
JodaBeanTests.coverMutableBean(Bean bean)
Test a mutable bean for the primary purpose of increasing test coverage.
|
Copyright © 2007–2017 Joda.org. All rights reserved.