org.springframework.beans.propertyeditors
Class StringArrayPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.springframework.beans.propertyeditors.StringArrayPropertyEditor
All Implemented Interfaces:
PropertyEditor

public class StringArrayPropertyEditor
extends PropertyEditorSupport

Editor for String arrays. Strings must be in CSV format.

Author:
Rod Johnson, Juergen Hoeller
See Also:
StringUtils.commaDelimitedListToStringArray(java.lang.String), StringUtils.arrayToCommaDelimitedString(java.lang.Object[])

Constructor Summary
StringArrayPropertyEditor()
           
 
Method Summary
 String getAsText()
           
 void setAsText(String s)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringArrayPropertyEditor

public StringArrayPropertyEditor()
Method Detail

setAsText

public void setAsText(String s)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport


Copyright (c) 2002-2005 The Spring Framework Project.