com.sun.tools.xjc.generator.bean.field
Interface FieldRenderer

All Known Implementing Classes:
ConstFieldRenderer, DefaultFieldRenderer, GenericFieldRenderer, IsSetFieldRenderer, UntypedListFieldRenderer

public interface FieldRenderer

Abstract model of one field in a generated class.

Responsible for "realizing" a Java property by actually generating members(s) to store the property value and a set of methods to manipulate them.

Objects that implement this interface also encapsulates the internal access to the field.

For discussion of the model this interface is representing, see the "field meta model" design document. REVISIT: refactor this to two interfaces that provide (1) internal access and (2) external access.


Field Summary
static FieldRenderer ARRAY
           
static FieldRenderer DEFAULT
           
static FieldRenderer JAXB_DEFAULT
           
static FieldRenderer REQUIRED_UNBOXED
           
static FieldRenderer SINGLE
           
static FieldRenderer SINGLE_PRIMITIVE_ACCESS
           
 
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.
 

Field Detail

DEFAULT

static final FieldRenderer DEFAULT

ARRAY

static final FieldRenderer ARRAY

REQUIRED_UNBOXED

static final FieldRenderer REQUIRED_UNBOXED

SINGLE

static final FieldRenderer SINGLE

SINGLE_PRIMITIVE_ACCESS

static final FieldRenderer SINGLE_PRIMITIVE_ACCESS

JAXB_DEFAULT

static final FieldRenderer JAXB_DEFAULT
Method Detail

generate

FieldOutline generate(ClassOutlineImpl context,
                      CPropertyInfo prop)
Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.