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 Modifier and Type Field Description private java.lang.StringdiagramTypeDiagram type for which this manager is created.-
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 voidaccept(PropertyVisitor visitor)Accepts the given visitor.java.lang.StringgetClassType()Returns property class type.java.lang.StringgetDiagramType()booleanisTheSame(PropertyManager manager)Check if given property manager is the same as current.PropertyManagermakeCopy()Make copy of property.voidsetDiagramType(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:PropertyManagerAccepts the given visitor.- Specified by:
acceptin interfacePropertyVisitorAcceptor- Overrides:
acceptin 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:
getClassTypein interfacePropertyVisitorAcceptor- Overrides:
getClassTypein classExtendablePropertyManager- Returns:
- PropertyID.PROPERTY_MANAGER
- See Also:
PropertyID.PROPERTY_MANAGER
-
makeCopy
public PropertyManager makeCopy()
Description copied from class:PropertyManagerMake copy of property.- Overrides:
makeCopyin 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:
isTheSamein classPropertyManager- Parameters:
manager- manager- Returns:
- true if the same
-
-