public class UMLProfileUtility
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static void | 
define(org.eclipse.uml2.uml.Profile profile)
Defines the profile using the standard UML2 method, and applies custom
 extensions, like inserting version information. 
 | 
static java.lang.String | 
getCategory(org.eclipse.uml2.uml.Stereotype stereotype)
Queries a stereotype's localized category. 
 | 
static byte[] | 
getIcon(org.eclipse.uml2.uml.Stereotype stereotype)
Retrieves the binary data representing a stereotype's icon. 
 | 
static byte[] | 
getShapeImage(org.eclipse.uml2.uml.Stereotype stereotype)
Retrieves the binary data representing stereotype's shape image. 
 | 
static boolean | 
isPropertiesUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype)
Queries whether the specified stereotype's properties are UI Read Only. 
 | 
static boolean | 
isSuppressed(org.eclipse.uml2.uml.Property property)
Queries whether the specified stereotype property is suppressed. 
 | 
static boolean | 
isSuppressed(org.eclipse.uml2.uml.Stereotype stereotype)
Queries whether the specified stereotype is suppressed. 
 | 
static boolean | 
isUIReadOnly(org.eclipse.uml2.uml.Property property)
Queries whether the specified property is UI Read Only. 
 | 
static boolean | 
isUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype)
Queries whether the specified stereotype is UI Read Only. 
 | 
static void | 
setCategory(org.eclipse.uml2.uml.Stereotype stereotype,
           java.lang.String category)
Sets the stereotype's category. 
 | 
static void | 
setIcon(org.eclipse.uml2.uml.Stereotype stereotype,
       byte[] imageData)
Sets the binary data representing stereotype's icon. 
 | 
static void | 
setPropertiesUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype,
                       boolean propertiesUIReadOnly)
Sets the properties UI Read Only flag for the specified stereotype. 
 | 
static void | 
setShapeImage(org.eclipse.uml2.uml.Stereotype stereotype,
             byte[] shapeImageData)
Sets the binary data representing stereotype's shape image. 
 | 
static void | 
setSuppressed(org.eclipse.uml2.uml.Property property,
             boolean value)
Sets whether a stereotype property is suppressed. 
 | 
static void | 
setSuppressed(org.eclipse.uml2.uml.Stereotype stereotype,
             boolean value)
Sets whether the specified stereotype is suppressed. 
 | 
static void | 
setUIReadOnly(org.eclipse.uml2.uml.Property property,
             boolean uiReadOnly)
Sets the UI Read Only flag for the specified property. 
 | 
static void | 
setUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype,
             boolean uiReadOnly)
Sets the UI Read Only flag for the specified stereotype. 
 | 
public static byte[] getShapeImage(org.eclipse.uml2.uml.Stereotype stereotype)
stereotype - The stereotypenull if there is no
         shape image on this stereotypepublic static void setShapeImage(org.eclipse.uml2.uml.Stereotype stereotype,
                                 byte[] shapeImageData)
stereotype - The stereotypeshapeImageData - The raw shape image data. Use null to clear any
            existing image datapublic static byte[] getIcon(org.eclipse.uml2.uml.Stereotype stereotype)
stereotype - The stereotypenull if there is no icon on
         this stereotypepublic static void setIcon(org.eclipse.uml2.uml.Stereotype stereotype,
                           byte[] imageData)
stereotype - The stereotypeimageData - The raw icon data. Use null to clear any existing
            icon datapublic static boolean isSuppressed(org.eclipse.uml2.uml.Stereotype stereotype)
stereotype - The stereotypepublic static void setSuppressed(org.eclipse.uml2.uml.Stereotype stereotype,
                                 boolean value)
stereotype - The stereotypevalue - Indicator if the stereotype is suppressedpublic static boolean isSuppressed(org.eclipse.uml2.uml.Property property)
property - The stereotype propertypublic static void setSuppressed(org.eclipse.uml2.uml.Property property,
                                 boolean value)
property - The stereotype propertyvalue - Indicator if the stereotype property is suppressedjava.lang.UnsupportedOperationException - If the property is not owned by a stereotypepublic static boolean isUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype)
stereotype - The stereotypepublic static void setUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype,
                                 boolean uiReadOnly)
stereotype - The stereotypeuiReadOnly - Indicator if it is UI Read Onlypublic static boolean isUIReadOnly(org.eclipse.uml2.uml.Property property)
property - The propertypublic static void setUIReadOnly(org.eclipse.uml2.uml.Property property,
                                 boolean uiReadOnly)
property - The propertyuiReadOnly - Indicator if it is UI Read Onlypublic static boolean isPropertiesUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype)
stereotype - The stereotypepublic static void setPropertiesUIReadOnly(org.eclipse.uml2.uml.Stereotype stereotype,
                                           boolean propertiesUIReadOnly)
stereotype - The stereotypepropertiesUIReadOnly - Indicator if its properties are UI Read Onlypublic static java.lang.String getCategory(org.eclipse.uml2.uml.Stereotype stereotype)
stereotype - The stereotypepublic static void setCategory(org.eclipse.uml2.uml.Stereotype stereotype,
                               java.lang.String category)
stereotype - The stereotypecategory - The category to assign to the stereotypepublic static void define(org.eclipse.uml2.uml.Profile profile)
profile - The profile to be defined