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
,PropertyChangeListener
,Cloneable
,EventListener
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(PropertyVisitor visitor) Accepts the given visitor.Returns property class type.boolean
isTheSame
(PropertyManager manager) Check if given property manager is the same as current.makeCopy()
Make copy of property.void
setDiagramType
(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, 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
-
PropertyManagerByDiagram
public PropertyManagerByDiagram() -
PropertyManagerByDiagram
-
-
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:
-
getDiagramType
- Returns:
- diagram type for which manager is used. If it is null manager is applied for all diagrams.
-
setDiagramType
- Parameters:
diagramType
- new diagram type.
-
getClassType
Returns property class type.- Specified by:
getClassType
in interfacePropertyVisitorAcceptor
- Overrides:
getClassType
in classExtendablePropertyManager
- Returns:
- PropertyID.PROPERTY_MANAGER
- See Also:
-
makeCopy
Description copied from class:PropertyManager
Make copy of property.- Overrides:
makeCopy
in classExtendablePropertyManager
- Returns:
- Property Manager.
-
isTheSame
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
-