Top Description Inners Fields Constructors Methods
com.sun.tools.xjc.generator.bean

public sealed Enum ImplStructureStrategy

extends Enum<ImplStructureStrategy>
Class Inheritance
Annotations
@XmlEnum:Boolean
Imports
jakarta.xml.bind.annotation.XmlAccessType, .XmlEnum, .XmlEnumValue, com.sun.codemodel.JClassContainer, .JDefinedClass, .JDocComment, .JMethod, .JMod, .JPackage, .JType, .JVar, com.sun.tools.xjc.generator.annotation.spec.XmlAccessorTypeWriter, com.sun.tools.xjc.model.CClassInfo, com.sun.tools.xjc.outline.Aspect, .Outline

Decides how a bean token is mapped to the generated classes.

The actual implementations of this interface is tightly coupled with the backend, but the front-end gets to choose which strategy to be used.

Author
Kohsuke Kawaguchi ([email protected])

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final ImplStructureStrategy
BEAN_ONLY

Generates beans only.

public static final ImplStructureStrategy
INTF_AND_IMPL

Generates the interfaces to describe beans (content interfaces) and then the beans themselves in a hidden impl package.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected abstract void
_extends(ClassOutlineImpl derived, ClassOutlineImpl base)

Sets up an inheritance relationship.

protected abstract ImplStructureStrategy.Result
createClasses(Outline outline, CClassInfo bean)

Creates class(es) for the given bean.

protected abstract MethodWriter
protected abstract JPackage
getPackage(JPackage pkg, Aspect a)

Gets the specified aspect of the given package.

public static ImplStructureStrategy
public static ImplStructureStrategy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BEAN_ONLYback to summary
public static final ImplStructureStrategy BEAN_ONLY

Generates beans only. The simplest code generation.

Annotations
@XmlEnumValue:true
INTF_AND_IMPLback to summary
public static final ImplStructureStrategy INTF_AND_IMPL

Generates the interfaces to describe beans (content interfaces) and then the beans themselves in a hidden impl package. Similar to JAXB 1.0.

Annotations
@XmlEnumValue:false

Constructor Detail

ImplStructureStrategyback to summary
private ImplStructureStrategy()

Method Detail

_extendsback to summary
protected abstract void _extends(ClassOutlineImpl derived, ClassOutlineImpl base)

Sets up an inheritance relationship.

createClassesback to summary
protected abstract ImplStructureStrategy.Result createClasses(Outline outline, CClassInfo bean)

Creates class(es) for the given bean.

createMethodWriterback to summary
protected abstract MethodWriter createMethodWriter(ClassOutlineImpl target)
getPackageback to summary
protected abstract JPackage getPackage(JPackage pkg, Aspect a)

Gets the specified aspect of the given package.

valueOfback to summary
public static ImplStructureStrategy valueOf(String name)
valuesback to summary
public static ImplStructureStrategy[] values()
com.sun.tools.xjc.generator.bean back to summary

public final Class ImplStructureStrategy.Result

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.tools.xjc.generator.bean.ImplStructureStrategy.Result

Field Summary

Modifier and TypeField and Description
public final JDefinedClass
exposed

Corresponds to Aspect#EXPOSED

public final JDefinedClass

Constructor Summary

AccessConstructor and Description
public
Result(JDefinedClass exposed, JDefinedClass implementation)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exposedback to summary
public final JDefinedClass exposed

Corresponds to Aspect#EXPOSED

implementationback to summary
public final JDefinedClass implementation

Corresponds to Aspect#IMPLEMENTATION

Constructor Detail

Resultback to summary
public Result(JDefinedClass exposed, JDefinedClass implementation)