T
- The type of beanpublic class BeanMetaData<T> extends AbstractEntityMetaData<T>
EntityMetaData
implementation for java
beans.Modifier and Type | Class and Description |
---|---|
protected static class |
BeanMetaData.Property<T,V>
This class provides
PropertyMetaData implementation for
java beans. |
Modifier and Type | Field and Description |
---|---|
protected Class<T> |
type
The type of bean.
|
constraint, properties
Modifier | Constructor and Description |
---|---|
protected |
BeanMetaData(Class<T> type,
Constraint<? super T> constraint,
Map<String,BeanMetaData.Property<T,Object>> properties)
Constructs a new
BeanMetaData with the specified bean type,
constraint and properties metadata. |
Modifier and Type | Method and Description |
---|---|
static <T> BeanMetaData<T> |
getMetaData(Class<?> type)
Returns bean metadata for the specified type.
|
Class<T> |
getType()
Returns bean type.
|
cast, equals, getAllPropertyMetaData, getConstraint, getPropertyMetaData, getPropertyNames, hashCode, hasProperty, toString
protected BeanMetaData(Class<T> type, Constraint<? super T> constraint, Map<String,BeanMetaData.Property<T,Object>> properties)
BeanMetaData
with the specified bean type,
constraint and properties metadata.type
- The type of bean.constraint
- Constraint to be used for bean validation.properties
- Metadata of all the properties defined on the bean.public static <T> BeanMetaData<T> getMetaData(Class<?> type)
T
- The bean type.type
- Type for which bean metadata should be returned.BeanDefinitionException
- if bean has illegal validation definition.Copyright © 2011–2020 FoxLabs. All rights reserved.