Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » propertyeditors » [javadoc | source]
org.springframework.beans.propertyeditors
public class: CharacterEditor [javadoc | source]
java.lang.Object
   java.beans.PropertyEditorSupport
      org.springframework.beans.propertyeditors.CharacterEditor

All Implemented Interfaces:
    PropertyEditor

Editor for a java.lang.Character , to populate a property of type Character or char from a String value.

Note that the JDK does not contain a default property editor for char! org.springframework.beans.BeanWrapperImpl will register this editor by default.

Also supports conversion from a Unicode character sequence; e.g. u0041 ('A').

Constructor:
 public CharacterEditor(boolean allowEmpty) 
    Parameters:
    allowEmpty - if empty strings are to be allowed
Method from org.springframework.beans.propertyeditors.CharacterEditor Summary:
getAsText,   setAsText
Methods from java.beans.PropertyEditorSupport:
addPropertyChangeListener,   firePropertyChange,   getAsText,   getCustomEditor,   getJavaInitializationString,   getSource,   getTags,   getValue,   isPaintable,   paintValue,   removePropertyChangeListener,   setAsText,   setSource,   setValue,   supportsCustomEditor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.propertyeditors.CharacterEditor Detail:
 public String getAsText() 
 public  void setAsText(String text) throws IllegalArgumentException