Package com.nomagic.magicdraw.ui.dialogs
Class SelectElementTypes
- java.lang.Object
-
- com.nomagic.magicdraw.ui.dialogs.SelectElementTypes
-
@OpenApiAll public class SelectElementTypes extends java.lang.Object
Element types for element(s) selection dialog.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Collection
create
The types (metaclasses) of elements or stereotypes that can be created in the select element dialog.java.util.Collection
display
The types (metaclasses) of elements that should be displayed in the select element dialog.java.util.Collection
restricted
The types (metaclasses) of elements or stereotypes that restricts the element selection.java.util.Collection
select
The types (metaclasses) of elements that can be selected in the select element dialog.boolean
usedAsTypes
The result will be used as "type", so possible elements should be filtered by DSL engine doNotSuggestAsType flag.
-
Constructor Summary
Constructors Constructor Description SelectElementTypes(ElementListProperty property, boolean creatable)
SelectElementTypes(ElementListProperty property, boolean creatable, boolean appendOwnersToCreatable)
SelectElementTypes(ElementProperty property, boolean creatable)
SelectElementTypes(ElementProperty property, boolean creatable, boolean appendOwnersToCreatable)
SelectElementTypes(java.util.Collection display, java.util.Collection select)
SelectElementTypes(java.util.Collection display, java.util.Collection select, Stereotype stereotype)
SelectElementTypes(java.util.Collection display, java.util.Collection select, java.util.Collection create)
Constructor.SelectElementTypes(java.util.Collection display, java.util.Collection select, java.util.Collection create, boolean appendOwnersToCreatable)
Constructor.SelectElementTypes(java.util.Collection display, java.util.Collection select, java.util.Collection create, java.util.Collection restricted)
Constructor.SelectElementTypes(java.util.Collection display, java.util.Collection select, java.util.Collection create, java.util.Collection restricted, boolean appendOwnersToCreatable)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SelectElementTypes
create(Property property, boolean creatable)
An utility method to create an instance for given property.static SelectElementTypes
create(Property property, boolean creatable, boolean appendOwnersToCreatable)
An utility method to create an instance for given property.java.util.Collection
getRestricted()
java.util.Collection
getSelect()
private void
init(java.util.Collection select, java.util.Collection display, java.util.Collection restricted, boolean creatable, boolean appendCreatableOwners)
-
-
-
Field Detail
-
display
@CheckForNull public java.util.Collection display
The types (metaclasses) of elements that should be displayed in the select element dialog.
-
select
@CheckForNull public java.util.Collection select
The types (metaclasses) of elements that can be selected in the select element dialog.
-
create
@CheckForNull public java.util.Collection create
The types (metaclasses) of elements or stereotypes that can be created in the select element dialog. Stereotype means that element with the applied stereotype will be created.
-
restricted
public java.util.Collection restricted
The types (metaclasses) of elements or stereotypes that restricts the element selection. If the restricted element is stereotype - only element that has applied this stereotype can be selected.
-
usedAsTypes
public boolean usedAsTypes
The result will be used as "type", so possible elements should be filtered by DSL engine doNotSuggestAsType flag.
-
-
Constructor Detail
-
SelectElementTypes
public SelectElementTypes(ElementProperty property, boolean creatable)
-
SelectElementTypes
public SelectElementTypes(ElementProperty property, boolean creatable, boolean appendOwnersToCreatable)
-
SelectElementTypes
public SelectElementTypes(ElementListProperty property, boolean creatable)
-
SelectElementTypes
public SelectElementTypes(ElementListProperty property, boolean creatable, boolean appendOwnersToCreatable)
-
SelectElementTypes
public SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select)
-
SelectElementTypes
public SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select, @CheckForNull Stereotype stereotype)
-
SelectElementTypes
public SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select, @CheckForNull java.util.Collection create)
Constructor.
-
SelectElementTypes
public SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select, @CheckForNull java.util.Collection create, boolean appendOwnersToCreatable)
Constructor.
-
SelectElementTypes
public SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select, @CheckForNull java.util.Collection create, java.util.Collection restricted)
Constructor.- Parameters:
display
-display
value.select
-select
value.create
-create
value.restricted
-restricted
value.
-
SelectElementTypes
public SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select, @CheckForNull java.util.Collection create, java.util.Collection restricted, boolean appendOwnersToCreatable)
Constructor.- Parameters:
display
-display
value.select
-select
value.create
-create
value.restricted
-restricted
value.appendOwnersToCreatable
- true if possible owners should be added into creatable metaclasses
-
-
Method Detail
-
init
private void init(@CheckForNull java.util.Collection select, @CheckForNull java.util.Collection display, java.util.Collection restricted, boolean creatable, boolean appendCreatableOwners)
-
getSelect
@CheckForNull public java.util.Collection getSelect()
-
getRestricted
public java.util.Collection getRestricted()
-
create
@CheckForNull public static SelectElementTypes create(Property property, boolean creatable)
An utility method to create an instance for given property.- Parameters:
property
- the given propertycreatable
- true if elements must be allowed to create- Returns:
- a new instance in case property is ElementProperty or Element ListProperty or null
- See Also:
SelectElementTypes(com.nomagic.magicdraw.properties.ElementProperty, boolean)
,SelectElementTypes(com.nomagic.magicdraw.properties.ElementListProperty, boolean)
-
create
@CheckForNull public static SelectElementTypes create(Property property, boolean creatable, boolean appendOwnersToCreatable)
An utility method to create an instance for given property.- Parameters:
property
- the given propertycreatable
- true if elements must be allowed to createappendOwnersToCreatable
- true if possible owners should be added into creatable metaclasses- Returns:
- a new instance in case property is ElementProperty or Element ListProperty or null
- See Also:
SelectElementTypes(com.nomagic.magicdraw.properties.ElementProperty, boolean)
,SelectElementTypes(com.nomagic.magicdraw.properties.ElementListProperty, boolean)
-
-