Package com.nomagic.magicdraw.properties
Class PropertyManagerByStereotype
java.lang.Object
com.nomagic.magicdraw.properties.PropertyManager
com.nomagic.magicdraw.properties.ExtendablePropertyManager
com.nomagic.magicdraw.properties.PropertyManagerByStereotype
- All Implemented Interfaces:
PropertyVisitorAcceptor
,PropertyChangeListener
,Cloneable
,EventListener
Property manager which is specified by stereotype.
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.properties.ExtendablePropertyManager
removable
Fields inherited from class com.nomagic.magicdraw.properties.PropertyManager
IS_UNIQUE, OWN_PROPERTY_ADDED, OWN_PROPERTY_REMOVED
-
Constructor Summary
ConstructorDescriptionPropertyManagerByStereotype
(PropertyManager parentPropertyManager, String name, List<Property> properties) PropertyManagerByStereotype
(String name, List<Property> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(PropertyVisitor visitor) Accepts the given visitor.clone()
Clones the manager.protected void
Gets represented stereotype identifier.Returns property class type.getName()
Returns name of the property manager.boolean
isTheSame
(PropertyManager manager) Check if given property manager is the same as current.makeCopy()
Make copy of property.void
setStereoType
(String id) Methods inherited from class com.nomagic.magicdraw.properties.ExtendablePropertyManager
elementIsAllowed, getDefinedIn, getSymbolType, isExtendableByDiagram, isExtendableByStereotype, isRemovable, setDefinedIn, setExtendableByDiagram, setExtendableByStereotype, setRemovable, setSymbolType, setSymbolType
Methods inherited from class com.nomagic.magicdraw.properties.PropertyManager
addProperties, addProperty, addPropertyChangeListener, append, append, append, append, apply, apply, applyValues, cloneProperties, distinct, distinct, equalsTo, equalsWithValues, generateDefaultDescriptionID, generateNullDescriptionID, getHiddenProperties, getID, getOrderedProperties, getOwnProperties, getParentPropertyManager, getProperties, getProperty, getPropertyByName, getStyle, hideParentProperty, isFrozen, isHiddenParentProperty, isUndefinedStateOrValuesDiffer, leaveTheSame, leaveTheSame, makeOwnProperty, mergeBooleanProperty, mergeChoiceProperty, mergeElementProperty, mergeProperties, mergePropertyByType, propertyChange, removeProperty, removeProperty, removeProperty, removePropertyChangeListener, retainProperties, setFrozen, setID, setName, setParentPropertyManager, setParentPropertyManagerOnly, setProperties, setPropertyEnableMap, setStyle, sGetID, shareProperty, showParentProperty, toString
-
Constructor Details
-
PropertyManagerByStereotype
public PropertyManagerByStereotype() -
PropertyManagerByStereotype
public PropertyManagerByStereotype(PropertyManager parentPropertyManager, String name, List<Property> properties) -
PropertyManagerByStereotype
-
-
Method Details
-
accept
Description copied from class:PropertyManager
Accepts the given visitor.- Specified by:
accept
in interfacePropertyVisitorAcceptor
- Overrides:
accept
in classExtendablePropertyManager
- Parameters:
visitor
- the PropertyVisitor.- Throws:
Exception
- See Also:
-
getClassType
Returns property class type.- Specified by:
getClassType
in interfacePropertyVisitorAcceptor
- Overrides:
getClassType
in classExtendablePropertyManager
- Returns:
- PropertyID.PROPERTY_MANAGER
- See Also:
-
getStereotype
-
getAssignedStereotypeID
Gets represented stereotype identifier. For internal usage only.- Returns:
- identifier of the stereotype that
was set using
setStereoType(String)
method.
-
setStereoType
-
customize
protected void customize() -
makeCopy
Description copied from class:PropertyManager
Make copy of property.- Overrides:
makeCopy
in classExtendablePropertyManager
- Returns:
- Property Manager.
-
getName
Description copied from class:PropertyManager
Returns name of the property manager.- Overrides:
getName
in classPropertyManager
- Returns:
- stereotype name if such available. If such not available returns name passed to constructor.
-
isTheSame
Check if given property manager is the same as current. Managers are the same if names are equal, parent managers are equal and stereotypes are equal- Overrides:
isTheSame
in classPropertyManager
- Parameters:
manager
- manager- Returns:
- true if the same
-
clone
Description copied from class:PropertyManager
Clones the manager. Does deep clone - all properties will be cloned too.- Overrides:
clone
in classPropertyManager
- Returns:
- the cloned manager.
-