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
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.util.EventListener
@OpenApiAll public class PropertyManagerByStereotype extends ExtendablePropertyManager
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
Constructors Constructor Description PropertyManagerByStereotype()
PropertyManagerByStereotype(PropertyManager parentPropertyManager, java.lang.String name, java.util.List<Property> properties)
PropertyManagerByStereotype(java.lang.String name, java.util.List<Property> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PropertyVisitor visitor)
Accepts the given visitor.PropertyManagerByStereotype
clone()
Clones the manager.protected void
customize()
java.lang.String
getAssignedStereotypeID()
Gets represented stereotype identifier.java.lang.String
getClassType()
Returns property class type.java.lang.String
getName()
Returns name of the property manager.Stereotype
getStereotype()
boolean
isTheSame(PropertyManager manager)
Check if given property manager is the same as current.PropertyManager
makeCopy()
Make copy of property.void
setStereoType(java.lang.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, 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 Detail
-
PropertyManagerByStereotype
public PropertyManagerByStereotype()
-
PropertyManagerByStereotype
public PropertyManagerByStereotype(PropertyManager parentPropertyManager, java.lang.String name, java.util.List<Property> properties)
-
PropertyManagerByStereotype
public PropertyManagerByStereotype(java.lang.String name, java.util.List<Property> properties)
-
-
Method Detail
-
accept
public void accept(PropertyVisitor visitor) throws java.lang.Exception
Description copied from class:PropertyManager
Accepts the given visitor.- Specified by:
accept
in interfacePropertyVisitorAcceptor
- Overrides:
accept
in classExtendablePropertyManager
- Parameters:
visitor
- the PropertyVisitor.- Throws:
java.lang.Exception
- See Also:
PropertyManager.accept(com.nomagic.magicdraw.properties.PropertyVisitor)
-
getClassType
public java.lang.String getClassType()
Returns property class type.- Specified by:
getClassType
in interfacePropertyVisitorAcceptor
- Overrides:
getClassType
in classExtendablePropertyManager
- Returns:
- PropertyID.PROPERTY_MANAGER
- See Also:
PropertyID.PROPERTY_MANAGER
-
getStereotype
@CheckForNull public Stereotype getStereotype()
-
getAssignedStereotypeID
public java.lang.String getAssignedStereotypeID()
Gets represented stereotype identifier. For internal usage only.- Returns:
- identifier of the stereotype that
was set using
setStereoType(String)
method.
-
setStereoType
public void setStereoType(java.lang.String id)
-
customize
protected void customize()
-
makeCopy
public PropertyManager makeCopy()
Description copied from class:PropertyManager
Make copy of property.- Overrides:
makeCopy
in classExtendablePropertyManager
- Returns:
- Property Manager.
-
getName
public java.lang.String 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
public boolean isTheSame(PropertyManager manager)
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
public PropertyManagerByStereotype 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.
-
-