public class Variant extends java.lang.Object implements Stereotype
Constructor and Description |
---|
Variant() |
Modifier and Type | Method and Description |
---|---|
void |
addVariability(Variability variability) |
void |
addVariationPoint(VariationPoint vp) |
Variant |
andRootVp(java.lang.String rootVP)
rootVP, representa o ponto de variação ao qual está associado .
|
Variant |
build() |
static Variant |
createVariant() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
java.lang.String |
getRootVP() |
java.util.List<Variability> |
getVariabilities() |
Element |
getVariantElement() |
java.lang.String |
getVariantName()
Retorna o nome da classe que tem a variant em questão.
|
java.lang.String |
getVariantType() |
java.util.List<VariationPoint> |
getVariationPoints() |
int |
hashCode() |
void |
setName(java.lang.String name) |
void |
setRootVP(java.lang.String rootVP) |
void |
setVariabilities(java.util.List<Variability> variabilities) |
void |
setVariantElement(Element variantElement) |
void |
setVariantType(java.lang.String variantType) |
void |
setVariationPoints(java.util.List<VariationPoint> variationPoints) |
Variant |
wihtVariabilities(java.util.List<Variability> variabilities2) |
Variant |
withName(java.lang.String name) |
Variant |
withVariantType(java.lang.String name) |
public static Variant createVariant()
public java.lang.String getVariantName()
public java.lang.String getRootVP()
public void setRootVP(java.lang.String rootVP)
rootVP
- the rootVP to setpublic Variant withName(java.lang.String name)
public Variant andRootVp(java.lang.String rootVP)
Deve ser o nome da classe/interface que representa o rootVP
rootVP
- public Variant build()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.util.List<Variability> getVariabilities()
public void addVariability(Variability variability)
public void setVariabilities(java.util.List<Variability> variabilities)
variabilities
- the variabilities to setpublic Variant withVariantType(java.lang.String name)
public java.lang.String getVariantType()
public void setVariantType(java.lang.String variantType)
variantType
- the variantType to setpublic Element getVariantElement()
public void setVariantElement(Element variantElement)
variantElement
- the variantElement to setpublic java.util.List<VariationPoint> getVariationPoints()
public void addVariationPoint(VariationPoint vp)
public void setVariationPoints(java.util.List<VariationPoint> variationPoints)
variationPoints
- the variationPoints to setpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Variant wihtVariabilities(java.util.List<Variability> variabilities2)