@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.
|
Property |
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, createEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getGroup, getID, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSources, getUndefinedString, getUndefinedString, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, toString
public 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 Property clone()
public java.lang.String getClassType()
getClassType
in interface PropertyVisitorAcceptor
getClassType
in class Property
PropertyID.ELEMENT_PROPERTY
public void setSelectableTypes(@CheckForNull java.util.Collection selectableTypes)
setSelectableTypes
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
selectableTypes
- List of select table types.public void setDisplayableTypes(@CheckForNull java.util.Collection displayableTypes)
setDisplayableTypes
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
displayableTypes
- 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.ElementFilterProperty
containment
- Containment value.public void setTypeElement(boolean typeElement)
typeElement
- The given type element.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 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 PropertyVisitorAcceptor
accept
in class Property
v
- the PropertyVisitor.java.lang.Exception
public java.lang.String getValueStringRepresentation()
Property
getValueStringRepresentation
in class Property
value.
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.ElementFilterProperty
project
- Given project.public boolean isContainment()
isContainment
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public boolean isTypeElement()
public java.util.Collection getSelectableRestrictedElements()
getSelectableRestrictedElements
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public void setSelectableRestrictedElements(@CheckForNull java.util.Collection elements)
setSelectableRestrictedElements
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
elements
- elementspublic void setPropertyData(java.util.Collection displayableTypes, java.util.Collection selectableTypes, boolean ordered, boolean containment)
setPropertyData
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
public boolean isOrdered()
isOrdered
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
ElementFilterProperty.isOrdered()
public void setOrdered(boolean ordered)
setOrdered
in interface com.nomagic.magicdraw.properties.ElementFilterProperty
ElementFilterProperty.setOrdered(boolean)