org.org.usurper.model
Class HandledBeanProperty

java.lang.Object
  extended by org.org.usurper.model.HandledBeanProperty
All Implemented Interfaces:
IHandledEntity

public class HandledBeanProperty
extends java.lang.Object
implements IHandledEntity

The Class HandledBeanProperty is an immutable value object containing all the necessary elements for the handling of a precise attribute of an usurped object.


Constructor Summary
HandledBeanProperty(java.lang.Object targetObject, java.lang.Class<?> propertyClass, java.lang.String propertyName, IUsurperGeneratorSetup usurperGeneratorSetup)
          This constructor creates the HandledBeanProperty
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<?> getPropertyClass()
          Gets the class of the property to be handled.
 java.lang.String getPropertyName()
          Gets the property name.
 java.lang.Object getTargetObject()
          Gets the object where the property will be set.
 IUsurperGeneratorSetup getUsurperGeneratorSetup()
          Gets the usurper generator setup.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HandledBeanProperty

public HandledBeanProperty(java.lang.Object targetObject,
                           java.lang.Class<?> propertyClass,
                           java.lang.String propertyName,
                           IUsurperGeneratorSetup usurperGeneratorSetup)
This constructor creates the HandledBeanProperty

Parameters:
targetObject - the object where the property will be set as a context (can be useful to handle relations between attributes).
propertyClass - the class of the property to generate.
propertyName - the name of the property to generate.
usurperGeneratorSetup - the usurper generator setup
Method Detail

getPropertyClass

public java.lang.Class<?> getPropertyClass()
Gets the class of the property to be handled.

Returns:
the property class

getPropertyName

public java.lang.String getPropertyName()
Gets the property name.

Returns:
the property name

getTargetObject

public java.lang.Object getTargetObject()
Gets the object where the property will be set.

Returns:
the target object

getUsurperGeneratorSetup

public IUsurperGeneratorSetup getUsurperGeneratorSetup()
Gets the usurper generator setup.

Returns:
the usurper generator setup

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2008. All Rights Reserved.