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

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

public class SingleElementField
extends AbstractField


Field Summary
protected  com.sun.codemodel.JFieldRef field
           
protected  com.sun.codemodel.JMethod getter
           
protected  com.sun.codemodel.JFieldRef nameField
           
protected  com.sun.tools.xjc.model.CPropertyInfo nameProperty
           
protected  com.sun.codemodel.JMethod setter
           
protected  com.sun.codemodel.JFieldRef valueField
           
protected  com.sun.tools.xjc.model.CPropertyInfo valueProperty
           
 
Fields inherited from class org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
codeModel, exposedType, implType, outline, prop
 
Constructor Summary
SingleElementField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl outline, com.sun.tools.xjc.model.CPropertyInfo property, com.sun.tools.xjc.model.CPropertyInfo nameProperty, com.sun.tools.xjc.model.CPropertyInfo valueProperty)
           
 
Method Summary
 com.sun.tools.xjc.outline.FieldAccessor create(com.sun.codemodel.JExpression targetObject)
           
protected  com.sun.codemodel.JMethod createGetter()
           
protected  com.sun.codemodel.JMethod createSetter()
           
protected  String getGetterName()
           
 com.sun.codemodel.JType getRawType()
           
protected  String getSetterName()
           
 
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 final com.sun.codemodel.JFieldRef field

getter

protected final com.sun.codemodel.JMethod getter

setter

protected final com.sun.codemodel.JMethod setter

nameProperty

protected final com.sun.tools.xjc.model.CPropertyInfo nameProperty

nameField

protected final com.sun.codemodel.JFieldRef nameField

valueProperty

protected final com.sun.tools.xjc.model.CPropertyInfo valueProperty

valueField

protected final com.sun.codemodel.JFieldRef valueField
Constructor Detail

SingleElementField

public SingleElementField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl outline,
                          com.sun.tools.xjc.model.CPropertyInfo property,
                          com.sun.tools.xjc.model.CPropertyInfo nameProperty,
                          com.sun.tools.xjc.model.CPropertyInfo valueProperty)
Method Detail

createSetter

protected com.sun.codemodel.JMethod createSetter()

createGetter

protected com.sun.codemodel.JMethod createGetter()

getSetterName

protected String getSetterName()

getGetterName

protected String getGetterName()

create

public com.sun.tools.xjc.outline.FieldAccessor create(com.sun.codemodel.JExpression targetObject)

getRawType

public com.sun.codemodel.JType getRawType()


Copyright © 2005-2011. All Rights Reserved.