Package uk.co.jemos.podam.api
Class ClassAttribute
- java.lang.Object
-
- uk.co.jemos.podam.api.ClassAttribute
-
- All Implemented Interfaces:
Serializable
@Immutable public class ClassAttribute extends Object implements Serializable
This class wraps fields, getters and setters information of the same attributeThe purpose of this class is to carry information about single attribute of POJO class.
- Since:
- 5.1.0
- Author:
- daivanov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private FieldattributeThe field belonging to this classprivate Set<Method>gettersThe Set of getters for this attribute in the classprivate StringnameThe attribute's nameprivate static longserialVersionUIDprivate Set<Method>settersThe Set of setters for this attribute in the class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)FieldgetAttribute()It returns the attributeSet<Method>getGetters()It returns the attribute gettersStringgetName()It returns the attribute's name(package private) Set<Method>getRawGetters()(package private) Set<Method>getRawSetters()Set<Method>getSetters()It returns the attribute settersinthashCode()(package private) voidsetAttribute(Field attribute)It sets the attributeStringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
name
private final String name
The attribute's name
-
attribute
private Field attribute
The field belonging to this class
-
-
Constructor Detail
-
ClassAttribute
public ClassAttribute(String name, Field attribute, Set<Method> getters, Set<Method> setters)
Full constructor- Parameters:
name- attribute's name, must be filledattribute- attribute, can be nullgetters- The set of getters for this attributessetters- The set of setters for this attributes
-
-
Method Detail
-
getName
public String getName()
It returns the attribute's name- Returns:
- the atrribute's name
-
getAttribute
public Field getAttribute()
It returns the attribute- Returns:
- the classFields
-
setAttribute
void setAttribute(Field attribute)
It sets the attribute- Parameters:
attribute- The attribute to set
-
-