org.dishevelled.codegen
Enum Style

java.lang.Object
  extended by java.lang.Enum<Style>
      extended by org.dishevelled.codegen.Style
All Implemented Interfaces:
Serializable, Comparable<Style>

public enum Style
extends Enum<Style>

Source code generation style.

Feature summary:

ConsiderationImmutableImmutableWithCopyMutatorsMutable RichlyMutableExtendedRichlyMutableUnsafe
final field XX    
final collection field XXXXX 
final class XX    
defensive copy XXXXX 
unmodifiable at creation XX    
unmodifiable at access   XXX 
get method XXXXXX
set method   XXXX
set collection method      X
with copy mutator  X    
has method     X 
add method   XXX 
add... method     X 
addAll method    XX 
remove method   XXX 
remove... method     X 
removeAll method    XX 
retainAll method    XX 
clear method    XX 
final methods   XXX 
default constructor       
required argument only constructor   XXXX
full argument constructor XXXXXX
override toString and hashCode   XXXX

Version:
$Revision: 972 $ $Date: 2011-01-04 21:34:39 -0600 (Tue, 04 Jan 2011) $
Author:
Michael Heuer

Enum Constant Summary
Exception
          Exception source code generation style.
ExtendedRichlyMutable
          Richly mutable source code generation style with a few additional methods per attribute and association.
Immutable
          Immutable source code generation style.
ImmutableWithCopyMutators
          Immutable with copy mutators source code generation style.
Mutable
          Mutable source code generation style.
MutableBean
          Mutable bean source code generation style, with property change support.
RichlyMutable
          Richly mutable source code generation style.
RuntimeException
          RuntimeException source code generation style.
Unsafe
          Unsafe source code generation style.
 
Method Summary
static Style valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Style[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Immutable

public static final Style Immutable
Immutable source code generation style.


ImmutableWithCopyMutators

public static final Style ImmutableWithCopyMutators
Immutable with copy mutators source code generation style.


Mutable

public static final Style Mutable
Mutable source code generation style.


MutableBean

public static final Style MutableBean
Mutable bean source code generation style, with property change support.


RichlyMutable

public static final Style RichlyMutable
Richly mutable source code generation style.


ExtendedRichlyMutable

public static final Style ExtendedRichlyMutable
Richly mutable source code generation style with a few additional methods per attribute and association.

TODO: come up with a more appropriate name for this value


Unsafe

public static final Style Unsafe
Unsafe source code generation style.


Exception

public static final Style Exception
Exception source code generation style.


RuntimeException

public static final Style RuntimeException
RuntimeException source code generation style.

Method Detail

values

public static Style[] 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 (Style c : Style.values())
    System.out.println(c);

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

valueOf

public static Style 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 name
NullPointerException - if the argument is null


Copyright (c) 2004-2011 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).