org.jboss.util.propertyeditor
Class StringArrayEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.jboss.util.propertyeditor.StringArrayEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class StringArrayEditor
extends java.beans.PropertyEditorSupport

A property editor for String[]. The text format of a string array is a comma or \n, \r seperated list with \, representing an escaped comma to include in the string element.


Constructor Summary
StringArrayEditor()
           
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String text)
          Build a String[] from comma or eol seperated elements with a \, representing a ',' to include in the current string element.
 
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

StringArrayEditor

public StringArrayEditor()
Method Detail

setAsText

public void setAsText(java.lang.String text)
Build a String[] from comma or eol seperated elements with a \, representing a ',' to include in the current string element.


getAsText

public java.lang.String getAsText()
Returns:
a comma seperated string of the array elements