Top Description Inners Fields Constructors Methods
com.sun.tools.xjc.api.impl.s2j

pack-priv final Class ElementSingleAdapter

extends ElementAdapter
Class Inheritance
Imports
jakarta.xml.bind.JAXBElement, com.sun.codemodel.JType, .JBlock, .JVar, .JConditional, .JExpr, .JExpression, com.sun.tools.xjc.outline.Aspect, .FieldOutline, .FieldAccessor, com.sun.tools.xjc.model.CElementInfo

ElementAdapter that works with a single JAXBElement.
Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Inherited from com.sun.tools.xjc.api.impl.s2j.ElementAdapter:
coreei

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FieldAccessor
create(JExpression targetObject)

Implements com.sun.tools.xjc.outline.FieldOutline.create.

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

public JType
getRawType()

Implements com.sun.tools.xjc.outline.FieldOutline.getRawType.

Gets the type of the "raw value".

Inherited from com.sun.tools.xjc.api.impl.s2j.ElementAdapter:
codeModelgetPropertyInfooutlineparent

Constructor Detail

ElementSingleAdapterback to summary
public ElementSingleAdapter(FieldOutline core, CElementInfo ei)

Method Detail

createback to summary
public FieldAccessor create(JExpression targetObject)

Implements com.sun.tools.xjc.outline.FieldOutline.create.

Doc from com.sun.tools.xjc.outline.FieldOutline.create.

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

Annotations
@Override
getRawTypeback to summary
public JType getRawType()

Implements com.sun.tools.xjc.outline.FieldOutline.getRawType.

Doc from com.sun.tools.xjc.outline.FieldOutline.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.

Annotations
@Override
com.sun.tools.xjc.api.impl.s2j back to summary

pack-priv final Class ElementSingleAdapter.FieldAccessorImpl

extends FieldAccessorImpl
Class Inheritance

Field Summary

Inherited from com.sun.tools.xjc.api.impl.s2j.ElementAdapter.FieldAccessorImpl:
acc

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
fromRawValue(JBlock block, String uniqueName, JExpression $var)

Implements com.sun.tools.xjc.outline.FieldAccessor.fromRawValue.

Sets the value of the field from the specified expression.

public void
toRawValue(JBlock block, JVar $var)

Implements com.sun.tools.xjc.outline.FieldAccessor.toRawValue.

Dumps everything in this field into the given variable.

Inherited from com.sun.tools.xjc.api.impl.s2j.ElementAdapter.FieldAccessorImpl:
createJAXBElementgetPropertyInfohasSetValueownerunsetValues

Constructor Detail

FieldAccessorImplback to summary
public FieldAccessorImpl(JExpression target)

Method Detail

fromRawValueback to summary
public void fromRawValue(JBlock block, String uniqueName, JExpression $var)

Implements com.sun.tools.xjc.outline.FieldAccessor.fromRawValue.

Doc from com.sun.tools.xjc.outline.FieldAccessor.fromRawValue.

Sets the value of the field from the specified expression.

This generates code that accesses the field from outside.

Annotations
@Override
toRawValueback to summary
public void toRawValue(JBlock block, JVar $var)

Implements com.sun.tools.xjc.outline.FieldAccessor.toRawValue.

Doc from com.sun.tools.xjc.outline.FieldAccessor.toRawValue.

Dumps everything in this field into the given variable.

This generates code that accesses the field from outside.

Annotations
@Override