org.apache.tools.ant.taskdefs.optional.dotnet

Class WsdlToDotnet.Compiler

Enclosing Class:
WsdlToDotnet

public static class WsdlToDotnet.Compiler
extends EnumeratedAttribute

The enumerated values for our compiler

Field Summary

static String
COMPILER_MONO
mono
static String
COMPILER_MS
microsoft
static String
COMPILER_MS_ON_MONO
microsoft-on-mono
static String
EXE_MONO
MONO
static String
EXE_WSDL
WSDL

Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute

value

Method Summary

void
applyExtraArgs(NetCommand command)
apply any extra arguments of this class
static WsdlToDotnet.Compiler
createDefaultCompiler()
Create the default compiler for this platform.
String
getCommand()
return the command to run
String[]
getExtraArgs()
return any extra arguments for the compiler
String[]
getValues()
This is the only method a subclass needs to implement.
boolean
supportsAbsoluteFiles()
Get where the current value supports absolute files.

Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute

containsValue, getIndex, getInstance, getValue, getValues, indexOfValue, setValue, toString

Field Details

COMPILER_MONO

public static final String COMPILER_MONO
mono

COMPILER_MS

public static final String COMPILER_MS
microsoft

COMPILER_MS_ON_MONO

public static final String COMPILER_MS_ON_MONO
microsoft-on-mono

EXE_MONO

public static final String EXE_MONO
MONO

EXE_WSDL

public static final String EXE_WSDL
WSDL

Method Details

applyExtraArgs

public void applyExtraArgs(NetCommand command)
apply any extra arguments of this class
Parameters:
command - the command to apply the arguments to.

createDefaultCompiler

public static WsdlToDotnet.Compiler createDefaultCompiler()
Create the default compiler for this platform.
Returns:
the default compiler

getCommand

public String getCommand()
return the command to run
Returns:
the command

getExtraArgs

public String[] getExtraArgs()
return any extra arguments for the compiler
Returns:
extra compiler arguments

getValues

public String[] getValues()
This is the only method a subclass needs to implement.
Overrides:
getValues in interface EnumeratedAttribute
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.

supportsAbsoluteFiles

public boolean supportsAbsoluteFiles()
Get where the current value supports absolute files.
Returns:
true if the compiler does supports absolute files.