org.org.usurper.handlers.basic
Class AbstractSpecificPropertyHandler

java.lang.Object
  extended by org.org.usurper.handlers.basic.AbstractSpecificPropertyHandler
All Implemented Interfaces:
IHandler
Direct Known Subclasses:
ListOfValuesSpecificPropertyHandler

public abstract class AbstractSpecificPropertyHandler
extends java.lang.Object
implements IHandler

This is the class to extend in order to implement a handler for a specific property of a given class.

Author:
pagregoire

Constructor Summary
AbstractSpecificPropertyHandler(java.lang.Class<?> valueObjectClass, java.lang.String handledFieldName)
          This constructor takes a class and a field name as parameters
AbstractSpecificPropertyHandler(SpecificPropertyDefinition specificPropertyDefinition)
          This constructor takes a SpecificPropertyDefinition as a parameter
 
Method Summary
 java.lang.String getHandledPropertyName()
          Deprecated. prefer access through the specificPropertyDefinition attribute
 SpecificPropertyDefinition getTargetProperty()
          Gets the target property definition.
 java.lang.Class<?> getValueObjectClass()
          Deprecated. prefer access through the specificPropertyDefinition attribute
 void setHandledPropertyName(java.lang.String handledFieldName)
          Deprecated. prefer the constructor
 void setValueObjectClass(java.lang.Class<?> valueObjectClass)
          Deprecated. prefer the constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.org.usurper.handlers.IHandler
handle, handle
 

Constructor Detail

AbstractSpecificPropertyHandler

public AbstractSpecificPropertyHandler(SpecificPropertyDefinition specificPropertyDefinition)
This constructor takes a SpecificPropertyDefinition as a parameter

Parameters:
specificPropertyDefinition -

AbstractSpecificPropertyHandler

public AbstractSpecificPropertyHandler(java.lang.Class<?> valueObjectClass,
                                       java.lang.String handledFieldName)
This constructor takes a class and a field name as parameters

Parameters:
valueObjectClass -
handledFieldName -
Method Detail

getHandledPropertyName

public java.lang.String getHandledPropertyName()
Deprecated. prefer access through the specificPropertyDefinition attribute

Gets the handled property name.

Returns:
Returns the handledType.

setHandledPropertyName

public void setHandledPropertyName(java.lang.String handledFieldName)
Deprecated. prefer the constructor

Sets the handled property name.

Parameters:
handledFieldName - the handled field name

getValueObjectClass

public java.lang.Class<?> getValueObjectClass()
Deprecated. prefer access through the specificPropertyDefinition attribute

Gets the value object class.

Returns:
Returns the valueObjectClass.

setValueObjectClass

public void setValueObjectClass(java.lang.Class<?> valueObjectClass)
Deprecated. prefer the constructor

Sets the value object class.

Parameters:
valueObjectClass - The valueObjectClass to set.

getTargetProperty

public SpecificPropertyDefinition getTargetProperty()
Gets the target property definition.

Returns:
the target property


Copyright © 2008. All Rights Reserved.