public class ClassOperations extends XmiHelper
Constructor and Description |
---|
ClassOperations(DocumentManager documentManager,
Architecture a) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeToClass(java.lang.String idClass,
Attribute attribute) |
ClassOperations |
addMethodToClass(java.lang.String idClass,
Method method) |
void |
addStereotype(java.lang.String id,
Variant variant)
Aplica um dado estereótipo a classe.
|
ClassOperations |
asInterface() |
java.util.Map<java.lang.String,java.lang.String> |
build()
Finaliza a criação da classe.
|
ClassOperations |
createClass(Element _klass) |
ClassOperations |
isAbstract() |
ClassOperations |
isVariationPoint(java.lang.String variants,
java.lang.String variabilities,
java.lang.String bidingTime)
Indica que a classe sendo criada é um ponto de variação, ou seja, possui o estereótipo variationPoint
|
ClassOperations |
linkToNote(java.lang.String id)
Anota uma classe com um dado comentário
|
void |
removeAttribute(java.lang.String idAttributeToRemove) |
void |
removeClassById(java.lang.String id) |
void |
removeMethod(java.lang.String idMethodoToRmove) |
ClassOperations |
withAttribute(java.util.List<Attribute> attributes)
Cria
Attribute para a classe |
ClassOperations |
withId(java.lang.String ownerClass) |
ClassOperations |
withMethod(Method method)
Recebe um único método.
|
ClassOperations |
withMethods(java.util.Set<Method> methods)
Recebe vários métodos
|
ClassOperations |
withStereoype(Variant... stereotypeNames)
Aplica um estereótipo na classe.
|
findByID, findByIDInNotationFile, findIdByName, findTypeById, getHeightForPackage, getIdForNode, getOnlyIdOfXmiAttribute, getOriginalNotation, getWidhtForPackage, getXmiId, getXValueForElement, getYValueForElement, isClassAbstract, randomNum, removeNode, setNotationOriginalFile, setRecursiveOwnedComments, splitVariants
public ClassOperations(DocumentManager documentManager, Architecture a)
public ClassOperations createClass(Element _klass)
public ClassOperations withAttribute(java.util.List<Attribute> attributes)
Attribute
para a classeattributes
- CustonTypeNotFound
NodeNotFound
InvalidMultiplictyForAssociationException
public ClassOperations withMethods(java.util.Set<Method> methods)
methods
- public ClassOperations withMethod(Method method)
method
- public java.util.Map<java.lang.String,java.lang.String> build()
Map
com informações sobre a classe criada.NodeNotFound
CustonTypeNotFound
InvalidMultiplictyForAssociationException
public void removeClassById(java.lang.String id)
public void removeAttribute(java.lang.String idAttributeToRemove)
public void removeMethod(java.lang.String idMethodoToRmove)
public ClassOperations addMethodToClass(java.lang.String idClass, Method method)
public void addAttributeToClass(java.lang.String idClass, Attribute attribute)
public ClassOperations isAbstract()
public ClassOperations withStereoype(Variant... stereotypeNames) throws ModelNotFoundException, ModelIncompleteException, SMartyProfileNotAppliedToModelExcepetion, CustonTypeNotFound, NodeNotFound, InvalidMultiplictyForAssociationException
stereotypeName
- SMartyProfileNotAppliedToModelExcepetion
ModelIncompleteException
ModelNotFoundException
InvalidMultiplictyForAssociationException
NodeNotFound
CustonTypeNotFound
public void addStereotype(java.lang.String id, Variant variant)
id
- - Classe idvariant
- - EstereótipoModelNotFoundException
ModelIncompleteException
SMartyProfileNotAppliedToModelExcepetion
CustonTypeNotFound
NodeNotFound
InvalidMultiplictyForAssociationException
public ClassOperations isVariationPoint(java.lang.String variants, java.lang.String variabilities, java.lang.String bidingTime)
variants
- - uma String (com nomes das variantes) separada por virgula.variabilities
- - uma String (com nomes das variabilities) separada por virgulabidingTime
- - BindingTime
ClassOperations
CustonTypeNotFound
NodeNotFound
InvalidMultiplictyForAssociationException
public ClassOperations linkToNote(java.lang.String id)
id
- - ID do comentário.InvalidMultiplictyForAssociationException
NodeNotFound
CustonTypeNotFound
public ClassOperations withId(java.lang.String ownerClass)
public ClassOperations asInterface()