org.joda.beans
Interface BeanQuery<P>

Type Parameters:
P - the type of the property content
All Known Subinterfaces:
MetaProperty<P>
All Known Implementing Classes:
BasicMetaProperty, ChainedBeanQuery, DirectMetaProperty, ReflectiveMetaProperty, StandaloneMetaProperty

public interface BeanQuery<P>

A query based on beans.

The query interface provides the simplest way to query beans.


Method Summary
 P get(Bean bean)
          Queries a value from the specified bean.
 

Method Detail

get

P get(Bean bean)
Queries a value from the specified bean.

This returns a value of some kind derived from the specified bean. This might be a property value or some other derived value.

Parameters:
bean - the bean to query, not null
Returns:
the value derived from the specified bean, may be null
Throws:
ClassCastException - if the bean is of an incorrect type
UnsupportedOperationException - if unable to query


Copyright © 2007–2014 Joda.org. All rights reserved.