Enum MigratorCommandLineOption
- java.lang.Object
-
- java.lang.Enum<MigratorCommandLineOption>
-
- org.eclipse.emf.edapt.internal.migration.execution.internal.MigratorCommandLineOption
-
- All Implemented Interfaces:
Serializable
,Comparable<MigratorCommandLineOption>
public enum MigratorCommandLineOption extends Enum<MigratorCommandLineOption>
Possible options for theMigratorCommandLine
.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKUP
Whether a backup should be created.HISTORY
The history file.LIBRARY
The set of libraries.MODELS
The models that need to be migrated.OPERATION
The set of operations.SOURCE_RELEASE
The source release.TARGET_RELEASE
The target release.VALIDATION_LEVEL
The validation level.VM_ARGUMENTS
JVM arguments.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MigratorCommandLineOption
getOption(char character)
Get the option with a certain character.String
id()
Get the identifier of the option.String
toOptionPrefix()
Get the command line prefix for this option.static MigratorCommandLineOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static MigratorCommandLineOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODELS
public static final MigratorCommandLineOption MODELS
The models that need to be migrated.
-
HISTORY
public static final MigratorCommandLineOption HISTORY
The history file.
-
SOURCE_RELEASE
public static final MigratorCommandLineOption SOURCE_RELEASE
The source release.
-
TARGET_RELEASE
public static final MigratorCommandLineOption TARGET_RELEASE
The target release.
-
VALIDATION_LEVEL
public static final MigratorCommandLineOption VALIDATION_LEVEL
The validation level.
-
BACKUP
public static final MigratorCommandLineOption BACKUP
Whether a backup should be created.
-
OPERATION
public static final MigratorCommandLineOption OPERATION
The set of operations.
-
LIBRARY
public static final MigratorCommandLineOption LIBRARY
The set of libraries.
-
VM_ARGUMENTS
public static final MigratorCommandLineOption VM_ARGUMENTS
JVM arguments.
-
-
Method Detail
-
values
public static MigratorCommandLineOption[] 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 (MigratorCommandLineOption c : MigratorCommandLineOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MigratorCommandLineOption 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
-
getOption
public static MigratorCommandLineOption getOption(char character)
Get the option with a certain character.
-
toOptionPrefix
public String toOptionPrefix()
Get the command line prefix for this option.
-
id
public String id()
Get the identifier of the option.
-
-