Enum DatabaseResourceTask.ResourceType
- java.lang.Object
-
- java.lang.Enum<DatabaseResourceTask.ResourceType>
-
- com.opencloud.slee.mlet.ant.tasks.DatabaseResourceTask.ResourceType
-
- All Implemented Interfaces:
Serializable
,Comparable<DatabaseResourceTask.ResourceType>
- Enclosing class:
- DatabaseResourceTask
public static enum DatabaseResourceTask.ResourceType extends Enum<DatabaseResourceTask.ResourceType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JDBC_RESOURCE
PERSISTENCE_RESOURCE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DatabaseResourceTask.ResourceType
fromOptionName(String name)
abstract String
getOptionName()
static String[]
getOptionNames()
static DatabaseResourceTask.ResourceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DatabaseResourceTask.ResourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERSISTENCE_RESOURCE
public static final DatabaseResourceTask.ResourceType PERSISTENCE_RESOURCE
-
JDBC_RESOURCE
public static final DatabaseResourceTask.ResourceType JDBC_RESOURCE
-
-
Method Detail
-
values
public static DatabaseResourceTask.ResourceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseResourceTask.ResourceType c : DatabaseResourceTask.ResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseResourceTask.ResourceType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOptionName
public abstract String getOptionName()
-
fromOptionName
public static DatabaseResourceTask.ResourceType fromOptionName(String name) throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
-
getOptionNames
public static String[] getOptionNames()
-
-