Package com.nomagic.uml2
Class MagicDrawProfile.SmartPackageStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.uml2.MagicDrawProfile.SmartPackageStereotype
-
- Enclosing class:
- MagicDrawProfile
public static class MagicDrawProfile.SmartPackageStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private PropertyadditionalElementsstatic java.lang.StringADDITIONALELEMENTSprivate PropertyexcludedElementsstatic java.lang.StringEXCLUDEDELEMENTSprivate MagicDrawProfileprofileprivate Propertyquerystatic java.lang.StringQUERYstatic java.lang.StringSTEREOTYPE_NAMEprivate PropertyuseInSelectionDialogsstatic java.lang.StringUSEINSELECTIONDIALOGSThis option determines whether contents of this smart package should be calculated and taken into account when operating in various Select Element dialogs.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSmartPackageStereotype(MagicDrawProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalElements(Element element, Element value)voidaddExcludedElements(Element element, Element value)protected voidclear()voidclearAdditionalElements(Element element)voidclearExcludedElements(Element element)voidclearQuery(Element element)voidclearUseInSelectionDialogs(Element element)java.util.List<Element>getAdditionalElements(Element element)PropertygetAdditionalElementsProperty()java.util.List<Element>getExcludedElements(Element element)PropertygetExcludedElementsProperty()java.lang.ObjectgetQuery(Element element)PropertygetQueryProperty()StereotypegetStereotype()Returns stereotype for this wrapper.PropertygetUseInSelectionDialogsProperty()booleanis(Element element)Checks if stereotype of this wrapper is applied to given element.static booleanisInstance(Element element)java.lang.BooleanisUseInSelectionDialogs(Element element)voidremoveAdditionalElements(Element element, Element value)voidremoveExcludedElements(Element element, Element value)voidsetAdditionalElements(Element element, java.util.Collection<? extends Element> value)voidsetExcludedElements(Element element, java.util.Collection<? extends Element> value)voidsetQuery(Element element, java.lang.Object value)voidsetUseInSelectionDialogs(Element element, java.lang.Boolean value)-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, getElement, getTagByName, toBoolean, toDouble, toInteger, toString, unApply
-
-
-
-
Field Detail
-
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
- Constant Field Values
-
ADDITIONALELEMENTS
public static final java.lang.String ADDITIONALELEMENTS
- See Also:
- Constant Field Values
-
EXCLUDEDELEMENTS
public static final java.lang.String EXCLUDEDELEMENTS
- See Also:
- Constant Field Values
-
QUERY
public static final java.lang.String QUERY
- See Also:
- Constant Field Values
-
USEINSELECTIONDIALOGS
public static final java.lang.String USEINSELECTIONDIALOGS
This option determines whether contents of this smart package should be calculated and taken into account when operating in various Select Element dialogs. Having this option on may help you to pick elements in Select Element dialog, but it also incurs performance penalty. If your smart package contains a slow-running computation - such as Find - you may want to keep this option off for performance reasons.- See Also:
- Constant Field Values
-
profile
private final MagicDrawProfile profile
-
additionalElements
@CheckForNull private Property additionalElements
-
excludedElements
@CheckForNull private Property excludedElements
-
query
@CheckForNull private Property query
-
useInSelectionDialogs
@CheckForNull private Property useInSelectionDialogs
-
-
Constructor Detail
-
SmartPackageStereotype
protected SmartPackageStereotype(MagicDrawProfile profile)
-
-
Method Detail
-
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapperReturns stereotype for this wrapper.- Specified by:
getStereotypein classProfileImplementation.StereotypeWrapper- Returns:
- stereotype
-
getAdditionalElementsProperty
@CheckForNull public Property getAdditionalElementsProperty()
-
getExcludedElementsProperty
@CheckForNull public Property getExcludedElementsProperty()
-
getQueryProperty
@CheckForNull public Property getQueryProperty()
-
getUseInSelectionDialogsProperty
@CheckForNull public Property getUseInSelectionDialogsProperty()
-
setAdditionalElements
public void setAdditionalElements(Element element, @CheckForNull java.util.Collection<? extends Element> value)
-
clearAdditionalElements
public void clearAdditionalElements(Element element)
-
setExcludedElements
public void setExcludedElements(Element element, @CheckForNull java.util.Collection<? extends Element> value)
-
clearExcludedElements
public void clearExcludedElements(Element element)
-
setQuery
public void setQuery(Element element, @CheckForNull java.lang.Object value)
-
clearQuery
public void clearQuery(Element element)
-
getQuery
@CheckForNull public java.lang.Object getQuery(Element element)
-
setUseInSelectionDialogs
public void setUseInSelectionDialogs(Element element, @CheckForNull java.lang.Boolean value)
-
clearUseInSelectionDialogs
public void clearUseInSelectionDialogs(Element element)
-
isUseInSelectionDialogs
@CheckForNull public java.lang.Boolean isUseInSelectionDialogs(Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull Element element)Description copied from class:ProfileImplementation.StereotypeWrapperChecks if stereotype of this wrapper is applied to given element.- Parameters:
element- element- Returns:
- true if stereotype of this wrapper is applied to given element
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-