Class IsSetFieldRenderer
java.lang.Object
com.sun.tools.xjc.generator.bean.field.IsSetFieldRenderer
- All Implemented Interfaces:
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.
- Author:
- Kohsuke Kawaguchi ([email protected])
-
Constructor Summary
ConstructorDescriptionIsSetFieldRenderer
(FieldRenderer core, boolean generateUnSetMethod, boolean generateIsSetMethod) -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(ClassOutlineImpl context, CPropertyInfo prop) Generates accesssors and fields for the given implementation class, then returnFieldOutline
for accessing the generated field.
-
Constructor Details
-
IsSetFieldRenderer
public IsSetFieldRenderer(FieldRenderer core, boolean generateUnSetMethod, boolean generateIsSetMethod)
-
-
Method Details
-
generate
Description copied from interface:FieldRenderer
Generates accesssors and fields for the given implementation class, then returnFieldOutline
for accessing the generated field.- Specified by:
generate
in interfaceFieldRenderer
-