@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 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(String attributeName,
Class<?> attributeType,
List<Annotation> attributeAnnotations,
Class<?> classType)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 List<Annotation> attributeAnnotations
private final Class<?> pojoClass
public AttributeMetadata(String attributeName, Class<?> attributeType, List<Annotation> attributeAnnotations, Class<?> classType)
attributeName - The attribute nameattributeType - The attribute typeattributeAnnotations - The attribute annotationsclassType - The type of class that owns the attributepublic String getAttributeName()
public Class<?> getAttributeType()
public List<Annotation> getAttributeAnnotations()
public Class<?> getPojoClass()
Copyright © 2015. All rights reserved.