org.apache.bval
Class DynamicMetaBean
java.lang.Object
org.apache.bval.model.FeaturesCapable
org.apache.bval.model.MetaBean
org.apache.bval.DynamicMetaBean
- All Implemented Interfaces:
- Serializable, Cloneable, Features.Bean
public final class DynamicMetaBean
- extends MetaBean
Description: Dynamic MetaBean
subclass.
- See Also:
- Serialized Form
Methods inherited from class org.apache.bval.model.MetaBean |
copyInto, getBeanClass, getId, getName, getProperties, getProperty, hasProperties, hasRelationships, putProperty, setBeanClass, setId, setName, setProperties, toString |
Methods inherited from class org.apache.bval.model.FeaturesCapable |
addValidation, copy, createFeaturesMap, getFeature, getFeature, getFeatures, getValidations, hasValidation, optimizeRead, putFeature, setValidations |
DynamicMetaBean
public DynamicMetaBean(MetaBeanFinder finder)
- Create a new DynamicMetaBean instance.
- Parameters:
finder
-
resolveMetaBean
public MetaBean resolveMetaBean(Object bean)
If this MetaBean
is compatible with bean
, return this
, else null
.
Compatibility is satisfied in one of the following ways:
bean
is null
bean
is an instance of our beanClass
bean
is our beanClass
itself
different strategies with hints to find MetaBean of associated object can
be implemented here.
- Overrides:
resolveMetaBean
in class MetaBean
- Returns:
this
or null
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.