Download Sources

com.liguorien.flex.generator.utils
Enum OutputMode

java.lang.Object
  extended by java.lang.Enum<OutputMode>
      extended by com.liguorien.flex.generator.utils.OutputMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OutputMode>

public enum OutputMode
extends java.lang.Enum<OutputMode>

Used to define different output modes available to the FlexModelGenerator

The current modes are :

Version:
0.2
Author:
Nicolas Désy, Nicolas Désy
See Also:
FlexGenerator.setOutputMode(com.liguorien.flex.generator.utils.OutputMode)

Enum Constant Summary
CONSOLE
          The generator will output the result directly to the system output.
FILE
          The generator will output the result directly into actionscript file.
 
Method Summary
static OutputMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OutputMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FILE

public static final OutputMode FILE

The generator will output the result directly into actionscript file.

You must set the output directory of the FlexModelGenerator to use this mode

WARNING : if the actionscript file already exists, it will be overwritten. So be careful with this mode and use it only to generate the skeleton of the actionscript classes

See Also:
FlexGenerator.setOutputMode(com.liguorien.flex.generator.utils.OutputMode), FlexGenerator.setFlexOutputDirectory(java.io.File), FlexGenerator.setJavaOutputDirectory(java.io.File)

CONSOLE

public static final OutputMode CONSOLE

The generator will output the result directly to the system output.

See Also:
FlexGenerator.setOutputMode(com.liguorien.flex.generator.utils.OutputMode)
Method Detail

values

public static final OutputMode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(OutputMode c : OutputMode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static OutputMode 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 name

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.