net.sourceforge.jdbcimporter.util
Class IntegerRangeArrayEditor

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

public class IntegerRangeArrayEditor
extends java.beans.PropertyEditorSupport

The IntegerRangeArrayEditor class parses a comma separated list of two numbers with a '-' character in between (ex '1-10,13-20,21-23') into a two dimensional array of integers. The first number should be less than the second number.

Version:
0.61
Author:
Chris Nagy

Constructor Summary
IntegerRangeArrayEditor()
           
 
Method Summary
 void setAsText(java.lang.String val)
          Parses a string into a two dimensional array of integers.
 
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

IntegerRangeArrayEditor

public IntegerRangeArrayEditor()
Method Detail

setAsText

public void setAsText(java.lang.String val)
               throws java.lang.IllegalArgumentException
Parses a string into a two dimensional array of integers.

Throws:
java.lang.IllegalArgumentException