Java Doc for MetafacadeBase.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.MetafacadeBase

All known Subclasses:   org.andromda.core.metafacade.Metafacade5Impl,  org.andromda.core.metafacade.Metafacade11Impl,  org.andromda.core.metafacade.Metafacade1Impl,  org.andromda.core.metafacade.Metafacade7Impl,  org.andromda.core.metafacade.Metafacade8Impl,  org.andromda.core.metafacade.Metafacade2Impl,
MetafacadeBase
public class MetafacadeBase (Code)
Base class for all metafacades.
author:
   Matthias Bohlen
author:
   Chad Brandon
author:
   Wouter Zoons


Field Summary
protected  booleancontextRoot
     The flag indicating whether or not this metafacade is a context root.
protected  Loggerlogger
     The metafacade logger instance.

Constructor Summary
public  MetafacadeBase(Object metaObject, String context)
     Constructs a new instance of this class with the given metaObject and context.

Method Summary
final protected  MetafacadeBaseTHIS()
     The metafacade instance of this.
public  booleanequals(Object object)
    
protected  ObjectgetConfiguredProperty(String property)
     Gets a configured property from the container.
final  StringgetContext()
     Gets the context for this metafacade.
final public  ObjectgetMetaObject()
     Gets the current meta model object for this metafacade.
public  StringgetMetafacadeContext()
     Gets the context for this metafacade.
final  StringgetName()
     Gets the name for this metafacade.
final  StringgetNamespace()
    
public  StringgetValidationName()
     Retrieves the name of this metafacade used within the validation messages.

By default null is returned, however this method is overridden by subclasses model elements that do have a name.

public  ObjectgetValidationOwner()
     Retrieves the owner of this metafacade (for example: an operation owns its parameters, a class owns its attributes).

By default null is returned, however this method is overridden by subclasses which have a parent or owner.

public  inthashCode()
    
public  voidinitialize()
     A lifecycle method, providing the ability for sub classes to take any action after the factory has completely initialized a metafacade, but before it has been validated for completeness.
protected  booleanisConfiguredProperty(String property)
     Returns true or false depending on whether the property is registered or not.
Parameters:
  property - the name of the property to check.
final  booleanisInitialized()
     Indicates if this metafacade has been initialized.
final public  booleanisMetafacadePropertyCachingEnabled()
     A check to verify whether or not to make use of metafacade property caching.
public  voidresetMetafacadeContext(String context)
     Resets the metafacade context after the metafacade was retrieved from the metafacade cache.
final  voidsetContextRoot(boolean contextRoot)
     Sets whether or not this metafacade represents a contextRoot.
final  voidsetInitialized()
     Sets the flag indicating this metafacade has been initialized.
final  voidsetLogger(Logger logger)
     Package-local setter, called by facade factory.
public  voidsetMetafacadeContext(String context)
     Sets the context for this metafacade.
final  voidsetNamespace(String namespace)
     Sets the namespace for this metafacade.
protected  voidsetProperty(String name, Object value)
     Attempts to set the property with name having the specified value on this metafacade.
protected  MetafacadeBaseshieldedElement(Object metaObject)
     Returns one facade for a particular metaObject.
protected  CollectionshieldedElements(Collection metaobjects)
     Returns a collection of facades for a collection of metaobjects.
final public  voidvalidate(Collection validationMessages)
     Validates that this facade's meta object is in a valid state.

Validate is called during metafacade creation by the factory.

public  voidvalidateInvariants(Collection messages)
    

The logic of modeled OCL invariants from derived metafacades will be generated into this method and validation messages created and collected into the messages collection.


Field Detail
contextRoot
protected boolean contextRoot(Code)
The flag indicating whether or not this metafacade is a context root.



logger
protected Logger logger(Code)
The metafacade logger instance.




Constructor Detail
MetafacadeBase
public MetafacadeBase(Object metaObject, String context)(Code)
Constructs a new instance of this class with the given metaObject and context. The metaObject is the meta model element which this metafacade insulates. The context is the name of the context for this metafacade instance.
Parameters:
  metaObject - the meta object.
Parameters:
  context - the context of this meta object.




Method Detail
THIS
final protected MetafacadeBase THIS()(Code)
The metafacade instance of this. This should be used when you'd need to check if this was an instance of a given metafacade. For example: THIS() instanceof SomeMetafacade. This MUST be used instead of this in order to access the correct metafacade instance in the hierarchy (since we use delegate inheritance).



equals
public boolean equals(Object object)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



getConfiguredProperty
protected Object getConfiguredProperty(String property)(Code)
Gets a configured property from the container. Note that the configured property must be registered first.
Parameters:
  property - the property name Object the configured property instance (mappings, etc)



getContext
final String getContext()(Code)
Gets the context for this metafacade. the context name.



getMetaObject
final public Object getMetaObject()(Code)
Gets the current meta model object for this metafacade. This is used from MetafacadeFactory when attempting to construct a metafacade from a metafacade. This allows us to get the meta object for this metafacade so that the meta object can be used instead. the underlying model's meta object instance.



getMetafacadeContext
public String getMetafacadeContext()(Code)
Gets the context for this metafacade. This is either the contextRoot (if one exists), or the regular context. the metafacade's context.
See Also:   MetafacadeBase.setContextRoot(boolean)



getName
final String getName()(Code)
Gets the name for this metafacade. the metafacade's name.



getNamespace
final String getNamespace()(Code)
Gets the current namespace for this metafacade String



getValidationName
public String getValidationName()(Code)
Retrieves the name of this metafacade used within the validation messages.

By default null is returned, however this method is overridden by subclasses model elements that do have a name.

the owner of this metafacade.



getValidationOwner
public Object getValidationOwner()(Code)
Retrieves the owner of this metafacade (for example: an operation owns its parameters, a class owns its attributes).

By default null is returned, however this method is overridden by subclasses which have a parent or owner. This is used to give the model validation messages more context as to where the validation error occurred.

the owner of this metafacade.



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



initialize
public void initialize()(Code)
A lifecycle method, providing the ability for sub classes to take any action after the factory has completely initialized a metafacade, but before it has been validated for completeness.



isConfiguredProperty
protected boolean isConfiguredProperty(String property)(Code)
Returns true or false depending on whether the property is registered or not.
Parameters:
  property - the name of the property to check. true/false on whether or not its regisgterd.



isInitialized
final boolean isInitialized()(Code)
Indicates if this metafacade has been initialized. true/false



isMetafacadePropertyCachingEnabled
final public boolean isMetafacadePropertyCachingEnabled()(Code)
A check to verify whether or not to make use of metafacade property caching. This method check if the MetafacadeProperties.ENABLE_METAFACADE_PROPERTY_CACHING namespace property has been set, if this is not the case then the caching will be enabled by default.



resetMetafacadeContext
public void resetMetafacadeContext(String context)(Code)
Resets the metafacade context after the metafacade was retrieved from the metafacade cache. DO NOT CALL THIS METHOD BY HAND, it is reserved for use in the MetafacadeFactory.
See Also:   org.andromda.core.metafacade.MetafacadeFactory
See Also:   
Parameters:
  context - the context defined by MetafacadeFactory



setContextRoot
final void setContextRoot(boolean contextRoot)(Code)
Sets whether or not this metafacade represents a contextRoot. If it does represent a context root, then MetafacadeBase.getMetafacadeContext() returns the metafacade interface for this metafacade, otherwise the regular context is returned.
Parameters:
  contextRoot -



setInitialized
final void setInitialized()(Code)
Sets the flag indicating this metafacade has been initialized.



setLogger
final void setLogger(Logger logger)(Code)
Package-local setter, called by facade factory. Sets the logger to use inside the facade's code.
Parameters:
  logger - the logger to set



setMetafacadeContext
public void setMetafacadeContext(String context)(Code)
Sets the context for this metafacade. This is used to pass the context along from a metafacade specializing this metafacade (since we use delegate inheritance between shared and non-shared metafacades), as well as to pass the context to a metafacade being created within another.
Parameters:
  context - the metafacade interface name representing the context.
See Also:   MetafacadeMapping.isContextRoot
See Also:   MetafacadeFactory.createMetafacade(ObjectStringClass)



setNamespace
final void setNamespace(String namespace)(Code)
Sets the namespace for this metafacade.
Parameters:
  namespace -



setProperty
protected void setProperty(String name, Object value)(Code)
Attempts to set the property with name having the specified value on this metafacade.



shieldedElement
protected MetafacadeBase shieldedElement(Object metaObject)(Code)
Returns one facade for a particular metaObject. Contacts the MetafacadeFactory to manufacture the proper metafacade. In certain cases metaObject can also be a metafacade instance; in that case the actual meta model element is retrieved from the metafacade and a metafacade is constructed from that.
Parameters:
  metaObject - the underlying meta model element. A metafacade is created for each. MetafacadeBase the facade
See Also:   MetafacadeFactory



shieldedElements
protected Collection shieldedElements(Collection metaobjects)(Code)
Returns a collection of facades for a collection of metaobjects. Contacts the MetafacadeFactory to manufacture the proper facades.
Parameters:
  metaobjects - the objects to decorate Collection of MetafacadeBase-derived objects
See Also:   MetafacadeFactory



validate
final public void validate(Collection validationMessages)(Code)
Validates that this facade's meta object is in a valid state.

Validate is called during metafacade creation by the factory. In the lifecycle of a metafacade it is validated only once, this is enforced by the caching within the metafacade factory.
Parameters:
  validationMessages - any messages generated during validation.
See Also:   MetafacadeFactory.createMetafacade(ObjectStringClass)




validateInvariants
public void validateInvariants(Collection messages)(Code)

The logic of modeled OCL invariants from derived metafacades will be generated into this method and validation messages created and collected into the messages collection. This method is called by MetafacadeBase.validate(Collection)

By default this method is empty.




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.