public class VariabilityFlyweight
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addModel(org.eclipse.uml2.uml.Package model2) |
void |
createVariants()
Create variants
|
static VariabilityFlyweight |
getInstance() |
Variability |
getOrCreateVariability(java.lang.String owner,
java.util.Map<java.lang.String,java.lang.String> variabilityAttributes)
Get or create variability
|
java.util.List<Variability> |
getVariabilities() |
Variability |
getVariability(java.lang.String name)
Get variability
|
void |
resetVariabilities() |
void |
setArchitecture(Architecture architecture) |
void |
setVariabilities(java.util.HashMap<java.lang.String,Variability> variabilities) |
public static VariabilityFlyweight getInstance()
public Variability getOrCreateVariability(java.lang.String owner, java.util.Map<java.lang.String,java.lang.String> variabilityAttributes)
owner
- ownervariabilityAttributes
- attributespublic void createVariants()
public Variability getVariability(java.lang.String name)
name
- name of variabilitypublic java.util.List<Variability> getVariabilities()
public void setVariabilities(java.util.HashMap<java.lang.String,Variability> variabilities)
public void setArchitecture(Architecture architecture)
public void resetVariabilities()
public void addModel(org.eclipse.uml2.uml.Package model2)