public class ModelHelper extends ElementHelper
Constructor and Description |
---|
ModelHelper() |
Modifier and Type | Method and Description |
---|---|
java.util.List<org.eclipse.uml2.uml.Abstraction> |
getAllAbstractions(org.eclipse.uml2.uml.Package model) |
java.util.List<org.eclipse.uml2.uml.Association> |
getAllAssociations(org.eclipse.uml2.uml.NamedElement model) |
java.util.List<org.eclipse.uml2.uml.AssociationClass> |
getAllAssociationsClass(org.eclipse.uml2.uml.NamedElement model) |
java.util.List<org.eclipse.uml2.uml.Property> |
getAllAttributesForAClass(org.eclipse.uml2.uml.NamedElement aClass) |
java.util.List<org.eclipse.uml2.uml.Class> |
getAllClasses(org.eclipse.uml2.uml.NamedElement model)
Retorna todas as classes de um modelo e seus pacotes
|
java.util.List<org.eclipse.uml2.uml.Classifier> |
getAllComments(org.eclipse.uml2.uml.NamedElement model) |
java.util.List<Element> |
getAllConnectors(org.eclipse.uml2.uml.NamedElement model)
Retorna todas as classes de um modelo e seus pacotes
|
java.util.List<org.eclipse.uml2.uml.Dependency> |
getAllDependencies(org.eclipse.uml2.uml.Package model) |
java.util.List<org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Generalization>> |
getAllGeneralizations(org.eclipse.uml2.uml.NamedElement model) |
java.util.List<org.eclipse.uml2.uml.Class> |
getAllInterfaces(org.eclipse.uml2.uml.NamedElement model) |
java.util.List<org.eclipse.uml2.uml.Operation> |
getAllMethods(org.eclipse.uml2.uml.NamedElement model) |
java.util.List<org.eclipse.uml2.uml.Package> |
getAllPackages(org.eclipse.uml2.uml.NamedElement model) |
java.util.List<org.eclipse.uml2.uml.Realization> |
getAllRealizations(org.eclipse.uml2.uml.Package model) |
java.util.List<org.eclipse.uml2.uml.Usage> |
getAllUsage(org.eclipse.uml2.uml.Package model) |
java.util.List<org.eclipse.uml2.uml.Comment> |
getAllVariabilities(org.eclipse.uml2.uml.Package model)
Retorna todas as variabilidades de um modelo.
|
org.eclipse.uml2.uml.Classifier |
getClassByName(java.lang.String name,
org.eclipse.uml2.uml.Package model) |
java.util.List<org.eclipse.uml2.uml.Class> |
getClasses(org.eclipse.uml2.uml.NamedElement model)
Recupera Classes de um pacote.
|
org.eclipse.uml2.uml.Package |
getModel(java.lang.String xmiFile)
Retorno o modelo dado um path.
|
java.lang.String |
getName(java.lang.String xmiFile) |
java.lang.String |
getXmiId(org.eclipse.emf.ecore.EObject eObject)
Retorna o XMIID de um elemento
|
org.eclipse.uml2.uml.Package |
loadConcernProfile() |
org.eclipse.uml2.uml.Profile |
loadSmarty() |
getAllElementsByType
public java.util.List<org.eclipse.uml2.uml.Class> getClasses(org.eclipse.uml2.uml.NamedElement model)
model
- public java.util.List<org.eclipse.uml2.uml.Class> getAllClasses(org.eclipse.uml2.uml.NamedElement model)
model
- List
public java.util.List<Element> getAllConnectors(org.eclipse.uml2.uml.NamedElement model)
model
- List
public java.util.List<org.eclipse.uml2.uml.Property> getAllAttributesForAClass(org.eclipse.uml2.uml.NamedElement aClass)
public java.util.List<org.eclipse.uml2.uml.Class> getAllInterfaces(org.eclipse.uml2.uml.NamedElement model)
public java.util.List<org.eclipse.uml2.uml.Usage> getAllUsage(org.eclipse.uml2.uml.Package model)
public java.util.List<org.eclipse.uml2.uml.Association> getAllAssociations(org.eclipse.uml2.uml.NamedElement model)
public java.util.List<org.eclipse.uml2.uml.AssociationClass> getAllAssociationsClass(org.eclipse.uml2.uml.NamedElement model)
public java.util.List<org.eclipse.uml2.uml.Dependency> getAllDependencies(org.eclipse.uml2.uml.Package model)
public java.util.List<org.eclipse.uml2.uml.Abstraction> getAllAbstractions(org.eclipse.uml2.uml.Package model)
public java.util.List<org.eclipse.uml2.uml.Package> getAllPackages(org.eclipse.uml2.uml.NamedElement model)
public java.util.List<org.eclipse.uml2.uml.Classifier> getAllComments(org.eclipse.uml2.uml.NamedElement model)
public java.util.List<org.eclipse.uml2.uml.Realization> getAllRealizations(org.eclipse.uml2.uml.Package model)
public java.util.List<org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Generalization>> getAllGeneralizations(org.eclipse.uml2.uml.NamedElement model)
public java.lang.String getName(java.lang.String xmiFile) throws ModelNotFoundException
ModelNotFoundException
public org.eclipse.uml2.uml.Package getModel(java.lang.String xmiFile) throws ModelNotFoundException, ModelIncompleteException, SMartyProfileNotAppliedToModelExcepetion
xmiFile
- ModelNotFoundException
ModelIncompleteException
SMartyProfileNotAppliedToModelExcepetion
public java.util.List<org.eclipse.uml2.uml.Operation> getAllMethods(org.eclipse.uml2.uml.NamedElement model)
public java.util.List<org.eclipse.uml2.uml.Comment> getAllVariabilities(org.eclipse.uml2.uml.Package model)
Essas variabilidades estão em elementos do tipo Comment
model
- public java.lang.String getXmiId(org.eclipse.emf.ecore.EObject eObject)
eObject
- String
public org.eclipse.uml2.uml.Classifier getClassByName(java.lang.String name, org.eclipse.uml2.uml.Package model)
public org.eclipse.uml2.uml.Package loadConcernProfile()
public org.eclipse.uml2.uml.Profile loadSmarty()