ElementAdapter that works with a collection
of JAXBElement.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FieldAccessor | create(JExpression targetObject)
Implements com. Creates a new |
| public JType | getRawType()
Implements com. Gets the type of the "raw value". |
| private JType |
| ElementCollectionAdapter | back to summary |
|---|---|
| public ElementCollectionAdapter(FieldOutline core, CElementInfo ei) | |
| create | back to summary |
|---|---|
| public FieldAccessor create(JExpression targetObject) Implements com. Doc from com. Creates a new
| |
| getRawType | back to summary |
|---|---|
| public JType getRawType() Implements com. Doc from com. 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.
| |
| itemType | back to summary |
|---|---|
| private JType itemType() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | fromRawValue(JBlock block, String uniqueName, JExpression $var)
Implements com. Sets the value of the field from the specified expression. |
| public void | toRawValue(JBlock block, JVar $var)
Implements com. Dumps everything in this field into the given variable. |
| FieldAccessorImpl | back to summary |
|---|---|
| public FieldAccessorImpl(JExpression target) | |
| fromRawValue | back to summary |
|---|---|
| public void fromRawValue(JBlock block, String uniqueName, JExpression $var) Implements com. Doc from com. Sets the value of the field from the specified expression. This generates code that accesses the field from outside.
| |
| toRawValue | back to summary |
|---|---|
| public void toRawValue(JBlock block, JVar $var) Implements com. Doc from com. Dumps everything in this field into the given variable. This generates code that accesses the field from outside.
| |