org.jvnet.hyperjaxb3.xjc.generator.bean.field
Class UntypedSettableListField

java.lang.Object
  extended by org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
      extended by org.jvnet.hyperjaxb3.xjc.generator.bean.field.UntypedListField
          extended by org.jvnet.hyperjaxb3.xjc.generator.bean.field.UntypedSettableListField
All Implemented Interfaces:
com.sun.tools.xjc.outline.FieldOutline

public class UntypedSettableListField
extends UntypedListField


Field Summary
protected  com.sun.codemodel.JFieldVar field
          The field that stores the list.
protected  com.sun.codemodel.JClass listT
           
protected  com.sun.codemodel.JPrimitiveType primitiveType
          If this collection property is a collection of a primitive type, this variable refers to that primitive type.
 
Fields inherited from class org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
codeModel, exposedType, implType, outline, prop
 
Constructor Summary
protected UntypedSettableListField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl classOutline, com.sun.tools.xjc.model.CPropertyInfo propertyInfo, com.sun.codemodel.JClass coreList)
           
 
Method Summary
protected  void fixNullRef(com.sun.codemodel.JBlock block)
          Generates statement(s) so that the successive Accessor#ref(boolean) with true will always return a non-null list.
protected  void generate()
           
 void generateAccessors()
          Generates accessor methods.
 com.sun.codemodel.JType getRawType()
           
 
Methods inherited from class org.jvnet.hyperjaxb3.xjc.generator.bean.field.UntypedListField
create, getCoreListType
 
Methods inherited from class org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
annotate, castToImplType, generateField, getPropertyInfo, getType, getType, listPossibleTypes, parent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

protected com.sun.codemodel.JFieldVar field
The field that stores the list.


primitiveType

protected final com.sun.codemodel.JPrimitiveType primitiveType
If this collection property is a collection of a primitive type, this variable refers to that primitive type. Otherwise null.


listT

protected final com.sun.codemodel.JClass listT
Constructor Detail

UntypedSettableListField

protected UntypedSettableListField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl classOutline,
                                   com.sun.tools.xjc.model.CPropertyInfo propertyInfo,
                                   com.sun.codemodel.JClass coreList)
Method Detail

generateAccessors

public void generateAccessors()
Generates accessor methods.

Overrides:
generateAccessors in class UntypedListField

generate

protected final void generate()

fixNullRef

protected final void fixNullRef(com.sun.codemodel.JBlock block)
Generates statement(s) so that the successive Accessor#ref(boolean) with true will always return a non-null list. This is useful to avoid generating redundant internal getter.


getRawType

public final com.sun.codemodel.JType getRawType()


Copyright © 2005-2014. All Rights Reserved.