org.eclipse.uml2.ant.app
Class DefineProfileApplication

java.lang.Object
  extended by org.eclipse.uml2.ant.app.DefineProfileApplication
All Implemented Interfaces:
org.eclipse.equinox.app.IApplication

public class DefineProfileApplication
extends java.lang.Object
implements org.eclipse.equinox.app.IApplication

An Equinox application that accepts file paths for local UML profiles to define, and options for the Profile-to-EPackage conversion, and converts each profile using the given options and saves them in situ.

Invoke the application without any arguments, or just with -help, for a usage message.


Field Summary
protected static java.lang.Integer EXIT_FAILURE
           
protected  java.util.Map<java.lang.String,java.lang.String> profileDefinitionOptions
           
protected  java.util.List<org.eclipse.emf.common.util.URI> profileURIs
           
protected  IDiagnosticReporter reporter
           
 
Fields inherited from interface org.eclipse.equinox.app.IApplication
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
DefineProfileApplication()
           
DefineProfileApplication(IDiagnosticReporter reporter)
           
 
Method Summary
protected  void defineProfile(org.eclipse.emf.ecore.resource.ResourceSet rset, org.eclipse.emf.common.util.URI profileURI)
           
 void execute(org.eclipse.emf.common.util.Monitor monitor)
           
protected  java.lang.String getUsage()
           
protected  void handleUnrecognizedArgument(java.lang.String argument)
           
protected  boolean isProfileDefinitionOption(java.lang.String key)
           
 void printUsage()
           
protected  int processArgument(java.lang.String[] arguments, int index)
           
protected  void processArguments(java.lang.String[] arguments)
           
protected  int processModelPaths(java.lang.String[] arguments, int index)
           
 void run(org.eclipse.core.runtime.IProgressMonitor progressMonitor, java.lang.String[] arguments)
           
 void run(org.eclipse.emf.common.util.Monitor monitor, java.lang.String[] arguments)
           
 java.lang.Object run(java.lang.String[] args)
           
 java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXIT_FAILURE

protected static final java.lang.Integer EXIT_FAILURE

reporter

protected final IDiagnosticReporter reporter

profileURIs

protected java.util.List<org.eclipse.emf.common.util.URI> profileURIs

profileDefinitionOptions

protected java.util.Map<java.lang.String,java.lang.String> profileDefinitionOptions
Constructor Detail

DefineProfileApplication

public DefineProfileApplication()

DefineProfileApplication

public DefineProfileApplication(IDiagnosticReporter reporter)
Method Detail

start

public java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
                       throws java.lang.Exception
Specified by:
start in interface org.eclipse.equinox.app.IApplication
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface org.eclipse.equinox.app.IApplication

run

public java.lang.Object run(java.lang.String[] args)
                     throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run(org.eclipse.core.runtime.IProgressMonitor progressMonitor,
                java.lang.String[] arguments)
         throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run(org.eclipse.emf.common.util.Monitor monitor,
                java.lang.String[] arguments)
         throws java.lang.Exception
Throws:
java.lang.Exception

execute

public void execute(org.eclipse.emf.common.util.Monitor monitor)
             throws java.lang.Exception
Throws:
java.lang.Exception

defineProfile

protected void defineProfile(org.eclipse.emf.ecore.resource.ResourceSet rset,
                             org.eclipse.emf.common.util.URI profileURI)
                      throws java.lang.Exception
Throws:
java.lang.Exception

printUsage

public void printUsage()

getUsage

protected java.lang.String getUsage()

processArguments

protected void processArguments(java.lang.String[] arguments)

processModelPaths

protected int processModelPaths(java.lang.String[] arguments,
                                int index)

processArgument

protected int processArgument(java.lang.String[] arguments,
                              int index)

isProfileDefinitionOption

protected boolean isProfileDefinitionOption(java.lang.String key)

handleUnrecognizedArgument

protected void handleUnrecognizedArgument(java.lang.String argument)

Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.