net.sf.beanlib
Class CollectionPropertyName

java.lang.Object
  extended by net.sf.beanlib.CollectionPropertyName

public class CollectionPropertyName
extends Object

Used to uniquely identify a Collection or Map property of a JavaBean object.

Author:
Joe D. Velopar

Field Summary
private  String collectionProperty
           
private  Class declaringClass
           
static CollectionPropertyName[] EMPTY_ARRAY
           
private  int hashCode
           
 
Constructor Summary
CollectionPropertyName(Class declaringClass, String collectionProperty)
           
 
Method Summary
static CollectionPropertyName[] createCollectionPropertyNames(Class declaringClass, String[] collectionProperties)
          Convenient factory method.
 boolean equals(Object obj)
           
 String getCollectionProperty()
           
 Class getDeclaringClass()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final CollectionPropertyName[] EMPTY_ARRAY

declaringClass

private final Class declaringClass

collectionProperty

private final String collectionProperty

hashCode

private final int hashCode
Constructor Detail

CollectionPropertyName

public CollectionPropertyName(Class declaringClass,
                              String collectionProperty)
Parameters:
declaringClass - declaring class of the Collection or Map property.
collectionProperty - Collection or Map property name.
Method Detail

createCollectionPropertyNames

public static CollectionPropertyName[] createCollectionPropertyNames(Class declaringClass,
                                                                     String[] collectionProperties)
Convenient factory method.


getDeclaringClass

public Class getDeclaringClass()

getCollectionProperty

public String getCollectionProperty()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object