com.sun.tools.xjc.outline
Enum Aspect

java.lang.Object
  extended by java.lang.Enum<Aspect>
      extended by com.sun.tools.xjc.outline.Aspect
All Implemented Interfaces:
Serializable, Comparable<Aspect>

public enum Aspect
extends Enum<Aspect>

Sometimes a single JAXB-generated bean spans across multiple Java classes/interfaces. We call them "aspects of a bean".

This is an enumeration of all possible aspects.


Enum Constant Summary
EXPOSED
          The exposed part of the bean.
IMPLEMENTATION
          The part of the bean that holds all the implementations.
 
Method Summary
static Aspect valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Aspect[] 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

EXPOSED

public static final Aspect EXPOSED
The exposed part of the bean.

This corresponds to the content interface when we are geneting one. This would be the same as the IMPLEMENTATION when we are just generating beans.

This could be an interface, or it could be a class. We don't have any other ImplStructureStrategy at this point, but generally you can't assume anything about where this could be or whether that's equal to IMPLEMENTATION.


IMPLEMENTATION

public static final Aspect IMPLEMENTATION
The part of the bean that holds all the implementations.

This is always a class, never an interface.

Method Detail

values

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

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

valueOf

public static Aspect 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