Package org.jboss.util.propertyeditor
Class StringArrayEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.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.- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.regex.Pattern
commaDelim
-
Constructor Summary
Constructors Constructor Description StringArrayEditor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAsText()
(package private) static java.lang.String[]
parseList(java.lang.String text)
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.
-
-
-
Method Detail
-
parseList
static java.lang.String[] parseList(java.lang.String text)
-
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.- Specified by:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
-
getAsText
public java.lang.String getAsText()
- Specified by:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in classjava.beans.PropertyEditorSupport
- Returns:
- a comma seperated string of the array elements
-
-