com.sun.tools.xjc.generator.bean.field
Class IsSetFieldRenderer

java.lang.Object
  extended by com.sun.tools.xjc.generator.bean.field.IsSetFieldRenderer
All Implemented Interfaces:
FieldRenderer

public class IsSetFieldRenderer
extends java.lang.Object
implements FieldRenderer

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.


Constructor Summary
IsSetFieldRenderer(FieldRenderer core, boolean generateUnSetMethod, boolean generateIsSetMethod)
           
 
Method Summary
 FieldOutline generate(ClassOutlineImpl context, CPropertyInfo prop)
          Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsSetFieldRenderer

public IsSetFieldRenderer(FieldRenderer core,
                          boolean generateUnSetMethod,
                          boolean generateIsSetMethod)
Method Detail

generate

public FieldOutline generate(ClassOutlineImpl context,
                             CPropertyInfo prop)
Description copied from interface: FieldRenderer
Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.

Specified by:
generate in interface FieldRenderer