public class ProfileUtils
extends java.lang.Object
Constructor and Description |
---|
ProfileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
applyProfileRecursively(org.eclipse.uml2.uml.Profile pkg,
org.eclipse.uml2.uml.Package model)
Deprecated.
use directly
PackageUtil.applyProfile(Package, Profile, boolean) instead. |
static boolean |
isPredefinedProfile(java.lang.Object profile)
Checks if the given profile is defined in the CHESS or MARTE profiles.
|
static boolean |
isPredefinedStereotype(java.lang.Object strt)
Checks if the given stereotype represents a Design View.
|
static org.eclipse.uml2.uml.Profile |
loadProfile(org.eclipse.emf.ecore.resource.ResourceSet rs,
java.lang.String profileUri)
Deprecated.
use
PackageUtil.loadPackage(URI, ResourceSet) instead. |
static void |
writeProfileRecursivelyToFile(org.eclipse.uml2.uml.Package pkg,
java.lang.String fileName)
Writes the list of applied profile given a package to a file.
|
@Deprecated public static org.eclipse.uml2.uml.Profile loadProfile(org.eclipse.emf.ecore.resource.ResourceSet rs, java.lang.String profileUri)
PackageUtil.loadPackage(URI, ResourceSet)
instead.rs
- the rsprofileUri
- the profile uripublic static void writeProfileRecursivelyToFile(org.eclipse.uml2.uml.Package pkg, java.lang.String fileName) throws java.io.IOException
pkg
- the pkgfileName
- the file namejava.io.IOException
- Signals that an I/O exception has occurred.@Deprecated public static void applyProfileRecursively(org.eclipse.uml2.uml.Profile pkg, org.eclipse.uml2.uml.Package model)
PackageUtil.applyProfile(Package, Profile, boolean)
instead.pkg
- the pkgmodel
- the modelpublic static boolean isPredefinedProfile(java.lang.Object profile)
profile
- the profilepublic static boolean isPredefinedStereotype(java.lang.Object strt)
strt
- the stereotype