public class SetterCollectionOrMapWrapper 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 |
|---|
SetterCollectionOrMapWrapper(Assignment decoratedAssignment,
java.lang.String targetSetterName,
Assignment newCollectionOrMapAssignment) |
| Modifier and Type | Method and Description |
|---|---|
java.util.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() |
java.lang.String |
getTargetGetterName() |
getAssignment, getExceptionTypes, getSourceReference, getType, setAssignmentwritegetTemplateNamepublic SetterCollectionOrMapWrapper(Assignment decoratedAssignment, java.lang.String targetSetterName, Assignment newCollectionOrMapAssignment)
public java.lang.String getTargetGetterName()
public Assignment getNewCollectionOrMapAssignment()
public java.util.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-2014. All Rights Reserved.