org.joda.beans.impl.direct
Class DirectBeanBuilder<T extends DirectBean>

java.lang.Object
  extended by org.joda.beans.impl.BasicBeanBuilder<T>
      extended by org.joda.beans.impl.direct.DirectBeanBuilder<T>
All Implemented Interfaces:
BeanBuilder<T>

public class DirectBeanBuilder<T extends DirectBean>
extends BasicBeanBuilder<T>

Implementation of BeanBuilder that validates the resulting bean.

This implementation ensures that all the setters are called.

Author:
Stephen Colebourne

Constructor Summary
DirectBeanBuilder(T bean)
          Constructs the builder wrapping the target bean.
 
Method Summary
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, getTargetBean, set, set, setAll, setString, setString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class BasicBeanBuilder<T extends DirectBean>
Parameters:
bean - the bean to validate, not null


Copyright © 2007-2013 Joda.org. All Rights Reserved.