@OpenApiAll
public class SelectElementTypes
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
SelectElementTypes(java.util.Collection display,
java.util.Collection select) |
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.
|
SelectElementTypes(java.util.Collection display,
java.util.Collection select,
Stereotype stereotype) |
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(Project project,
com.nomagic.magicdraw.ui.dsl.DSLHelper.DSLReferenceInfo info,
boolean creatable)
Constructs selectable types from DSL information.
|
SelectElementTypes(Project project,
com.nomagic.magicdraw.ui.dsl.DSLHelper.DSLReferenceInfo info,
boolean creatable,
boolean appendOwnersToCreatable)
Constructs selectable types from DSL information.
|
Modifier and Type | Method and 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() |
protected void |
init(java.util.Collection select,
java.util.Collection display,
java.util.Collection restricted,
boolean creatable,
boolean appendCreatableOwners) |
@OpenApi public java.util.Collection display
@OpenApi public java.util.Collection select
@OpenApi public java.util.Collection create
@OpenApi public java.util.Collection restricted
public boolean usedAsTypes
public SelectElementTypes(ElementProperty property, boolean creatable)
public SelectElementTypes(ElementProperty property, boolean creatable, boolean appendOwnersToCreatable)
public SelectElementTypes(ElementListProperty property, boolean creatable)
public SelectElementTypes(ElementListProperty property, boolean creatable, boolean appendOwnersToCreatable)
public SelectElementTypes(Project project, com.nomagic.magicdraw.ui.dsl.DSLHelper.DSLReferenceInfo info, boolean creatable)
project
- projectinfo
- dsl reference infocreatable
- true if elements must be allowed to createpublic SelectElementTypes(Project project, com.nomagic.magicdraw.ui.dsl.DSLHelper.DSLReferenceInfo info, boolean creatable, boolean appendOwnersToCreatable)
project
- projectinfo
- dsl reference infocreatable
- true if elements must be allowed to createappendOwnersToCreatable
- true if possible owners should be added into creatable metaclassespublic SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select)
public SelectElementTypes(java.util.Collection display, java.util.Collection select, @CheckForNull Stereotype stereotype)
@OpenApi public SelectElementTypes(@CheckForNull java.util.Collection display, @CheckForNull java.util.Collection select, @CheckForNull java.util.Collection create)
@OpenApi public SelectElementTypes(@CheckForNull java.util.Collection display, java.util.Collection select, @CheckForNull java.util.Collection create, boolean appendOwnersToCreatable)
@OpenApi public SelectElementTypes(@CheckForNull java.util.Collection display, java.util.Collection select, @CheckForNull java.util.Collection create, java.util.Collection restricted)
display
- display
value.select
- select
value.create
- create
value.restricted
- restricted
value.@OpenApi public SelectElementTypes(@CheckForNull java.util.Collection display, java.util.Collection select, @CheckForNull java.util.Collection create, java.util.Collection restricted, boolean appendOwnersToCreatable)
display
- display
value.select
- select
value.create
- create
value.restricted
- restricted
value.appendOwnersToCreatable
- true if possible owners should be added into creatable metaclassesprotected void init(java.util.Collection select, java.util.Collection display, java.util.Collection restricted, boolean creatable, boolean appendCreatableOwners)
public java.util.Collection getSelect()
public java.util.Collection getRestricted()
@CheckForNull public static SelectElementTypes create(Property property, boolean creatable)
property
- the given propertycreatable
- true if elements must be allowed to createSelectElementTypes(com.nomagic.magicdraw.properties.ElementProperty, boolean)
,
SelectElementTypes(com.nomagic.magicdraw.properties.ElementListProperty, boolean)
@CheckForNull public static SelectElementTypes create(Property property, boolean creatable, boolean appendOwnersToCreatable)
property
- the given propertycreatable
- true if elements must be allowed to createappendOwnersToCreatable
- true if possible owners should be added into creatable metaclassesSelectElementTypes(com.nomagic.magicdraw.properties.ElementProperty, boolean)
,
SelectElementTypes(com.nomagic.magicdraw.properties.ElementListProperty, boolean)