public class NestedLocalVariableAssignment extends ModelElement
Chart chart = new Chart();
Label label = new Label();
Artist artist = new Artist();
Song song = new Song();
Studio studio = new Studio();
artist.setLabel( label ); // NestedLocalVariableAssignment
song.setArtist( artist ); // NestedLocalVariableAssignment
label.setStudio( studio );// NestedLocalVariableAssignment
chart.setSong( song ); // NestedLocalVariableAssignment
Writable.Context
Constructor and Description |
---|
NestedLocalVariableAssignment(String targetBean,
String setterName,
String sourceRef) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getSetterName() |
String |
getSourceRef() |
String |
getTargetBean() |
int |
hashCode() |
void |
setTargetBean(String targetBean) |
write
getTemplateName, getTemplateNameForClass
public String getTargetBean()
setterName
is calledpublic void setTargetBean(String targetBean)
targetBean
- the targetBean on which the property setter with setterName
is calledpublic String getSetterName()
public String getSourceRef()
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class ModelElement
null
.Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.