|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.modeler.UMLModeler
A utility class that exposes model and profile lifecycle operations and provides access to the modeling platform.
API clients should not instantiate this class.
Method Summary | |
static void |
closeModel(org.eclipse.uml2.Model model)
Closes the model specified by model |
static void |
closeProfile(org.eclipse.uml2.Profile profile)
Closes the profile specified by profile |
static org.eclipse.uml2.Model |
createModel(String file)
Creates a UML model given a file path |
static org.eclipse.uml2.Model |
createModel(org.eclipse.emf.common.util.URI uri)
Creates a UML model given a URI |
static org.eclipse.uml2.Profile |
createProfile(String file)
Creates a UML profile given a file path |
static org.eclipse.uml2.Profile |
createProfile(org.eclipse.emf.common.util.URI uri)
Creates a UML profile given a URI |
static EditingDomain |
getEditingDomain()
Returns the UMLModeler's EditingDomain. |
static IEObjectHelper |
getEObjectHelper()
Returns a helper to work with classes implementing EObject |
static IOclQueryHelper |
getOclQueryHelper()
Returns a helper to perform OCL queries over models |
static Collection |
getOpenedModels()
Returns all opened UML models. |
static IQueryHelper |
getQueryHelper()
Returns a helper to perform queries over models |
static IUMLDiagramHelper |
getUMLDiagramHelper()
Returns a user helper to work with classes implementing View |
static IUMLHelper |
getUMLHelper()
Returns a helper to work with classes implementing Element |
static IUMLUIHelper |
getUMLUIHelper()
Returns a user interface helper to work with classes implementing Element |
static org.eclipse.uml2.Model |
openModel(String file)
Opens the UML model whose filename is described by file .
|
static org.eclipse.uml2.Model |
openModel(org.eclipse.emf.common.util.URI uri)
Opens the UML model whose filename is described by uri .
|
static org.eclipse.uml2.Profile |
openProfile(String file)
Opens the UML profile whose filename is described by file .
|
static org.eclipse.uml2.Profile |
openProfile(org.eclipse.emf.common.util.URI uri)
Opens the UML profile whose URI is described by uri .
|
static void |
saveModel(org.eclipse.uml2.Model model)
Saves the UML model specified by model . |
static void |
saveModelAs(org.eclipse.uml2.Model model,
String file)
Saves the model specified by model to the location
specified by file |
static void |
saveModelAs(org.eclipse.uml2.Model model,
org.eclipse.emf.common.util.URI uri)
Saves the model specified by model to the location
specified by uri |
static void |
saveProfile(org.eclipse.uml2.Profile profile)
Saves the UML profile specified by profile . |
static void |
saveProfileAs(org.eclipse.uml2.Profile profile,
String file)
Saves the profile specified by profile to the location
specified by file |
static void |
saveProfileAs(org.eclipse.uml2.Profile profile,
org.eclipse.emf.common.util.URI uri)
Saves the profile specified by profile to the location
specified by uri |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IEObjectHelper getEObjectHelper()
EObject
IEObjectHelper
public static IUMLHelper getUMLHelper()
Element
IUMLHelper
public static IUMLUIHelper getUMLUIHelper()
Element
IUMLUIHelper
public static IUMLDiagramHelper getUMLDiagramHelper()
View
IUMLDiagramHelper
public static IQueryHelper getQueryHelper()
IQueryHelper
public static IOclQueryHelper getOclQueryHelper()
IOclQueryHelper
public static EditingDomain getEditingDomain()
EditingDomain
public static Collection getOpenedModels()
public static org.eclipse.uml2.Model createModel(String file)
file
- The model file to create
IllegalArgumentException
- file
is an empty string
NullPointerException
- file
is null
public static org.eclipse.uml2.Model createModel(org.eclipse.emf.common.util.URI uri)
uri
- The URI of the model to create
IllegalArgumentException
- file
is an empty string
NullPointerException
- file
is null
public static org.eclipse.uml2.Model openModel(String file) throws IOException
file
.
Supported extensions are:
.emx
.uml2
file
- The model file to open
IllegalArgumentException
- file
is an empty string
IOException
- The file specified by file
could not be found
or the file is corrupted or could not be opened
NullPointerException
- file
is null
ClassCastException
- file
does not point to a Modelpublic static org.eclipse.uml2.Model openModel(org.eclipse.emf.common.util.URI uri) throws IOException
uri
.
Supported extensions are:
.emx
.uml2
uri
- The URI of the model to open
IllegalArgumentException
- file
is an empty string
IOException
- The file specified by file
could not be found
or the file is corrupted or could not be opened
NullPointerException
- file
is null
ClassCastException
- file
does not point to a Modelpublic static void saveModel(org.eclipse.uml2.Model model) throws IOException
model
.
model
- The UML model to save
IOException
- The location specified by the root path of model
cannot be used to save the model
IllegalArgumentException
- model
has no associated resource (public static void saveModelAs(org.eclipse.uml2.Model model, String file) throws IOException
model
to the location
specified by file
model
- The UML2 model to savefile
- The location to save the UML2 model
IOException
- The location specified by file
cannot be used
to save the model
IllegalArgumentException
- model
has no associated Model (
model.getMode()
is null
or
file
is emptypublic static void saveModelAs(org.eclipse.uml2.Model model, org.eclipse.emf.common.util.URI uri) throws IOException
model
to the location
specified by uri
model
- The UML2 model to saveuri
- The URI location to save the UML2 model
IOException
- The location specified by uri
cannot be used
to save the model
IllegalArgumentException
- model
has no associated Model (
model.getMode()
is null
or
file
is emptypublic static void closeModel(org.eclipse.uml2.Model model)
model
model
- The UML2 model to close
IllegalArgumentException
- model
has no associated Model (
model.getMode()
is null
public static org.eclipse.uml2.Profile createProfile(String file)
file
- The profile file to create
IllegalArgumentException
- file
is an empty string
NullPointerException
- file
is null
public static org.eclipse.uml2.Profile createProfile(org.eclipse.emf.common.util.URI uri)
uri
- The URI of the profile to create
IllegalArgumentException
- file
is an empty string
NullPointerException
- file
is null
public static org.eclipse.uml2.Profile openProfile(String file) throws IOException
file
.
Supported extensions are:
.prx
.uml2
file
- The profile file to open
IllegalArgumentException
- file
is an empty string
IOException
- The file specified by file
could not be found
or the file is corrupted or could not be opened
NullPointerException
- file
is null
ClassCastException
- file
does not point to a Profilepublic static org.eclipse.uml2.Profile openProfile(org.eclipse.emf.common.util.URI uri) throws IOException
uri
.
Supported extensions are:
.prx
.uml2
uri
- The URI of the profile to open
IllegalArgumentException
- file
is an empty string
IOException
- The file specified by file
could not be found
or the file is corrupted or could not be opened
NullPointerException
- file
is null
ClassCastException
- file
does not point to a Profilepublic static void saveProfile(org.eclipse.uml2.Profile profile) throws IOException
profile
.
profile
- The UML profile to save
IOException
- The location specified by the root path of
profile
cannot be used to save the profile
IllegalArgumentException
- profile
has no associated resource (public static void saveProfileAs(org.eclipse.uml2.Profile profile, String file) throws IOException
profile
to the location
specified by file
profile
- The UML2 profile to savefile
- The location to save the UML2 profile
IOException
- The location specified by file
cannot be used
to save the profile
IllegalArgumentException
- profile
has no associated Profile (
profile.getMode()
is null
or
file
is emptypublic static void saveProfileAs(org.eclipse.uml2.Profile profile, org.eclipse.emf.common.util.URI uri) throws IOException
profile
to the location
specified by uri
profile
- The UML2 profile to saveuri
- The location to save the UML2 profile
IOException
- The location specified by file
cannot be used
to save the profile
IllegalArgumentException
- profile
has no associated Profile (
profile.getMode()
is null
or
file
is emptypublic static void closeProfile(org.eclipse.uml2.Profile profile)
profile
profile
- The UML2 profile to close
IllegalArgumentException
- profile
has no associated Profile (
profile.getMode()
is null
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.