Package com.sun.tools.xjc.outline
Enum Aspect
- java.lang.Object
-
- java.lang.Enum<Aspect>
-
- 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.
- Author:
- Kohsuke Kawaguchi TODO: move this to the model package. We cannot do this before JAXB3 because of old plugins
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPOSED
The exposed part of the bean.IMPLEMENTATION
The part of the bean that holds all the implementations.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 toIMPLEMENTATION
.
-
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 nameNullPointerException
- if the argument is null
-
-