uk.co.jemos.podam.dto
Class ClassInfo

java.lang.Object
  extended by uk.co.jemos.podam.dto.ClassInfo
All Implemented Interfaces:
Serializable

@Immutable
public class ClassInfo
extends Object
implements Serializable

This class wraps fields and setters information about a given class

The purpose of this class is to work as a sort of cache which stores the list of declared fields and setter methods of a given class. These information will then be analysed to compose the list of setters which can be invoked to create the state of a given POJO.

Author:
mtedone
See Also:
Serialized Form

Field Summary
private  Set<String> classFields
          The Set of fields belonging to this class
private  Class<?> className
          The Class name whose info are stored in this class
private  Set<Method> classSetters
          The Set of setters belonging to this class
private static long serialVersionUID
           
 
Constructor Summary
ClassInfo(Class<?> className, Set<String> classFields, Set<Method> classSetters)
          Full constructor
 
Method Summary
 boolean equals(Object obj)
           
 Set<Method> getClassSetters()
           
 int hashCode()
           
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

className

private final Class<?> className
The Class name whose info are stored in this class


classFields

private final Set<String> classFields
The Set of fields belonging to this class


classSetters

private final Set<Method> classSetters
The Set of setters belonging to this class

Constructor Detail

ClassInfo

public ClassInfo(Class<?> className,
                 Set<String> classFields,
                 Set<Method> classSetters)
Full constructor

Parameters:
className - The class name
classFields - The set of fields belonging to this class
classSetters - The set of setters belonging to this class
Method Detail

getClassSetters

public Set<Method> getClassSetters()
Returns:
the classSetters

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.

Jemos 2002 - 2011: All Rights Reserved. Podam runs under the MIT license

Copyright © 2011. All Rights Reserved.