ca.uhn.cache.internal.spring
Class CustomEnumEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byca.uhn.cache.internal.spring.CustomEnumEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class CustomEnumEditor
extends java.beans.PropertyEditorSupport

PropertyEditor for org.apache.commons.lang.enum.Enum.

Version:
$Revision: 1.1 $ updated on $Date: 2005/01/24 22:54:34 $ by $Author: bryan_tripp $
Author:
Alexei Guevara, Tadatoshi Takahashi (Ken)

Constructor Summary
CustomEnumEditor(java.lang.Class theEnumClazz)
          Create a new CustomEnumEditor instance, using the given Enum class.
CustomEnumEditor(java.lang.String theClassName)
          Create a new CustomEnumEditor instance, using the given Enum class name.
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String theText)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomEnumEditor

public CustomEnumEditor(java.lang.Class theEnumClazz)
Create a new CustomEnumEditor instance, using the given Enum class.

Parameters:
theEnumClazz - Enum class used to create the Type Safe Enum instance.

CustomEnumEditor

public CustomEnumEditor(java.lang.String theClassName)
                 throws java.lang.ClassNotFoundException
Create a new CustomEnumEditor instance, using the given Enum class name.

Parameters:
theClassName - the name of the Class.
Throws:
java.lang.ClassNotFoundException - thrown when matching Class is not found.
Method Detail

setAsText

public void setAsText(java.lang.String theText)
               throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
See Also:
PropertyEditorSupport.setAsText(java.lang.String)

getAsText

public java.lang.String getAsText()
See Also:
PropertyEditorSupport.getAsText()


Copyright © 2004-2005 University Health Network. All Rights Reserved.