org.org.usurper.model
Class SpecificPropertyDefinition

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

public class SpecificPropertyDefinition
extends java.lang.Object
implements ITargetDefinition

The Class SpecificPropertyDefinition is an immutable value object describing a target specific property.


Field Summary
static java.lang.String CLASS_PROPERTY_SEPARATOR
           
 
Constructor Summary
SpecificPropertyDefinition(java.lang.Class<?> targetClass, java.lang.String targetProperty)
          Instantiates a new SpecificPropertyDefinition from a Class object and a property name.
SpecificPropertyDefinition(java.lang.String targetPropertyDescription)
          Instantiates a new SpecificPropertyDefinition from a String description.
 
Method Summary
static java.lang.String buildPropertyPathString(java.lang.Class<?> targetClass, java.lang.String targetPropertyName)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getPropertyPathString()
          Gets the property path string.
 java.lang.Class<?> getTargetClass()
          Gets the target class.
 java.lang.String getTargetProperty()
          Gets the target property.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_PROPERTY_SEPARATOR

public static final java.lang.String CLASS_PROPERTY_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

SpecificPropertyDefinition

public SpecificPropertyDefinition(java.lang.Class<?> targetClass,
                                  java.lang.String targetProperty)
Instantiates a new SpecificPropertyDefinition from a Class object and a property name.

Parameters:
targetClass - the target class
targetProperty - the target property

SpecificPropertyDefinition

public SpecificPropertyDefinition(java.lang.String targetPropertyDescription)
Instantiates a new SpecificPropertyDefinition from a String description.
This String description is made of the class name and a dot ".".
example:
org.org.usurper.DummyVO.propertyToBeSet where propertyToBeSet is property of the class org.org.usurper.DummyVO.

Parameters:
targetPropertyDescription - the target property description
Method Detail

getTargetClass

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

Returns:
the target class

getTargetProperty

public java.lang.String getTargetProperty()
Gets the target property.

Returns:
the target property

getPropertyPathString

public java.lang.String getPropertyPathString()
Gets the property path string.

Returns:
the property path string

buildPropertyPathString

public static java.lang.String buildPropertyPathString(java.lang.Class<?> targetClass,
                                                       java.lang.String targetPropertyName)

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.