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 Details

    • 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 Details

    • values

      public static Aspect[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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