Package org.codehaus.mojo.idlj
Enum TranslatorType
- java.lang.Object
-
- java.lang.Enum<TranslatorType>
-
- org.codehaus.mojo.idlj.TranslatorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TranslatorType>
enum TranslatorType extends java.lang.Enum<TranslatorType>
A selector for the types of IDL translators supported
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TranslatorType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract CompilerTranslator
createTranslator()
private static boolean
isJavaModuleSystemPresent()
(package private) abstract boolean
select(java.lang.String compilerSetting)
(package private) static CompilerTranslator
selectTranslator(java.lang.String compiler)
static TranslatorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TranslatorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final TranslatorType DEFAULT
-
BUILT_IN
public static final TranslatorType BUILT_IN
-
GLASSFISH
public static final TranslatorType GLASSFISH
-
JACORB
public static final TranslatorType JACORB
-
-
Method Detail
-
values
public static TranslatorType[] 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 (TranslatorType c : TranslatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TranslatorType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isJavaModuleSystemPresent
private static boolean isJavaModuleSystemPresent()
-
selectTranslator
static CompilerTranslator selectTranslator(java.lang.String compiler) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
select
abstract boolean select(java.lang.String compilerSetting)
-
createTranslator
abstract CompilerTranslator createTranslator()
-
-