Java Doc for UML14MetafacadeUtils.java in  » UML » AndroMDA-3.2 » org » andromda » metafacades » uml14 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » UML » AndroMDA 3.2 » org.andromda.metafacades.uml14 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.andromda.metafacades.uml14.UML14MetafacadeUtils

UML14MetafacadeUtils
public class UML14MetafacadeUtils (Code)
Utilities for dealing with UML 1.4 metafacades
author:
   Chad Brandon




Method Summary
static  booleanattributeExists(Object classifier, String name)
     Indicates whether or not the attribute exists on the given classifier.
static  AttributecreateAttribute(String name, String fullyQualifiedTypeName, String visibility, String separator)
     Creates an attribute having the give name and the type having the given fullyQualifiedTypeName, with the specified visibility, if no type can be found with the given name, no type is set.
Parameters:
  name - the new name
Parameters:
  fullyQualifiedTypeName - the name of the fully qualified type
Parameters:
  visibility - the visibility name
Parameters:
  separator - the separator used for qualifying the name.
static  ObjectfindByFullyQualifiedName(String fullyQualifiedName, String separator, boolean modelName)
     Finds a given model element in the model having the specified fullyQualifiedName.
static  ObjectfindByName(String name)
     Finds and returns the first model element having the given name in the modelPackage, returns null if not found.
Parameters:
  name - the name to find.
static  UmlClassfindClassWithTaggedValueOrHyperlink(String tag, String value)
     Returns the first class this method can find with the given tagged value or hyperlink.
static  CollectionfindFinalStatesWithNameOrHyperlink(UseCase useCase)
    
static  ActivityGraphfindFirstActivityGraphWithName(String name)
     Returns the first activity graph it can find with the given name.
static  ActivityGraphfindFirstActivityGraphWithNameAndStereotype(String name, String stereotypeName)
     Returns the first activity graph it can find with the given name and stereotype, if the stereotype is not specified (it is null) it will be ignored and the returned activity graph may have any arbitrary stereotype.
static  UseCasefindFirstUseCaseWithName(String name)
     Returns the first use-case it can find with the given name.
static  UseCasefindFirstUseCaseWithNameAndStereotype(String name, String stereotypeName)
     Returns the first use-case it can find with the given name and stereotype, if the stereotype is not specified (it is null) it will be ignored and the returned use-case may have any arbitrary stereotype.
static  StereotypefindOrCreateStereotype(String name)
     Finds or creates a stereotype with the given name.
static  UseCasefindUseCaseWithTaggedValueOrHyperlink(String tag, String value)
     Returns the first use-case this method can find with the given tagged value or hyperlink.
static  CorePackagegetCorePackage()
     Basically just checks to make sure the model is of type org.omg.uml.UmlPackage and retrieves the CorePackage from it.
static  ActivityGraphgetMetaClass(ActivityGraphFacade facade)
     Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class.
static  UseCasegetMetaClass(UseCaseFacade facade)
     Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class.
static  ParametergetMetaClass(ParameterFacade facade)
     Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class.
static  EventgetMetaClass(EventFacade facade)
     Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class.
static  ModelElementgetMetaClass(ModelElementFacade facade)
     Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class.
static  org.omg.uml.UmlPackagegetModel()
     Returns the entire model.
static  StringgetPackageName(ModelElement metaObject, String separator, boolean modelName)
     Constructs the package name for the given metaObject, seperating the package name by the given separator.
Parameters:
  metaObject - the Model Element
Parameters:
  separator - the PSM namespace separator
Parameters:
  modelName - true/false on whether or not to get the model package name insteadof the PSM package name.
static  UmlPackagegetRootPackage()
     Gets the root package in the model.
static  StringgetSerialVersionUID(ClassifierFacade classifier)
     Retrieves the serial version UID by reading the tagged value UMLProfile.TAGGEDVALUE_SERIALVERSION_UID of the classifier.
Parameters:
  classifier - the classifier to be inspected.
static  VisibilityKindgetVisibilityKind(String visibility)
     Gets the correct meta model visibility kind for the given visibility string.
Parameters:
  visibility - the visibility to retrieve.
static  booleanisHyperlinkPresent(ModelElement element, Object value)
     Returns true if the given model element has a hyperlink with the given value, returns false otherwise.
static  booleanisStereotypePresent(ModelElement element, String stereotypeName)
    
static  booleanisTagPresent(ModelElement element, String tag, Object value)
     Returns true if the given model element has a tag with the given name and value, returns false otherwise.
public static  ListremoveDuplicatesAndCopyTaggedValues(Collection elements)
     This method removes all duplicates within the elements collection while at the same time copying tagged values from duplicates to the one remaining element with the given name.
Parameters:
  elements - the elements to remove duplicates and copy tagged values to.



Method Detail
attributeExists
static boolean attributeExists(Object classifier, String name)(Code)
Indicates whether or not the attribute exists on the given classifier.
Parameters:
  classifier - the classifier to check
Parameters:
  name - the name of the attribute true/false



createAttribute
static Attribute createAttribute(String name, String fullyQualifiedTypeName, String visibility, String separator)(Code)
Creates an attribute having the give name and the type having the given fullyQualifiedTypeName, with the specified visibility, if no type can be found with the given name, no type is set.
Parameters:
  name - the new name
Parameters:
  fullyQualifiedTypeName - the name of the fully qualified type
Parameters:
  visibility - the visibility name
Parameters:
  separator - the separator used for qualifying the name. the new Attribute.



findByFullyQualifiedName
static Object findByFullyQualifiedName(String fullyQualifiedName, String separator, boolean modelName)(Code)
Finds a given model element in the model having the specified fullyQualifiedName. If the model element can NOT be found, null will be returned instead.
Parameters:
  fullyQualifiedName - the fully qualified name of the element tosearch for.
Parameters:
  separator - the PSM separator used for qualifying the name (example".").
Parameters:
  modelName - a flag indicating whether or not a search shall be performed usingthe fully qualified model name or fully qualified PSM name. the found model element



findByName
static Object findByName(String name)(Code)
Finds and returns the first model element having the given name in the modelPackage, returns null if not found.
Parameters:
  name - the name to find. the found model element.



findClassWithTaggedValueOrHyperlink
static UmlClass findClassWithTaggedValueOrHyperlink(String tag, String value)(Code)
Returns the first class this method can find with the given tagged value or hyperlink. Both arguments are used to look for the tagged value but only value is used to search for the hyperlink.



findFinalStatesWithNameOrHyperlink
static Collection findFinalStatesWithNameOrHyperlink(UseCase useCase)(Code)



findFirstActivityGraphWithName
static ActivityGraph findFirstActivityGraphWithName(String name)(Code)
Returns the first activity graph it can find with the given name.



findFirstActivityGraphWithNameAndStereotype
static ActivityGraph findFirstActivityGraphWithNameAndStereotype(String name, String stereotypeName)(Code)
Returns the first activity graph it can find with the given name and stereotype, if the stereotype is not specified (it is null) it will be ignored and the returned activity graph may have any arbitrary stereotype.



findFirstUseCaseWithName
static UseCase findFirstUseCaseWithName(String name)(Code)
Returns the first use-case it can find with the given name.



findFirstUseCaseWithNameAndStereotype
static UseCase findFirstUseCaseWithNameAndStereotype(String name, String stereotypeName)(Code)
Returns the first use-case it can find with the given name and stereotype, if the stereotype is not specified (it is null) it will be ignored and the returned use-case may have any arbitrary stereotype.



findOrCreateStereotype
static Stereotype findOrCreateStereotype(String name)(Code)
Finds or creates a stereotype with the given name. If the stereotype isn't found, it will be created.
Parameters:
  name - the name of the stereotype. the new Stereotype.



findUseCaseWithTaggedValueOrHyperlink
static UseCase findUseCaseWithTaggedValueOrHyperlink(String tag, String value)(Code)
Returns the first use-case this method can find with the given tagged value or hyperlink. Both arguments are used to look for the tagged value but only value is used to search for the hyperlink.



getCorePackage
static CorePackage getCorePackage()(Code)
Basically just checks to make sure the model is of type org.omg.uml.UmlPackage and retrieves the CorePackage from it. the model as a org.omg.uml.UmlPackage



getMetaClass
static ActivityGraph getMetaClass(ActivityGraphFacade facade)(Code)
Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class. the meta model element



getMetaClass
static UseCase getMetaClass(UseCaseFacade facade)(Code)
Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class. the meta model element



getMetaClass
static Parameter getMetaClass(ParameterFacade facade)(Code)
Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class. the meta model element



getMetaClass
static Event getMetaClass(EventFacade facade)(Code)
Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class. the meta model element



getMetaClass
static ModelElement getMetaClass(ModelElementFacade facade)(Code)
Finds the given metafacade class for the passed in facade.
Parameters:
  facade - the model element facade for which to find the meta class. the meta model element



getModel
static org.omg.uml.UmlPackage getModel()(Code)
Returns the entire model. org.omg.uml.UmlPackage model instance.



getPackageName
static String getPackageName(ModelElement metaObject, String separator, boolean modelName)(Code)
Constructs the package name for the given metaObject, seperating the package name by the given separator.
Parameters:
  metaObject - the Model Element
Parameters:
  separator - the PSM namespace separator
Parameters:
  modelName - true/false on whether or not to get the model package name insteadof the PSM package name. the package name.



getRootPackage
static UmlPackage getRootPackage()(Code)
Gets the root package in the model. the root package as a UmlPackage.



getSerialVersionUID
static String getSerialVersionUID(ClassifierFacade classifier)(Code)
Retrieves the serial version UID by reading the tagged value UMLProfile.TAGGEDVALUE_SERIALVERSION_UID of the classifier.
Parameters:
  classifier - the classifier to be inspected. the serial version UID of the classifier. Returnsnull if the tagged value cannot be found.



getVisibilityKind
static VisibilityKind getVisibilityKind(String visibility)(Code)
Gets the correct meta model visibility kind for the given visibility string.
Parameters:
  visibility - the visibility to retrieve. the VisibilityKind



isHyperlinkPresent
static boolean isHyperlinkPresent(ModelElement element, Object value)(Code)
Returns true if the given model element has a hyperlink with the given value, returns false otherwise.



isStereotypePresent
static boolean isStereotypePresent(ModelElement element, String stereotypeName)(Code)



isTagPresent
static boolean isTagPresent(ModelElement element, String tag, Object value)(Code)
Returns true if the given model element has a tag with the given name and value, returns false otherwise.



removeDuplicatesAndCopyTaggedValues
public static List removeDuplicatesAndCopyTaggedValues(Collection elements)(Code)
This method removes all duplicates within the elements collection while at the same time copying tagged values from duplicates to the one remaining element with the given name.
Parameters:
  elements - the elements to remove duplicates and copy tagged values to. the elements with duplicates removed.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.