net.sourceforge.jdbcimporter.util
Class IntegerArrayEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bynet.sourceforge.jdbcimporter.util.IntegerArrayEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class IntegerArrayEditor
extends java.beans.PropertyEditorSupport

The IntegerArrayEditor converts a comma-separated list of numbers into an array of integers. The array should be in ascending order.

Version:
0.61
Author:
Chris Nagy

Constructor Summary
IntegerArrayEditor()
           
 
Method Summary
 void setAsText(java.lang.String val)
          Parses a string into an array of integers that are in ascending order.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, 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

IntegerArrayEditor

public IntegerArrayEditor()
Method Detail

setAsText

public void setAsText(java.lang.String val)
               throws java.lang.IllegalArgumentException
Parses a string into an array of integers that are in ascending order.

Parameters:
val - the string
Throws:
java.lang.IllegalArgumentException