@OpenApiAll
public class ElementListProperty
extends com.nomagic.magicdraw.properties.ListProperty
implements com.nomagic.magicdraw.properties.ElementFilterProperty
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, mAdditionalProperties, mDescriptionID, mEditable, mGroupName, mID, mResourceProvider, mSources, mSupport, mUndefinedState, mValue, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE
Constructor and Description |
---|
ElementListProperty()
Creates and initializes a new
ModelElementListProperty object. |
ElementListProperty(java.lang.String id,
java.lang.Object value)
Creates and initializes a new
ModelElementListProperty object
from specified parameters. |
Modifier and Type | Method and Description |
---|---|
void |
accept(PropertyVisitor v)
Accepts the given visitor.
|
ElementListProperty |
clone()
Clones the property.
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Delegates
firePropertyChange to the
PropertyChangeSupport , the member of this class,
which reports a bound property update to any registered listeners. |
java.lang.String |
getClassType()
Returns a class type of the property.
|
java.util.Collection |
getDisplayableTypes()
Returns displayable elements class types.
|
Element[] |
getElements() |
java.lang.String[] |
getElementsIDs()
ID's of stored Elements.
|
java.lang.Object[] |
getOriginalValue() |
java.util.Collection |
getSelectableRestrictedElements() |
java.util.Collection |
getSelectableTypes()
Returns selectable elements class types.
|
Stereotype |
getStereotype()
Deprecated.
This is a deprecated methods and you must use collection of restricted elements, not single stereotype
|
Element[] |
getValue()
Returns an array of model elements.
|
java.lang.String |
getValueStringRepresentation()
Returns value's string representation.
|
boolean |
isContainment()
Check Element list property is Containment.
|
boolean |
isOrdered()
Check Element list property is Ordered.
|
void |
setContainment(boolean containment) |
void |
setDisplayableTypes(java.util.Collection displayableTypes) |
void |
setOrdered(boolean ordered) |
void |
setProject(Project project) |
void |
setPropertyData(java.util.Collection displayableTypes,
java.util.Collection selectableTypes,
boolean ordered,
boolean containment)
Sets data for property members.
|
void |
setSelectableRestrictedElements(java.util.Collection stereotypes)
Sets a stereotypes and metaclasses for filtering selectable elements
|
void |
setSelectableTypes(java.util.Collection selectableTypes) |
void |
setValue(java.lang.Object value)
Sets new property value.
|
_isFrozen, _setFrozen, addPropertyChangeListener, addSource, addSources, areValuesEqual, createCellEditor, createTableCellRenderer, equals, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getGroup, getID, getIntroductoryVersion, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSources, getUndefinedString, getUndefinedString, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, toString
public ElementListProperty()
ModelElementListProperty
object.public ElementListProperty(java.lang.String id, @CheckForNull java.lang.Object value)
ModelElementListProperty
object
from specified parameters.id
- - id of the property.value
- - a value of the property.public java.lang.String getClassType()
getClassType
in interface PropertyVisitorAcceptor
getClassType
in class com.nomagic.magicdraw.properties.ListProperty
PropertyID.ELEMENT_LIST_PROPERTY
public void setPropertyData(@CheckForNull java.util.Collection displayableTypes, java.util.Collection selectableTypes, boolean ordered, boolean containment)
setPropertyData
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public java.util.Collection getSelectableTypes()
getSelectableTypes
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public java.util.Collection getDisplayableTypes()
getDisplayableTypes
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public boolean isContainment()
isContainment
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public boolean isOrdered()
isOrdered
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public void setValue(@CheckForNull java.lang.Object value)
Property
PropertyChangeEvent
with propertyName - property
ID, newValue and oldValue.setValue
in class com.nomagic.magicdraw.properties.ListProperty
value
- a new property value.public Element[] getElements()
public java.lang.Object[] getOriginalValue()
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Property
firePropertyChange
to the
PropertyChangeSupport
, the member of this class,
which reports a bound property update to any registered listeners.
No event is fired if old and new are equal and non-null.firePropertyChange
in class Property
propertyName
- the programmatic name of the property that was changed.oldValue
- the old value of the propertynewValue
- the new value of the propertyPropertyChangeSupport
@CheckForNull public java.lang.String[] getElementsIDs()
public Element[] getValue()
getValue
in class com.nomagic.magicdraw.properties.ListProperty
public ElementListProperty clone()
clone
in class com.nomagic.magicdraw.properties.ListProperty
public void accept(PropertyVisitor v) throws java.lang.Exception
accept
in interface PropertyVisitorAcceptor
accept
in class com.nomagic.magicdraw.properties.ListProperty
v
- the PropertyVisitor.java.lang.Exception
public java.lang.String getValueStringRepresentation()
Property
getValueStringRepresentation
in class com.nomagic.magicdraw.properties.ListProperty
value.
toString()
if property has value.public void setProject(@CheckForNull Project project)
setProject
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public java.util.Collection getSelectableRestrictedElements()
getSelectableRestrictedElements
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public void setSelectableRestrictedElements(java.util.Collection stereotypes)
setSelectableRestrictedElements
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
stereotypes
- stereotypes@CheckForNull @Deprecated public Stereotype getStereotype()
getSelectableRestrictedElements()
public void setSelectableTypes(@CheckForNull java.util.Collection selectableTypes)
setSelectableTypes
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public void setDisplayableTypes(java.util.Collection displayableTypes)
setDisplayableTypes
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public void setContainment(boolean containment)
setContainment
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public void setOrdered(boolean ordered)
setOrdered
in interface com.nomagic.magicdraw.properties.ElementFilterProperty