@Deprecated public class ObUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addStereotype(IModelingSession session,
IModelElement element,
String type)
Deprecated.
|
static String |
getNoteContent(IModelElement element,
String type)
Deprecated.
|
static ObList<IAssociationEnd> |
getOppositeEnds(IAssociationEnd assocEnd)
Deprecated.
|
static ITaggedValue |
getTag(IModelElement element,
String type)
Deprecated.
|
static String |
getTagValue(IModelElement element,
String type)
Deprecated.
|
static List<String> |
getTagValues(IModelElement element,
String type)
Deprecated.
|
static boolean |
isTagged(IModelElement element,
String type)
Deprecated.
|
static void |
putNoteContent(IModelingSession session,
IModelElement element,
String type,
String content)
Deprecated.
|
static void |
putTagValues(IModelingSession session,
IModelElement element,
String type,
List<String> values)
Deprecated.
|
static void |
removeNote(IModelingSession session,
IModelElement element,
String noteType)
Deprecated.
|
static void |
removeStereotype(IModelingSession session,
IModelElement element,
String type)
Deprecated.
|
static void |
removeTag(IModelingSession session,
IModelElement element,
String type)
Deprecated.
|
@Deprecated public static void addStereotype(IModelingSession session, IModelElement element, String type) throws StereotypeNotFoundException
session - the modeling session used to look for the stereotype.element - IModelElement on which the stereotype is added.type - The stereotype name.StereotypeNotFoundException - if the stereotype is not known.@Deprecated public static String getNoteContent(IModelElement element, String type)
element - IModelElement on which the note is search for.type - The note type name.@Deprecated public static ObList<IAssociationEnd> getOppositeEnds(IAssociationEnd assocEnd)
assocEnd - The association end where we start from.@Deprecated public static ITaggedValue getTag(IModelElement element, String type)
element - IModelElement on which the tagged value is search for.type - The tagged value type name@Deprecated public static String getTagValue(IModelElement element, String type)
element - IModelElement on which the tagged value is search for.type - The tagged value type name@Deprecated public static List<String> getTagValues(IModelElement element, String type)
element - IModelElement on which the tagged value is search for.type - The tagged value type name@Deprecated public static boolean isTagged(IModelElement element, String type)
element - IModelElement on which the tagged value is search for.type - The tagged value type name@Deprecated public static void putNoteContent(IModelingSession session, IModelElement element, String type, String content) throws NoteTypeNotFoundException
If no note with the given type is found one is created.
session - the modeling session used to create the note if it does not exist.element - IModelElement on which the note is search for.type - The note type name.content - the note contentNoteTypeNotFoundException - If the note type is not known.@Deprecated public static void putTagValues(IModelingSession session, IModelElement element, String type, List<String> values) throws TagTypeNotFoundException
session - the modeling session used to create the tagged value if it does not exist.element - IModelElement on which the tagged value is created or updated.type - The tagged value type name.values - The values to store on the tag parameters. If values is null or empty the tag is deleted.TagTypeNotFoundException - thrown when no tag type with the given name exists on the element's metaclass.@Deprecated public static void removeNote(IModelingSession session, IModelElement element, String noteType)
session - the modeling session.element - IModelElement on which the note is removed.noteType - The note type@Deprecated public static void removeStereotype(IModelingSession session, IModelElement element, String type) throws StereotypeNotFoundException
session - the modeling session.element - IModelElement on which the stereotype is removed.type - The stereotype name.StereotypeNotFoundException - if the stereotype is not known.@Deprecated public static void removeTag(IModelingSession session, IModelElement element, String type)
session - the modeling session.element - IModelElement on which the tagged value is removed.type - The tagged value type name