@Immutable public class AttributeMetadata extends Object implements Serializable
This class is available to all strategies and it allows users to customise behaviour of a strategy depending on the metadata of the attribute to which a value is being assigned. For instance, clients might assign different values based on the attribute name.
| Modifier and Type | Field and Description |
|---|---|
private Type[] |
attrGenericArgs
The attribute type generic arguments
|
private List<Annotation> |
attributeAnnotations
The attribute annotations
|
private String |
attributeName
The attribute name
|
private Class<?> |
attributeType
The attribute type
|
private Class<?> |
pojoClass
Type of class that owns the attribute
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
AttributeMetadata(Class<?> attributeType,
Type[] attrGenericArgs,
Class<?> declaringClass)
Constructor for method parameters metadata
|
AttributeMetadata(String attributeName,
Class<?> attributeType,
Type[] attrGenericArgs,
List<Annotation> attributeAnnotations,
Class<?> declaringClass)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Type[] |
getAttrGenericArgs() |
List<Annotation> |
getAttributeAnnotations() |
String |
getAttributeName() |
Class<?> |
getAttributeType() |
Class<?> |
getPojoClass() |
String |
toString() |
private static final long serialVersionUID
private final String attributeName
private final Class<?> attributeType
private final Type[] attrGenericArgs
private final List<Annotation> attributeAnnotations
private final Class<?> pojoClass
public AttributeMetadata(String attributeName, Class<?> attributeType, Type[] attrGenericArgs, List<Annotation> attributeAnnotations, Class<?> declaringClass)
attributeName - The attribute nameattributeType - The attribute typeattrGenericArgs - The attribute type generic argumentsattributeAnnotations - The attribute annotationsdeclaringClass - The type of class that owns the attributepublic AttributeMetadata(Class<?> attributeType, Type[] attrGenericArgs, Class<?> declaringClass)
attributeType - The attribute typeattrGenericArgs - The attribute type generic argumentsdeclaringClass - The type of class that owns the attributeCopyright © 2015. All rights reserved.