Top Description Methods
com.sun.tools.xjc.outline

public Interface FieldOutline

Known Direct Implementers
com.sun.tools.xjc.api.impl.s2j.ElementAdapter, com.sun.tools.xjc.generator.bean.field.AbstractField
Imports
com.sun.codemodel.JExpression, .JType, com.sun.tools.xjc.model.CPropertyInfo

Representation of a field of ClassOutline.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public FieldAccessor
create(JExpression
Evaluates to an object, and the field on this object will be accessed.
targetObject
)

Creates a new FieldAccessor of this field for the specified object.

public CPropertyInfo
getPropertyInfo()

Gets the corresponding model object.

public JType
getRawType()

Gets the type of the "raw value".

public ClassOutline
parent()

Gets the enclosing ClassOutline.

Method Detail

createback to summary
public FieldAccessor create(JExpression targetObject)

Creates a new FieldAccessor of this field for the specified object.

Parameters
targetObject:JExpression

Evaluates to an object, and the field on this object will be accessed.

getPropertyInfoback to summary
public CPropertyInfo getPropertyInfo()

Gets the corresponding model object.

getRawTypeback to summary
public JType getRawType()

Gets the type of the "raw value".

This type can represent the entire value of this field. For fields that can carry multiple values, this is an array.

This type allows the client of the outline to generate code to set/get values from a property.

parentback to summary
public ClassOutline parent()

Gets the enclosing ClassOutline.