@Immutable public class ClassAttribute extends Object implements Serializable
The purpose of this class is to carry information about single attribute of POJO class.
| Modifier and Type | Field and Description |
|---|---|
private Field |
attribute
The field belonging to this class
|
private Set<Method> |
getters
The Set of getters for this attribute in the class
|
private String |
name
The attribute's name
|
private static long |
serialVersionUID |
private Set<Method> |
setters
The Set of setters for this attribute in the class
|
| Constructor and Description |
|---|
ClassAttribute(String name,
Field attribute,
Set<Method> getters,
Set<Method> setters)
Full constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Field |
getAttribute()
It returns the attribute
|
Set<Method> |
getGetters()
It returns the attribute getters
|
String |
getName()
It returns the attribute's name
|
(package private) Set<Method> |
getRawGetters() |
(package private) Set<Method> |
getRawSetters() |
Set<Method> |
getSetters()
It returns the attribute setters
|
int |
hashCode() |
(package private) void |
setAttribute(Field attribute)
It sets the attribute
|
String |
toString() |
private static final long serialVersionUID
private final String name
private Field attribute
public ClassAttribute(String name, Field attribute, Set<Method> getters, Set<Method> setters)
name - attribute's name, must be filledattribute - attribute, can be nullgetters - The set of getters for this attributessetters - The set of setters for this attributespublic String getName()
public Field getAttribute()
void setAttribute(Field attribute)
attribute - The attribute to setCopyright © 2016. All rights reserved.