com.sun.tools.xjc.generator.bean.field
public class SingleField extends AbstractFieldWithVar
T' field; T getXXX() { ... } void setXXX(T value) { ... }
Normally T'=T, but under some tricky circumstances they could be different (like T'=Integer, T=int.) This realization is only applicable to fields with (1,1) or (0,1) multiplicity.
Nested Class Summary | |
---|---|
protected class | SingleField.Accessor |
Constructor Summary | |
---|---|
protected | SingleField(ClassOutlineImpl context, CPropertyInfo prop) |
protected | SingleField(ClassOutlineImpl context, CPropertyInfo prop, boolean forcePrimitiveAccess) |
Method Summary | |
---|---|
FieldAccessor | create(JExpression targetObject) |
JType | getFieldType() |
Parameters: forcePrimitiveAccess forces the setter/getter to expose the primitive type. it's a pointless customization, but it's nevertheless in the spec.