Java Doc for MetaBossModelToolTask.java in  » UML » MetaBoss » com » metaboss » sdlctools » applications » anttasks » 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 » MetaBoss » com.metaboss.sdlctools.applications.anttasks 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.metaboss.sdlctools.applications.anttasks.MetaBossTask
   com.metaboss.sdlctools.applications.anttasks.MetaBossModelToolTask

All known Subclasses:   com.metaboss.sdlctools.applications.anttasks.convertors.MetaBossToUML,  com.metaboss.sdlctools.applications.anttasks.convertors.MetaBossToMetaBoss,  com.metaboss.sdlctools.applications.anttasks.builder.MetaBossBuilderTask,  com.metaboss.sdlctools.applications.anttasks.convertors.UMLToMetaBoss,
MetaBossModelToolTask
abstract public class MetaBossModelToolTask extends MetaBossTask (Code)
The abstract MetaBoss Model Tool task. Automatically manages a single model loaded from the directory

In addition to attributes supported by base class task, this task supports following attributes:
Attribute Name Attribute Description Required
modeldir The mandatory path to the directory where model is stored.(It has to point to the directory where top level Model.xml file is) Yes if task requires to load the model (most of the MetaBoss tasks are)
ref The optional reference of the root element of the model. This is the specification of the element this task will be working on. Yes if task requires element to be specified

This task also supports following subelements:
SubElement Name SubElement Description Occurrs
param Zero or more of these elements can be specified. Each one contains name-value pair to be passed as a parameter to the tool invoked in this task. Zero or more times
env Zero or more of these elements can be specified. Each one contains name-value pair to be set into system environment before tool is invoked in this task. Zero or more times




Constructor Summary
public  MetaBossModelToolTask(boolean pUsesExistingModel)
     The only constructor available for the subclasses.
Parameters:
  pUsesExistingModel - if it is set to true - the model stored in the directorypointed by the 'modeldir' attribute will be automatically opened - this is typical for thetask using the existing models.

Method Summary
public  voidaddConfiguredEnv(NameValuePairType pEnvironment)
    
public  voidaddConfiguredParam(NameValuePairType pParameter)
    
public  voidexecute()
    
public  ModelElementfindModelElement(String pModelElementRef, Class[] pExpectedClasses)
     Finds model element with given reference or return null if none exists. Automatically verifies if returned element is one of the desired type.
Parameters:
  pModelElementRef - - model element ref
Parameters:
  pExpectedClasses - - array of expected java classes.
public  ModelElement[]findModelElementsByXPath(ModelElement pContextElement, String pModelElementXPath, Class[] pExpectedClasses)
     Finds all model elements matching given xpath. Automatically verifies if returned element is one of the desired type.
Parameters:
  pModelElementXPath - - the xpath to use
Parameters:
  pExpectedClasses - - array of expected java classes.
protected  PropertiesgetInvocationEnvironment()
    
protected  PropertiesgetInvocationParameters()
    
public  FilegetModelDir()
    
public  ModelElementgetModelElement(String pModelElementRef, Class[] pExpectedClasses)
     Finds model element with given reference or throws exception if none exists. Automatically verifies if returned element is one of the desired type.
Parameters:
  pModelElementRef - - model element ref
Parameters:
  pExpectedClasses - - array of expected java classes.
public  StringgetModelName()
     The getter for the name of the model.
public  MetaBossModelPackagegetModelRootPackage()
     The getter for the root package of the model.
public  ModelElementgetRootModelElement()
    
abstract public  voidrunTool()
    
public  voidsetModeldir(File pModelDir)
    
public  voidsetRef(String pRef)
     The setter for the "ref" attribute.


Constructor Detail
MetaBossModelToolTask
public MetaBossModelToolTask(boolean pUsesExistingModel)(Code)
The only constructor available for the subclasses.
Parameters:
  pUsesExistingModel - if it is set to true - the model stored in the directorypointed by the 'modeldir' attribute will be automatically opened - this is typical for thetask using the existing models. If this is set to false than this task will ensure that the modeldoes not exist at the specified directory and it is not loaded - this is typical for taskscreating the new models.




Method Detail
addConfiguredEnv
public void addConfiguredEnv(NameValuePairType pEnvironment) throws BuildException(Code)
Adds environment setting to be set in the system environment while tool is running



addConfiguredParam
public void addConfiguredParam(NameValuePairType pParameter) throws BuildException(Code)
Adds input parameter to be passed to the tool when it is invoked



execute
public void execute() throws BuildException(Code)



findModelElement
public ModelElement findModelElement(String pModelElementRef, Class[] pExpectedClasses) throws BuildException(Code)
Finds model element with given reference or return null if none exists. Automatically verifies if returned element is one of the desired type.
Parameters:
  pModelElementRef - - model element ref
Parameters:
  pExpectedClasses - - array of expected java classes. This parameter is ignored ifit is null or zero-length. Otherwise it is used to check the type of found class. found model element or null if element with specified ref was not found.If expected classes paramenter was given - the returned element is vetted against list of allowed classes.
throws:
  BuildException - in case of troubles including the case when found model element is not of the expected type



findModelElementsByXPath
public ModelElement[] findModelElementsByXPath(ModelElement pContextElement, String pModelElementXPath, Class[] pExpectedClasses) throws BuildException(Code)
Finds all model elements matching given xpath. Automatically verifies if returned element is one of the desired type.
Parameters:
  pModelElementXPath - - the xpath to use
Parameters:
  pExpectedClasses - - array of expected java classes. This parameter is ignored ifit is null or zero-length. Otherwise it is used to check the type of found class. found model elements. If expected classes paramenter was given -the returned element is vetted against list of allowed classes. May return zer-length array
throws:
  BuildException - in case of trouble



getInvocationEnvironment
protected Properties getInvocationEnvironment()(Code)
Returns the set of zero or more environment settings to be set in the system environment while tool is running



getInvocationParameters
protected Properties getInvocationParameters()(Code)
Returns the set of zero or more parameters to be passed to the tool when it is invoked



getModelDir
public File getModelDir() throws BuildException(Code)
The getter for the "modeldir" attribute



getModelElement
public ModelElement getModelElement(String pModelElementRef, Class[] pExpectedClasses) throws BuildException(Code)
Finds model element with given reference or throws exception if none exists. Automatically verifies if returned element is one of the desired type.
Parameters:
  pModelElementRef - - model element ref
Parameters:
  pExpectedClasses - - array of expected java classes. This parameter is ignored ifit is null or zero-length. Otherwise it is used to check the type of found class. found model element. If expected classes paramenter was given -the returned element is vetted against list of allowed classes. Never returns null
throws:
  BuildException - in case of troubles including the case when model element was not found or found model element is not of the expected type



getModelName
public String getModelName() throws BuildException(Code)
The getter for the name of the model. Only works after "modeldir" attribute is set



getModelRootPackage
public MetaBossModelPackage getModelRootPackage() throws BuildException(Code)
The getter for the root package of the model. Only works after "modeldir" attribute is set



getRootModelElement
public ModelElement getRootModelElement() throws BuildException(Code)
The getter for the optional root element for the whole task



runTool
abstract public void runTool() throws Exception(Code)



setModeldir
public void setModeldir(File pModelDir) throws BuildException(Code)
The setter for the "modeldir" attribute



setRef
public void setRef(String pRef) throws BuildException(Code)
The setter for the "ref" attribute. At the moment only systemref is allowed



Methods inherited from com.metaboss.sdlctools.applications.anttasks.MetaBossTask
public TaskLogger getLogger()(Code)(Java Doc)
protected File getMetaBossHome() throws BuildException(Code)(Java Doc)
public Path getPath(String pPathName) throws BuildException(Code)(Java Doc)
public FileSet getPathAsFileSet(String pPathName) throws BuildException(Code)(Java Doc)
protected void handleException(Throwable pThrowable) throws BuildException(Code)(Java Doc)
public void init()(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.