@OpenApiAll public class ElementProperty extends Property 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 |
|---|
ElementProperty()
Default constructor.
|
ElementProperty(java.lang.String id,
java.lang.Object element)
The property constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PropertyVisitor v)
Accepts the given visitor.
|
ElementProperty |
clone()
Clones the property.
|
java.lang.String |
getClassType()
Returns property class type.
|
java.util.Collection |
getDisplayableTypes()
Returns displayable elements class types.
|
Element |
getElement()
Returns model element
|
java.lang.String |
getElementID()
Returns stored element ID (real value of Property).
|
java.lang.Object |
getOriginalValue()
Does not convert persistent value to element, but returns at it is (id of element)
|
java.util.Collection |
getSelectableRestrictedElements()
Returns a stereotypes and metaclasses for filtering selectable elements
|
java.util.Collection |
getSelectableTypes()
Returns selectable elements class types.
|
static java.lang.String |
getStringRepresentation(java.lang.Object element) |
java.lang.Object |
getValue()
Returns properties value.
|
java.lang.String |
getValueStringRepresentation()
Returns value's string representation.
|
boolean |
isContainment()
Tests Is containment.
|
boolean |
isOrdered() |
boolean |
isParentApplicant()
Checks if selected element intends to be the parent for other element
|
boolean |
isTypeElement()
Test is Type Element.
|
boolean |
isUseUnspecified()
Returns 'use unspecified' flag for this property.
|
void |
setContainment(boolean containment)
Set containment.
|
void |
setDisplayableTypes(java.util.Collection displayableTypes)
Set Displayable types.
|
void |
setOrdered(boolean ordered) |
void |
setParentApplicant(boolean parentApplicant)
Set parent applicant.
|
void |
setProject(Project project)
Set 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 elements)
Sets a stereotypes and metaclasses for filtering selectable elements
|
void |
setSelectableTypes(java.util.Collection selectableTypes)
Set Select table types.
|
void |
setTypeElement(boolean typeElement)
Set type Element.
|
void |
setUseUnspecified(boolean useUnspecified)
Set Use Unspecified.
|
void |
setValue(java.lang.Object value)
Sets new property value.
|
_isFrozen, _setFrozen, addPropertyChangeListener, addSource, addSources, areValuesEqual, createCellEditor, createTableCellRenderer, equals, firePropertyChange, 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, toStringpublic ElementProperty()
public ElementProperty(java.lang.String id,
@CheckForNull
java.lang.Object element)
id - the ID of property.element - some type - model Element or String.public ElementProperty clone()
public java.lang.String getClassType()
getClassType in interface PropertyVisitorAcceptorgetClassType in class PropertyPropertyID.ELEMENT_PROPERTYpublic void setSelectableTypes(@CheckForNull
java.util.Collection selectableTypes)
setSelectableTypes in interface com.nomagic.magicdraw.properties.ElementFilterPropertyselectableTypes - List of select table types.public void setDisplayableTypes(@CheckForNull
java.util.Collection displayableTypes)
setDisplayableTypes in interface com.nomagic.magicdraw.properties.ElementFilterPropertydisplayableTypes - List of Displayable type.public void setUseUnspecified(boolean useUnspecified)
useUnspecified - Use Unspecified flag.public void setParentApplicant(boolean parentApplicant)
parentApplicant - Parent applicant.public void setContainment(boolean containment)
setContainment in interface com.nomagic.magicdraw.properties.ElementFilterPropertycontainment - Containment value.public void setTypeElement(boolean typeElement)
typeElement - The given type element.public 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 isUseUnspecified()
public boolean isParentApplicant()
public void setValue(@CheckForNull
java.lang.Object value)
PropertyChangeEvent with propertyName - property
ID, newValue and oldValue.public java.lang.Object getOriginalValue()
public java.lang.String getElementID()
public java.lang.Object getValue()
public Element getElement()
public void accept(PropertyVisitor v) throws java.lang.Exception
accept in interface PropertyVisitorAcceptoraccept in class Propertyv - the PropertyVisitor.java.lang.Exceptionpublic java.lang.String getValueStringRepresentation()
PropertygetValueStringRepresentation in class Propertyvalue.
toString() if property has value.public static java.lang.String getStringRepresentation(java.lang.Object element)
public void setProject(Project project)
setProject in interface com.nomagic.magicdraw.properties.ElementFilterPropertyproject - Given project.public boolean isContainment()
isContainment in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic boolean isTypeElement()
public java.util.Collection getSelectableRestrictedElements()
getSelectableRestrictedElements in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic void setSelectableRestrictedElements(@CheckForNull
java.util.Collection elements)
setSelectableRestrictedElements in interface com.nomagic.magicdraw.properties.ElementFilterPropertyelements - elementspublic void setPropertyData(java.util.Collection displayableTypes,
java.util.Collection selectableTypes,
boolean ordered,
boolean containment)
setPropertyData in interface com.nomagic.magicdraw.properties.ElementFilterPropertypublic boolean isOrdered()
isOrdered in interface com.nomagic.magicdraw.properties.ElementFilterPropertyElementFilterProperty.isOrdered()public void setOrdered(boolean ordered)
setOrdered in interface com.nomagic.magicdraw.properties.ElementFilterPropertyElementFilterProperty.setOrdered(boolean)