org.org.usurper.model
Class PropertyTypeDefinition

java.lang.Object
  extended by org.org.usurper.model.PropertyTypeDefinition
All Implemented Interfaces:
ITargetDefinition

public class PropertyTypeDefinition
extends java.lang.Object
implements ITargetDefinition

The Class PropertyTypeDefinition is an immutable value object describing a target property type.


Constructor Summary
PropertyTypeDefinition(java.lang.Class<?> targetClass)
          Instantiates a new PropertyTypeDefinition from a Class object.
PropertyTypeDefinition(java.lang.String targetDescription)
          Instantiates a new PropertyTypeDefinition from the name of a Class.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class<?> getTargetClass()
          Gets the target class.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyTypeDefinition

public PropertyTypeDefinition(java.lang.Class<?> targetClass)
Instantiates a new PropertyTypeDefinition from a Class object.

Parameters:
targetClass - the target class

PropertyTypeDefinition

public PropertyTypeDefinition(java.lang.String targetDescription)
Instantiates a new PropertyTypeDefinition from the name of a Class.

Parameters:
targetDescription - the target description
Method Detail

getTargetClass

public java.lang.Class<?> getTargetClass()
Gets the target class.

Returns:
the target class

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.