org.apache.bval.jsr303
Class GraphBeanIdentity

java.lang.Object
  extended by org.apache.bval.jsr303.GraphBeanIdentity

public class GraphBeanIdentity
extends Object

Class that stores the needed properties to avoid circular paths when validating an object graph.

These properties are:

FIXME: Owner is currently not used in identity checking, and probably never will be. So it is likely to be deleted.

Author:
Carlos Vara

Constructor Summary
GraphBeanIdentity(Object bean, Class<?> group, Class<?> owner)
          Create a new GraphBeanIdentity instance.
 
Method Summary
 boolean equals(Object obj)
          
 Object getBean()
          Get the bean.
 Class<?> getGroup()
          Get the group being validated.
 Class<?> getOwner()
          Get the owning class
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphBeanIdentity

public GraphBeanIdentity(Object bean,
                         Class<?> group,
                         Class<?> owner)
Create a new GraphBeanIdentity instance.

Parameters:
bean -
group -
owner -
Method Detail

getBean

public Object getBean()
Get the bean.

Returns:
Object

getGroup

public Class<?> getGroup()
Get the group being validated.

Returns:
Class

getOwner

public Class<?> getOwner()
Get the owning class

Returns:

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.