Java Doc for MetafacadeFactory.java in  » UML » AndroMDA-3.2 » org » andromda » core » metafacade » 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.core.metafacade 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.andromda.core.metafacade.MetafacadeFactory

MetafacadeFactory
public class MetafacadeFactory (Code)
The factory in charge of constructing Metafacade instances. In order for a metafacade (i.e. a facade around a meta model element) to be constructed, it must be constructed through this factory.
author:
   Matthias Bohlen
author:
   Chad Brandon
author:
   Peter Friese




Method Summary
public  voidclearCaches()
     Clears out the factory's internal caches (other than namespace properties, which can be cleared by calling org.andromda.core.configuration.Namespaces.clear .
public  MetafacadeBasecreateFacadeImpl(String interfaceName, Object mappingObject, String context)
     Create a facade implementation object for a mappingObject.
public  MetafacadeBasecreateMetafacade(Object mappingObject, String context)
     Returns a metafacade for a mappingObject, depending on its mappingClass and (optionally) its sterotypes and context.
Parameters:
  mappingObject - the object used to map the metafacade (a meta modelobject or a metafacade itself).
Parameters:
  context - the name of the context the meta model element isregistered under.
protected  MetafacadeBasecreateMetafacade(Object mappingObject, MetafacadeMapping mapping)
     Creates a metacade from the passed in mappingObject, and mapping instance.
public  MetafacadeBasecreateMetafacade(Object mappingObject)
     Returns a metafacade for a mappingObject, depending on its mappingClass.
protected  CollectioncreateMetafacades(Collection mappingObjects, String contextName)
     Returns a metafacade for each mappingObject, contained within the mappingObjects collection depending on its mappingClass and (optionally) its sterotypes, and contextName.
Parameters:
  mappingObjects - the meta model element.
Parameters:
  contextName - the name of the context the meta model element isregistered under.
public  CollectioncreateMetafacades(Collection mappingObjects)
     Returns a metafacade for each mappingObject, contained within the mappingObjects collection depending on its mappingClass.
Parameters:
  mappingObjects - the objects used to map the metafacades (can be ameta model element or an actual metafacade itself).
public  CollectiongetAllMetafacades()
    

Gets all metafacades for the entire model for the current namespace set within the factory.

public static  MetafacadeFactorygetInstance()
     Returns the facade factory singleton.
final  LoggergetLogger()
    
public  CollectiongetMetafacadesByStereotype(String stereotype)
    

Gets all metafacades for the entire model having the given stereotype.

NOTE: The model package filter is applied before returning the results (if defined within the factory).


Parameters:
  stereotype - the stereotype by which to perform the search.
public  ModelAccessFacadegetModel()
     Gets the model which provides access to the underlying model and is used to construct metafacades.
public  StringgetNamespace()
     Returns the name of the active namespace.
final  ObjectgetRegisteredProperty(MetafacadeBase metafacade, String name)
     Gets the registered property registered under the namespace with the name
Parameters:
  metafacade - the metafacade to search
Parameters:
  name - the name of the property to check.
public  ListgetValidationMessages()
     Gets the list of all validation messages collection during model processing.
public  voidinitialize()
     Performs any initialization required by the factory (i.e.
final  booleanisPropertyRegistered(MetafacadeBase metafacade, String name)
     Returns true if this property is registered under the given namespace, false otherwise.
Parameters:
  metafacade - the metafacade to search.
Parameters:
  name - the name of the property.
final  voidregisterProperty(String namespace, String metafacadeName, String name, Object value)
     Registers a property with the specified name in the given namespace.
final  voidregisterProperty(String metafacadeName, String name, Object value)
     Registers a property with the specified name in the namespace that is currently set within the factory.
public  voidreset()
     Entirely resets all the internal resources within this factory instance (such as the caches, etc).
public  voidsetModel(ModelAccessFacade model, String metafacadeModelNamespace)
     The model access facade instance (provides access to the meta model).
public  voidsetNamespace(String namespace)
     Sets the active namespace.
public  voidshutdown()
     Performs shutdown procedures for the factory.
public  voidvalidateAllMetafacades()
     Validates all metafacdes for the current namespace and collects the messages in the interal validation messages collection.



Method Detail
clearCaches
public void clearCaches()(Code)
Clears out the factory's internal caches (other than namespace properties, which can be cleared by calling org.andromda.core.configuration.Namespaces.clear .



createFacadeImpl
public MetafacadeBase createFacadeImpl(String interfaceName, Object mappingObject, String context)(Code)
Create a facade implementation object for a mappingObject. The facade implementation object must be found in a way that it implements the interface interfaceName.
Parameters:
  interfaceName - the name of the interface that the implementationobject has to implement
Parameters:
  mappingObject - the mappingObject for which a facade shall becreated
Parameters:
  context - the context in which this metafacade will be created. MetafacadeBase the metafacade



createMetafacade
public MetafacadeBase createMetafacade(Object mappingObject, String context)(Code)
Returns a metafacade for a mappingObject, depending on its mappingClass and (optionally) its sterotypes and context.
Parameters:
  mappingObject - the object used to map the metafacade (a meta modelobject or a metafacade itself).
Parameters:
  context - the name of the context the meta model element isregistered under. the new metafacade



createMetafacade
protected MetafacadeBase createMetafacade(Object mappingObject, MetafacadeMapping mapping)(Code)
Creates a metacade from the passed in mappingObject, and mapping instance.
Parameters:
  mappingObject - the mapping object for which to create themetafacade.
Parameters:
  mapping - the mapping from which to create the metafacade the metafacade, or null if it can't be created.



createMetafacade
public MetafacadeBase createMetafacade(Object mappingObject)(Code)
Returns a metafacade for a mappingObject, depending on its mappingClass.
Parameters:
  mappingObject - the object which is used to map to the metafacade MetafacadeBase the facade object (not yet attached to mappingClass object)



createMetafacades
protected Collection createMetafacades(Collection mappingObjects, String contextName)(Code)
Returns a metafacade for each mappingObject, contained within the mappingObjects collection depending on its mappingClass and (optionally) its sterotypes, and contextName.
Parameters:
  mappingObjects - the meta model element.
Parameters:
  contextName - the name of the context the meta model element isregistered under. the Collection of newly created Metafacades.



createMetafacades
public Collection createMetafacades(Collection mappingObjects)(Code)
Returns a metafacade for each mappingObject, contained within the mappingObjects collection depending on its mappingClass.
Parameters:
  mappingObjects - the objects used to map the metafacades (can be ameta model element or an actual metafacade itself). Collection of metafacades



getAllMetafacades
public Collection getAllMetafacades()(Code)

Gets all metafacades for the entire model for the current namespace set within the factory.

NOTE: The model package filter is applied before returning the results (if defined within the factory).

all metafacades



getInstance
public static MetafacadeFactory getInstance()(Code)
Returns the facade factory singleton. the only instance



getLogger
final Logger getLogger()(Code)
Gets the correct logger based on whether or not an namespace logger should be used the logger



getMetafacadesByStereotype
public Collection getMetafacadesByStereotype(String stereotype)(Code)

Gets all metafacades for the entire model having the given stereotype.

NOTE: The model package filter is applied before returning the results (if defined within the factory).


Parameters:
  stereotype - the stereotype by which to perform the search. the metafacades having the given stereotype.



getModel
public ModelAccessFacade getModel()(Code)
Gets the model which provides access to the underlying model and is used to construct metafacades. the model access facade.



getNamespace
public String getNamespace()(Code)
Returns the name of the active namespace. String the namespace name



getRegisteredProperty
final Object getRegisteredProperty(MetafacadeBase metafacade, String name)(Code)
Gets the registered property registered under the namespace with the name
Parameters:
  metafacade - the metafacade to search
Parameters:
  name - the name of the property to check. the registered property



getValidationMessages
public List getValidationMessages()(Code)
Gets the list of all validation messages collection during model processing. Returns the validationMessages.
See Also:   MetafacadeFactory.validateAllMetafacades()



initialize
public void initialize()(Code)
Performs any initialization required by the factory (i.e. discovering all metafacade mappings, etc).



isPropertyRegistered
final boolean isPropertyRegistered(MetafacadeBase metafacade, String name)(Code)
Returns true if this property is registered under the given namespace, false otherwise.
Parameters:
  metafacade - the metafacade to search.
Parameters:
  name - the name of the property. true if the property is registered, false otherwise.



registerProperty
final void registerProperty(String namespace, String metafacadeName, String name, Object value)(Code)
Registers a property with the specified name in the given namespace.
Parameters:
  namespace - the namespace in which the property is stored.
Parameters:
  metafacadeName - the name of the metafacade under which the property is registered
Parameters:
  name - the name of the property
Parameters:
  value - to give the property



registerProperty
final void registerProperty(String metafacadeName, String name, Object value)(Code)
Registers a property with the specified name in the namespace that is currently set within the factory.
Parameters:
  metafacadeName - the name of the metafacade under which the property is registered
Parameters:
  name - the name of the property
Parameters:
  value - to give the property



reset
public void reset()(Code)
Entirely resets all the internal resources within this factory instance (such as the caches, etc).



setModel
public void setModel(ModelAccessFacade model, String metafacadeModelNamespace)(Code)
The model access facade instance (provides access to the meta model).
Parameters:
  model - the model
Parameters:
  metafacadeModelNamespace - the namespace that contains the metafacade facade implementation.



setNamespace
public void setNamespace(String namespace)(Code)
Sets the active namespace. The AndroMDA core and each cartridge have their own namespace for metafacade registration.
Parameters:
  namespace - the name of the active namespace.



shutdown
public void shutdown()(Code)
Performs shutdown procedures for the factory. This should be called ONLY when model processing has completed.



validateAllMetafacades
public void validateAllMetafacades()(Code)
Validates all metafacdes for the current namespace and collects the messages in the interal validation messages collection.
See Also:   MetafacadeFactory.getValidationMessages()



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.