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

pack-priv final Class ElementCollectionAdapter

extends ElementAdapter
Class Inheritance
Imports
java.util.ArrayList, .List, jakarta.xml.bind.JAXBElement, com.sun.codemodel.JBlock, .JClass, .JCodeModel, .JConditional, .JExpr, .JExpression, .JForEach, .JType, .JVar, com.sun.tools.xjc.model.CElementInfo, com.sun.tools.xjc.outline.FieldAccessor, .FieldOutline

ElementAdapter that works with a collection of 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".

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

Constructor Detail

ElementCollectionAdapterback to summary
public ElementCollectionAdapter(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
itemTypeback to summary
private JType itemType()
com.sun.tools.xjc.api.impl.s2j back to summary

pack-priv final Class ElementCollectionAdapter.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