public class SetterWrapperForCollectionsAndMaps extends AssignmentWrapper
MappingTargetbefore adding the source entries.
If there is no pre-existing target, or the target Collection / Map is not initialized (null) the setter is used to
create a new Collection / Map with the copy constructor.Assignment.AssignmentTypeWritable.Context| Constructor and Description |
|---|
SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
ExecutableElement targetSetter,
Assignment newCollectionOrMapAssignment) |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
Assignment |
getNewCollectionOrMapAssignment() |
String |
getTargetGetterName() |
getAssignment, getSourceReference, getThrownTypes, getType, isUpdateMethod, setAssignmentwritegetTemplateName, getTemplateNameForClasspublic SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, ExecutableElement targetSetter, Assignment newCollectionOrMapAssignment)
public String getTargetGetterName()
public Assignment getNewCollectionOrMapAssignment()
public Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in interface AssignmentgetImportTypes in class AssignmentWrappernull.Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.