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


java.lang.Object
   org.andromda.core.engine.ModelProcessor

ModelProcessor
public class ModelProcessor (Code)

Handles the processing of models. Facilitates Model Driven Architecture by enabling the generation of source code, configuration files, and other such artifacts from a single or multiple models.


author:
   Chad Brandon




Method Summary
protected  voidfilterAndSortValidationMessages(List messages, Filters constraints)
     Filters out any messages that should not be applied according to the AndroMDA configuration's constraints and sorts the resulting messages first by type (i.e.
public  voidinitialize(Configuration configuration)
     Initializes this model processor instance with the given configuration.
final  ListloadIfNecessary(org.andromda.core.configuration.Repository[] repositories)
     Checks to see if any of the repositories contain models that need to be reloaded, and if so, re-loads them.
final protected  ListloadModelIfNecessary(Model model)
     Loads the model into the repository only when necessary (the model has a timestamp later than the last timestamp of the loaded model).
public static  ModelProcessornewInstance()
     Creates a new instance the ModelProcessor.
protected  voidprintConsoleHeader()
     Prints the console header.
public  ModelValidationMessage[]process(Configuration configuration)
     Re-configures this model processor from the given configuration instance (if different from that of the one passed in during the call to ModelProcessor.initialize(Configuration) ), and runs the model processor.
Parameters:
  configuration - the configuration from which to configure this modelprocessor instance.
public  voidsetCartridgeFilter(String namespaces)
    

Sets the current cartridge filter.

public  voidsetFailOnValidationErrors(boolean failOnValidationErrors)
     Sets whether or not processing should fail when validation errors occur, default is true.
public  voidsetLoggingConfigurationUri(String loggingConfigurationUri)
    

Sets the loggingConfigurationUri for AndroMDA.

public  voidsetModelValidation(boolean modelValidation)
     Sets whether or not model validation should occur.
public  voidsetOutputEncoding(String outputEncoding)
     Sets the encoding (UTF-8, ISO-8859-1, etc) for all output produced during model processing.
public  voidsetXmlValidation(boolean xmlValidation)
     Sets xmlValidation to be true/false.
protected  booleanshouldProcess(String namespace)
     Indicates whether or not the namespace should be processed.
public  voidshutdown()
     Shuts down the model processor (reclaims any resources).



Method Detail
filterAndSortValidationMessages
protected void filterAndSortValidationMessages(List messages, Filters constraints)(Code)
Filters out any messages that should not be applied according to the AndroMDA configuration's constraints and sorts the resulting messages first by type (i.e. the metafacade class) and then by the name of the model element to which the validation message applies.
Parameters:
  messages - the collection of messages to sort.
Parameters:
  constraints - any constraint filters to apply to the validation messages.



initialize
public void initialize(Configuration configuration)(Code)
Initializes this model processor instance with the given configuration. This configuration information is overridden (if changed) when calling ModelProcessor.process(Configuration)
Parameters:
  configuration - the configuration instance by which to initialize thismodel processor instance.



loadIfNecessary
final List loadIfNecessary(org.andromda.core.configuration.Repository[] repositories)(Code)
Checks to see if any of the repositories contain models that need to be reloaded, and if so, re-loads them.
Parameters:
  repositories - the repositories from which to load the model(s).



loadModelIfNecessary
final protected List loadModelIfNecessary(Model model)(Code)
Loads the model into the repository only when necessary (the model has a timestamp later than the last timestamp of the loaded model).
Parameters:
  model - the model to be loaded.



newInstance
public static ModelProcessor newInstance()(Code)
Creates a new instance the ModelProcessor. the shared ModelProcessor instance.



printConsoleHeader
protected void printConsoleHeader()(Code)
Prints the console header.



process
public ModelValidationMessage[] process(Configuration configuration)(Code)
Re-configures this model processor from the given configuration instance (if different from that of the one passed in during the call to ModelProcessor.initialize(Configuration) ), and runs the model processor.
Parameters:
  configuration - the configuration from which to configure this modelprocessor instance. any model validation messages collected during model processing (ifmodel validation is enabled).



setCartridgeFilter
public void setCartridgeFilter(String namespaces)(Code)

Sets the current cartridge filter. This is a comma seperated list of namespaces (matching cartridges names) that should be processed.

If this filter is defined, then any cartridge names found in this list will be processed , while any other discovered cartridges will not be processed .


Parameters:
  namespaces - a comma seperated list of the cartridge namespaces to be processed.



setFailOnValidationErrors
public void setFailOnValidationErrors(boolean failOnValidationErrors)(Code)
Sets whether or not processing should fail when validation errors occur, default is true.
Parameters:
  failOnValidationErrors - whether or not processing should fail if any validation errors are present.



setLoggingConfigurationUri
public void setLoggingConfigurationUri(String loggingConfigurationUri)(Code)

Sets the loggingConfigurationUri for AndroMDA. This is the URI to an external logging configuration file. This is useful when you want to override the default logging configuration of AndroMDA.

You can retrieve the default log4j.xml contained within the org.andromda.core.common package, customize it, and then specify the location of this logging file with this operation.


Parameters:
  loggingConfigurationUri - the URI to the external logging configuation file.



setModelValidation
public void setModelValidation(boolean modelValidation)(Code)
Sets whether or not model validation should occur. This is useful for performance reasons (i.e. if you have a large model it can significatly descrease the amount of time it takes for AndroMDA to process a model). By default this is set to true.
Parameters:
  modelValidation - true/false on whether model validation should be performed or not.



setOutputEncoding
public void setOutputEncoding(String outputEncoding)(Code)
Sets the encoding (UTF-8, ISO-8859-1, etc) for all output produced during model processing.
Parameters:
  outputEncoding - the encoding.



setXmlValidation
public void setXmlValidation(boolean xmlValidation)(Code)
Sets xmlValidation to be true/false. This defines whether XML resources loaded by AndroMDA (such as plugin descriptors) should be validated. Sometimes underlying parsers don't support XML Schema validation and in that case, we want to be able to turn it off.
Parameters:
  xmlValidation - true/false on whether we should validate XML resources used by AndroMDA



shouldProcess
protected boolean shouldProcess(String namespace)(Code)
Indicates whether or not the namespace should be processed. This is determined in conjunction with ModelProcessor.setCartridgeFilter(String) . If the cartridgeFilter is not defined and the namespace is present within the configuration, then this method will ALWAYS return true.
Parameters:
  namespace - the name of the namespace to check whether or not it should be processed. true/false on whether or not it should be processed.



shutdown
public void shutdown()(Code)
Shuts down the model processor (reclaims any resources).



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.