org.codehaus.mojo.sql
Class DelimiterType

java.lang.Object
  extended byorg.codehaus.mojo.sql.DelimiterType

public class DelimiterType
extends java.lang.Object

Author:
Brian Topping

Field Summary
static java.lang.String NORMAL
           
static java.lang.String ROW
           
protected  java.lang.String value
          The selected value in this enumeration.
 
Constructor Summary
protected DelimiterType()
          bean constructor
 
Method Summary
 boolean containsValue(java.lang.String value)
          Is this value included in the enumeration?
 int getIndex()
           
 java.lang.String getValue()
           
 java.lang.String[] getValues()
          This is the only method a subclass needs to implement.
 int indexOfValue(java.lang.String value)
          get the index of a value in this enumeration.
 void setValue(java.lang.String value)
           
 java.lang.String toString()
          Convert the value to its string form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL

public static final java.lang.String NORMAL
See Also:
Constant Field Values

ROW

public static final java.lang.String ROW
See Also:
Constant Field Values

value

protected java.lang.String value
The selected value in this enumeration.

Constructor Detail

DelimiterType

protected DelimiterType()
bean constructor

Method Detail

getValues

public java.lang.String[] getValues()
This is the only method a subclass needs to implement.

Returns:
an array holding all possible values of the enumeration. The order of elements must be fixed so that indexOfValue(String) always return the same index for the same value.

setValue

public final void setValue(java.lang.String value)

containsValue

public final boolean containsValue(java.lang.String value)
Is this value included in the enumeration?


indexOfValue

public final int indexOfValue(java.lang.String value)
get the index of a value in this enumeration.

Parameters:
value - the string value to look for.
Returns:
the index of the value in the array of strings or -1 if it cannot be found.
See Also:
getValues()

getValue

public final java.lang.String getValue()
Returns:
the selected value.

getIndex

public final int getIndex()
Returns:
the index of the selected value in the array.
See Also:
getValues()

toString

public java.lang.String toString()
Convert the value to its string form.

Returns:
the string form of the value.


Copyright © 2006-2007 null. All Rights Reserved.