public class StereotypeHelper
extends java.lang.Object
Constructor and Description |
---|
StereotypeHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.String> |
getAllPatternsStereotypes(org.eclipse.uml2.uml.NamedElement element) |
static java.util.List<java.lang.String> |
getAllRelationshipStereotypes(org.eclipse.uml2.uml.Relationship element) |
static java.util.List<org.eclipse.uml2.uml.Comment> |
getCommentVariability(org.eclipse.uml2.uml.NamedElement element)
Verifica se um elemento é uma variabilidade.
|
static java.lang.String |
getConcernName(org.eclipse.uml2.uml.NamedElement c)
Retorna o nome do concern, caso existir.
|
static org.eclipse.uml2.uml.Stereotype |
getStereotypeByName(org.eclipse.uml2.uml.NamedElement element,
java.lang.String stereotypeName)
Dada um elemento e um nome de estereótipo retorna o estreótipo caso o mesmo exista no elemento.
|
static java.lang.String |
getValueOfAttribute(org.eclipse.uml2.uml.Element element,
org.eclipse.uml2.uml.Stereotype variability,
java.lang.String attrName)
Retorna o valor de um attributo de um dado estereótipo e EnumerationLiteral.
|
static java.util.Map<java.lang.String,java.lang.String> |
getVariabilityAttributes(org.eclipse.uml2.uml.NamedElement klass,
org.eclipse.uml2.uml.Comment comment)
Retorna um
Map contendo os atributos/valores para atributos de um variabilidade. |
static org.eclipse.uml2.uml.Stereotype |
getVariantType(org.eclipse.uml2.uml.Classifier klass) |
static boolean |
hasConcern(org.eclipse.uml2.uml.NamedElement element)
Verifica se elemento possui interesse.
|
static boolean |
hasStereotype(org.eclipse.uml2.uml.NamedElement elt,
java.lang.String stereotypeName)
Verifica se um dado elemento (elt) contém o estereótipo (stereotypeName ).
|
static boolean |
isVariability(org.eclipse.uml2.uml.NamedElement element)
Verifica se um elemento é uma variabilidade.
|
static boolean |
isVariationPoint(org.eclipse.uml2.uml.NamedElement element)
Verifica se um elemento é um ponto de variação.
|
public static boolean hasStereotype(org.eclipse.uml2.uml.NamedElement elt, java.lang.String stereotypeName)
elt
- stereotypeName
- public static boolean isVariationPoint(org.eclipse.uml2.uml.NamedElement element)
element
- public static java.util.List<org.eclipse.uml2.uml.Comment> getCommentVariability(org.eclipse.uml2.uml.NamedElement element)
element
- public static boolean isVariability(org.eclipse.uml2.uml.NamedElement element)
element
- public static boolean hasConcern(org.eclipse.uml2.uml.NamedElement element)
element
- public static java.util.List<java.lang.String> getAllRelationshipStereotypes(org.eclipse.uml2.uml.Relationship element)
element
- public static java.util.Set<java.lang.String> getAllPatternsStereotypes(org.eclipse.uml2.uml.NamedElement element)
public static java.lang.String getValueOfAttribute(org.eclipse.uml2.uml.Element element, org.eclipse.uml2.uml.Stereotype variability, java.lang.String attrName)
element
- stereotype
- attrName
- namepublic static java.lang.String getConcernName(org.eclipse.uml2.uml.NamedElement c) throws ConcernNotFoundException
c
- ConcernNotFoundException
- se concern não for encontradopublic static java.util.Map<java.lang.String,java.lang.String> getVariabilityAttributes(org.eclipse.uml2.uml.NamedElement klass, org.eclipse.uml2.uml.Comment comment) throws ModelNotFoundException, ModelIncompleteException, SMartyProfileNotAppliedToModelExcepetion
Map
contendo os atributos/valores para atributos de um variabilidade.klass
- Map
ModelNotFoundException
ModelIncompleteException
SMartyProfileNotAppliedToModelExcepetion
public static org.eclipse.uml2.uml.Stereotype getStereotypeByName(org.eclipse.uml2.uml.NamedElement element, java.lang.String stereotypeName)
element
- stereotypeName
- public static org.eclipse.uml2.uml.Stereotype getVariantType(org.eclipse.uml2.uml.Classifier klass)