org.jboss.util.propertyeditor
Class StringArrayEditor

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

public class StringArrayEditor
extends 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.

Version:
$Revision: 1.6.6.3 $
Author:
Jason Dillon, Scott.Stark@jboss.org

Constructor Summary
StringArrayEditor()
           
 
Method Summary
 String getAsText()
           
 void setAsText(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, 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

StringArrayEditor

public StringArrayEditor()
Method Detail

setAsText

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

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
a comma seperated string of the array elements


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.