org.springmodules.validation.valang
Class CustomPropertyEditor

java.lang.Object
  extended by org.springmodules.validation.valang.CustomPropertyEditor

public class CustomPropertyEditor
extends Object

Container class to register a custom property editor. propertyEditor and requiredType properties are mandatory, propertyPath property is optional.

Since:
Apr 24, 2005
Author:
Steven Devijver

Constructor Summary
CustomPropertyEditor()
           
 
Method Summary
 PropertyEditor getPropertyEditor()
          Get custom property editor.
 String getPropertyPath()
          Gets the property path (optional).
 Class getRequiredType()
          Gets the required type.
 void setPropertyEditor(PropertyEditor propertyEditor)
          Sets custom property editor.
 void setPropertyPath(String propertyPath)
          Sets the property path (optional).
 void setRequiredType(Class requiredType)
          Sets the required type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomPropertyEditor

public CustomPropertyEditor()
Method Detail

getPropertyEditor

public PropertyEditor getPropertyEditor()

Get custom property editor.

Returns:
custom property editor

setPropertyEditor

public void setPropertyEditor(PropertyEditor propertyEditor)

Sets custom property editor.

Parameters:
propertyEditor - custom property editor

getPropertyPath

public String getPropertyPath()

Gets the property path (optional).

Returns:
property path

setPropertyPath

public void setPropertyPath(String propertyPath)

Sets the property path (optional).

Parameters:
propertyPath -

getRequiredType

public Class getRequiredType()

Gets the required type.

Returns:
required type

setRequiredType

public void setRequiredType(Class requiredType)

Sets the required type.

Parameters:
requiredType - the required type


Copyright © 2009. All Rights Reserved.