Package org.codehaus.mojo.sql
Class DelimiterType
java.lang.Object
org.codehaus.mojo.sql.DelimiterType
- Author:
- Brian Topping
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancontainsValue(String value) Is this value included in the enumeration?final intgetIndex()final StringgetValue()String[]This is the only method a subclass needs to implement.final intindexOfValue(String value) get the index of a value in this enumeration.final voidSet the delimiterValue.toString()Convert the value to its string form.
-
Field Details
-
NORMAL
- See Also:
-
ROW
- See Also:
-
value
The selected value in this enumeration.
-
-
Constructor Details
-
DelimiterType
protected DelimiterType()bean constructor
-
-
Method Details
-
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
Set the delimiterValue. Use DelimiterType.NORMAL or DelimiterType.ROW- Parameters:
value-
-
containsValue
Is this value included in the enumeration?- Parameters:
value-- Returns:
- true if this value is supported
-
indexOfValue
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:
-
getValue
- Returns:
- the selected value.
-
getIndex
public final int getIndex()- Returns:
- the index of the selected value in the array.
- See Also:
-
toString
Convert the value to its string form.
-