@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.
|
Property |
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.
|
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, createEditor, createTableCellRenderer, equals, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getGroup, getID, getName, getNonEditableReason, getPureDescription, getResourceProvider, getResourceProviderID, getSources, getUndefinedString, getUndefinedString, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, toStringpublic 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 PropertyVisitorAcceptorgetClassType in class com.nomagic.magicdraw.properties.ListPropertyPropertyID.ELEMENT_LIST_PROPERTYpublic void setPropertyData(@CheckForNull
java.util.Collection displayableTypes,
java.util.Collection selectableTypes,
boolean ordered,
boolean containment)
setPropertyData in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic java.util.Collection getSelectableTypes()
getSelectableTypes in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic java.util.Collection getDisplayableTypes()
getDisplayableTypes in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic boolean isContainment()
isContainment in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic boolean isOrdered()
isOrdered in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic void setValue(@CheckForNull
java.lang.Object value)
PropertyPropertyChangeEvent with propertyName - property
ID, newValue and oldValue.setValue in class com.nomagic.magicdraw.properties.ListPropertyvalue - 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)
PropertyfirePropertyChange 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 PropertypropertyName - 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.ListPropertypublic Property clone()
public void accept(PropertyVisitor v) throws java.lang.Exception
accept in interface PropertyVisitorAcceptoraccept in class com.nomagic.magicdraw.properties.ListPropertyv - the PropertyVisitor.java.lang.Exceptionpublic java.lang.String getValueStringRepresentation()
PropertygetValueStringRepresentation in class com.nomagic.magicdraw.properties.ListPropertyvalue.
toString() if property has value.public void setProject(@CheckForNull
Project project)
setProject in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic java.util.Collection getSelectableRestrictedElements()
getSelectableRestrictedElements in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic void setSelectableRestrictedElements(java.util.Collection stereotypes)
setSelectableRestrictedElements in interface com.nomagic.magicdraw.properties.ElementFilterPropertystereotypes - stereotypes@CheckForNull @Deprecated public Stereotype getStereotype()
getSelectableRestrictedElements()public void setSelectableTypes(@CheckForNull
java.util.Collection selectableTypes)
setSelectableTypes in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic void setDisplayableTypes(java.util.Collection displayableTypes)
setDisplayableTypes in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic void setContainment(boolean containment)
setContainment in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic void setOrdered(boolean ordered)
setOrdered in interface com.nomagic.magicdraw.properties.ElementFilterProperty