public class ArchitectureFindElementControl
extends java.lang.Object
Constructor and Description |
---|
ArchitectureFindElementControl() |
Modifier and Type | Method and Description |
---|---|
Element |
findAttributeById(Architecture architecture,
java.lang.String xmiId)
find an attribute in architecture package and subpackage of an package (method findAttributeInSubpackageById)
|
Class |
findClassById(Architecture architecture,
java.lang.String idClass)
find an class using its id
|
java.util.List<Class> |
findClassByName(Architecture architecture,
java.lang.String className) |
Concern |
findConcernByName(Architecture architecture,
java.lang.String name)
find stereotype using its name
|
Element |
findElement(Architecture architecture,
java.lang.String name,
java.lang.String type)
find element using its name and type
|
Element |
findElementById(Architecture architecture,
java.lang.String xmiId)
find an element in architecture package and subpackage of an package (method findElementInSubpackageById)
|
Element |
findElementByName(Architecture architecture,
java.lang.String elementName)
find a element by name in architecture - call searchRecursivelyInPackage to search in subpackages
|
Element |
findElementByNameInPackageAndSubPackage(Architecture architecture,
java.lang.String elementName)
search an element by name in packages and call findElementByNameInSubPackage to search in subpackages
|
Interface |
findInterfaceById(Architecture architecture,
java.lang.String idInterface)
find an interface using its id
|
Interface |
findInterfaceByName(Architecture architecture,
java.lang.String interfaceName)
find a interface using its name
|
Element |
findMethodById(Architecture architecture,
java.lang.String xmiId)
find an method in architecture package and subpackage of an package ( call method findMethodInSubpackageById)
|
Package |
findPackageByID(Architecture architecture,
java.lang.String id)
find a package using its id (call findSubPackageByID to search in subpackages)
|
Package |
findPackageByName(Architecture architecture,
java.lang.String packageName)
find package using its name - not recursive
|
Package |
findPackageOfClass(Architecture architecture,
Class targetClass)
find the parent package of an class
|
Package |
findPackageOfElement(Architecture architecture,
java.lang.String id)
find the parent package of an element
|
TypeSmarty |
findReturnTypeSMartyByName(Architecture architecture,
java.lang.String name)
search a return type using its name from listTypesSMarty
return void type if not has name
if not found, return Object type
|
TypeSmarty |
findTypeSMartyByID(Architecture architecture,
java.lang.String id)
finf type smarty using its id
|
TypeSmarty |
findTypeSMartyByName(Architecture architecture,
java.lang.String name)
search a type using its name from listTypesSMarty
if not found, return Object type
|
static ArchitectureFindElementControl |
getInstance() |
public static ArchitectureFindElementControl getInstance()
public Concern findConcernByName(Architecture architecture, java.lang.String name)
architecture
- name
- public TypeSmarty findTypeSMartyByID(Architecture architecture, java.lang.String id)
architecture
- id
- public TypeSmarty findTypeSMartyByName(Architecture architecture, java.lang.String name)
architecture
- name
- public TypeSmarty findReturnTypeSMartyByName(Architecture architecture, java.lang.String name)
architecture
- name
- public Element findElementByNameInPackageAndSubPackage(Architecture architecture, java.lang.String elementName)
architecture
- elementName
- public Element findElement(Architecture architecture, java.lang.String name, java.lang.String type)
architecture
- - target architecturename
- - name of elementtype
- - type of elementpublic java.util.List<Class> findClassByName(Architecture architecture, java.lang.String className)
public Element findElementByName(Architecture architecture, java.lang.String elementName)
architecture
- elementName
- public Interface findInterfaceByName(Architecture architecture, java.lang.String interfaceName)
architecture
- - target architectureinterfaceName
- - name of interfacepublic Package findPackageByName(Architecture architecture, java.lang.String packageName)
architecture
- - target architecturepackageName
- - name of package that searchpublic Package findPackageByID(Architecture architecture, java.lang.String id)
architecture
- - target architectureid
- - id of package that searchpublic Class findClassById(Architecture architecture, java.lang.String idClass)
architecture
- - target architectureidClass
- - id of element used to find its parent packagepublic Interface findInterfaceById(Architecture architecture, java.lang.String idInterface)
architecture
- - target architectureidInterface
- - id of element used to find its parent packagepublic Package findPackageOfClass(Architecture architecture, Class targetClass)
architecture
- - target architecturetargetClass
- - class of element used to find its parent packagepublic Package findPackageOfElement(Architecture architecture, java.lang.String id)
architecture
- - target architectureid
- - id of element used to find its parent packagepublic Element findElementById(Architecture architecture, java.lang.String xmiId)
architecture
- - parent package that has subpackagesxmiId
- - id of element to findpublic Element findMethodById(Architecture architecture, java.lang.String xmiId)
architecture
- - parent package that has subpackagesxmiId
- - id of element to findpublic Element findAttributeById(Architecture architecture, java.lang.String xmiId)
architecture
- - parent package that has subpackagesxmiId
- - id of element to find