org.org.usurper.model
Class HandledConstructorArg

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

public class HandledConstructorArg
extends java.lang.Object
implements IHandledEntity

The Class HandledConstructorArg is an immutable value object containing all the necessary elements for the handling of a precise constructor argument of an usurped object.


Constructor Summary
HandledConstructorArg(java.lang.reflect.Constructor<?> targetConstructor, java.lang.Class<?> constructorArgClass, java.lang.Integer constructorArgOrderingNumber, IUsurperGeneratorSetup usurperGeneratorSetup)
          This constructor creates the HandledConstructorArg
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<?> getConstructorArgClass()
          Gets the class of the constructor arg to be handled.
 java.lang.Integer getConstructorArgOrderingNumber()
          Gets the constructor arg ordering number.
 java.lang.reflect.Constructor<?> getTargetConstructor()
          Gets the constructor used to create the object.
 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

HandledConstructorArg

public HandledConstructorArg(java.lang.reflect.Constructor<?> targetConstructor,
                             java.lang.Class<?> constructorArgClass,
                             java.lang.Integer constructorArgOrderingNumber,
                             IUsurperGeneratorSetup usurperGeneratorSetup)
This constructor creates the HandledConstructorArg

Parameters:
targetConstructor - the constructor object for the object to be created (can be useful to handle relations between arguments).
constructorArgClass - the class of the constructor arg to generate.
constructorArgOrderingNumber - the constructor arg ordering number
usurperGeneratorSetup - the usurper generator setup
Method Detail

getTargetConstructor

public java.lang.reflect.Constructor<?> getTargetConstructor()
Gets the constructor used to create the object.

Returns:
the target constructor

getConstructorArgClass

public java.lang.Class<?> getConstructorArgClass()
Gets the class of the constructor arg to be handled.

Returns:
the constructor arg class

getConstructorArgOrderingNumber

public java.lang.Integer getConstructorArgOrderingNumber()
Gets the constructor arg ordering number.

Returns:
the constructor arg ordering number

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.