org.pojomatic.internal
Class ClassProperties

java.lang.Object
  extended by org.pojomatic.internal.ClassProperties

public class ClassProperties
extends java.lang.Object

The properties of a class used for PojomatorImpl.doHashCode(Object), PojomatorImpl.doEquals(Object, Object), and PojomatorImpl.doToString(Object).


Method Summary
static
<T> ClassProperties
createInstance(java.lang.Class<T> pojoClass)
          Creates a new instance.
 java.util.Collection<PropertyElement> getEqualsProperties()
          Gets the properties to use for PojomatorImpl.doEquals(Object, Object).
 java.util.Collection<PropertyElement> getHashCodeProperties()
          Gets the properties to use for PojomatorImpl.doHashCode(Object).
 java.util.Collection<PropertyElement> getToStringProperties()
          Gets the properties to use for PojomatorImpl.doToString(Object).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEqualsProperties

public java.util.Collection<PropertyElement> getEqualsProperties()
Gets the properties to use for PojomatorImpl.doEquals(Object, Object).

Returns:
the properties to use for PojomatorImpl.doEquals(Object, Object).

getHashCodeProperties

public java.util.Collection<PropertyElement> getHashCodeProperties()
Gets the properties to use for PojomatorImpl.doHashCode(Object).

Returns:
the properties to use for PojomatorImpl.doHashCode(Object).

getToStringProperties

public java.util.Collection<PropertyElement> getToStringProperties()
Gets the properties to use for PojomatorImpl.doToString(Object).

Returns:
the properties to use for PojomatorImpl.doToString(Object).

createInstance

public static <T> ClassProperties createInstance(java.lang.Class<T> pojoClass)
                                      throws java.lang.IllegalArgumentException
Creates a new instance.

Type Parameters:
T - the type of pojoClass
Parameters:
pojoClass - the class to inspect
Returns:
a new instance
Throws:
java.lang.IllegalArgumentException - if pojoClass has no properties annotated for use with Pojomatic.


Copyright © 2008-2009. All Rights Reserved.