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

public Class IsSetFieldRenderer

extends Object
implements FieldRenderer
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.generator.bean.field.FieldRenderer
Imports
com.sun.tools.xjc.generator.bean.ClassOutlineImpl, com.sun.tools.xjc.model.CPropertyInfo, com.sun.tools.xjc.outline.FieldOutline

FieldRenderer that wraps another field generator and produces isSetXXX unsetXXX methods.

This follows the decorator design pattern so that the caller of FieldRenderer can forget about details of the method generation.

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final FieldRenderer
private final boolean
private final boolean

Constructor Summary

AccessConstructor and Description
public
IsSetFieldRenderer(FieldRenderer core, boolean generateUnSetMethod, boolean generateIsSetMethod)

Method Summary

Modifier and TypeMethod and Description
public FieldOutline
generate(ClassOutlineImpl context, CPropertyInfo prop)

Implements com.sun.tools.xjc.generator.bean.field.FieldRenderer.generate.

Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

coreback to summary
private final FieldRenderer core
generateIsSetMethodback to summary
private final boolean generateIsSetMethod
generateUnSetMethodback to summary
private final boolean generateUnSetMethod

Constructor Detail

IsSetFieldRendererback to summary
public IsSetFieldRenderer(FieldRenderer core, boolean generateUnSetMethod, boolean generateIsSetMethod)

Method Detail

generateback to summary
public FieldOutline generate(ClassOutlineImpl context, CPropertyInfo prop)

Implements com.sun.tools.xjc.generator.bean.field.FieldRenderer.generate.

Doc from com.sun.tools.xjc.generator.bean.field.FieldRenderer.generate.

Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.

Annotations
@Override