Package com.nomagic.magicdraw.properties
Class PropertyManagerByDiagram
- java.lang.Object
-
- com.nomagic.magicdraw.properties.PropertyManager
-
- com.nomagic.magicdraw.properties.ExtendablePropertyManager
-
- com.nomagic.magicdraw.properties.PropertyManagerByDiagram
-
- All Implemented Interfaces:
PropertyVisitorAcceptor
,java.beans.PropertyChangeListener
,java.lang.Cloneable
,java.util.EventListener
@OpenApiAll public class PropertyManagerByDiagram extends ExtendablePropertyManager
Property manager which can be specified by diagram type. If diagram type is not set manager is allowed to be specified by diagram type. If diagram type is set manager is already created for particular diagram type and can not be specified again.
-
-
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 PropertyManagerByDiagram()
PropertyManagerByDiagram(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.java.lang.String
getClassType()
Returns property class type.java.lang.String
getDiagramType()
boolean
isTheSame(PropertyManager manager)
Check if given property manager is the same as current.PropertyManager
makeCopy()
Make copy of property.void
setDiagramType(java.lang.String diagramType)
-
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, clone, cloneProperties, distinct, distinct, equalsTo, equalsWithValues, generateDefaultDescriptionID, generateNullDescriptionID, getHiddenProperties, getID, getName, 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
-
PropertyManagerByDiagram
public PropertyManagerByDiagram()
-
PropertyManagerByDiagram
public PropertyManagerByDiagram(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)
-
getDiagramType
public java.lang.String getDiagramType()
- Returns:
- diagram type for which manager is used. If it is null manager is applied for all diagrams.
-
setDiagramType
public void setDiagramType(java.lang.String diagramType)
- Parameters:
diagramType
- new diagram type.
-
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
-
makeCopy
public PropertyManager makeCopy()
Description copied from class:PropertyManager
Make copy of property.- Overrides:
makeCopy
in classExtendablePropertyManager
- Returns:
- Property Manager.
-
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 diagram types are equal- Overrides:
isTheSame
in classPropertyManager
- Parameters:
manager
- manager- Returns:
- true if the same
-
-