public class OperationsOverGeneralization
extends java.lang.Object
Constructor and Description |
---|
OperationsOverGeneralization(Architecture architecture) |
Modifier and Type | Method and Description |
---|---|
void |
addChildToGeneralization(GeneralizationRelationship generalizationRelationship,
Element newChild) |
GeneralizationRelationship |
createGeneralization(Element parent,
Element child)
Cria um relacionamento de generalização e o adiciona na br.otimizes.oplatool.arquitetura
|
void |
moveGeneralization(GeneralizationRelationship gene,
Class parent,
Class child) |
void |
moveGeneralizationParent(GeneralizationRelationship gene,
Class targetClass) |
void |
moveGeneralizationSubClass(GeneralizationRelationship gene,
Class class1) |
void |
moveGeneralizationToPackage(GeneralizationRelationship generalization,
Package targetPackage)
|
public OperationsOverGeneralization(Architecture architecture)
public void moveGeneralizationParent(GeneralizationRelationship gene, Class targetClass)
public void moveGeneralizationSubClass(GeneralizationRelationship gene, Class class1)
public void moveGeneralization(GeneralizationRelationship gene, Class parent, Class child)
public void addChildToGeneralization(GeneralizationRelationship generalizationRelationship, Element newChild)
public GeneralizationRelationship createGeneralization(Element parent, Element child)
NOTA: usando este método você não precisa chamar explicitamente algo como
architecture.addRelationship(relationship)
.
parent
- child
- public void moveGeneralizationToPackage(GeneralizationRelationship generalization, Package targetPackage)
GeneralizationRelationship
move a mesma o pacote Package
destino.Este método irá pegar o pai (parent) e os filhos (childreen) da generalização passada como paramêtros e mover para o pacote destino.
generalization
- - Generalização a ser movidatargetPackage
- - Pacote destino