Package org.joda.beans.impl.direct
Class DirectBeanBuilder<T extends Bean>
- java.lang.Object
-
- org.joda.beans.impl.BasicBeanBuilder<T>
-
- org.joda.beans.impl.direct.DirectBeanBuilder<T>
-
- Type Parameters:
T
- the bean type
- All Implemented Interfaces:
BeanBuilder<T>
public class DirectBeanBuilder<T extends Bean> extends BasicBeanBuilder<T>
A builder implementation designed for use by the code generator.This implementation adds validation on top of basic builder functionality.
-
-
Constructor Summary
Constructors Constructor Description DirectBeanBuilder(T bean)
Constructs the builder wrapping the target bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
validate(T bean)
Hook to allow a subclass to validate the bean.-
Methods inherited from class org.joda.beans.impl.BasicBeanBuilder
build, get, get, getTargetBean, set, set, toString
-
-
-
-
Constructor Detail
-
DirectBeanBuilder
public DirectBeanBuilder(T bean)
Constructs the builder wrapping the target bean.- Parameters:
bean
- the target bean, not null
-
-
Method Detail
-
validate
protected void validate(T bean)
Description copied from class:BasicBeanBuilder
Hook to allow a subclass to validate the bean.- Overrides:
validate
in classBasicBeanBuilder<T extends Bean>
- Parameters:
bean
- the bean to validate, not null
-
-