@OpenApiAll public class ExtendablePropertyManager extends PropertyManager
Modifier and Type | Field and Description |
---|---|
protected boolean |
mRemovable
Some property managers by diagram should be fixed and not allowed to be removed.
|
IS_UNIQUE, mSupport, OWN_PROPERTY_ADDED, OWN_PROPERTY_REMOVED
Constructor and Description |
---|
ExtendablePropertyManager()
Construct ExtendablePropertyManager
|
ExtendablePropertyManager(boolean extendableByDiagram,
boolean extendableByStereotype)
Construct ExtendablePropertyManager with given arguments.
|
ExtendablePropertyManager(PropertyManager parentPropertyManager,
java.lang.String name,
java.util.List<Property> properties)
Construct ExtendablePropertyManager with the given argument.
|
ExtendablePropertyManager(java.lang.String name,
java.util.List<Property> properties)
Construct ExtendablePropertyManager with given arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(PropertyVisitor visitor)
Accepts the given visitor.
|
boolean |
elementIsAllowed(DiagramType diagramType)
Checks If element is allowed by diagram type.
|
java.lang.String |
getClassType()
Returns property class type.
|
IProject |
getDefinedIn() |
java.lang.Class[] |
getSymbolType()
Get Symbol type.
|
boolean |
isExtendableByDiagram()
Tests If ExtendablePropertyManager is ExtendableByDiagram.
|
boolean |
isExtendableByStereotype()
Tests If ExtendablePropertyManager is ExtendableByStereotype.
|
boolean |
isRemovable()
Tests Manager is removable.
|
PropertyManager |
makeCopy()
Make copy of property.
|
void |
setDefinedIn(IProject definedIn)
Set project where this module is read from.
|
void |
setExtendableByDiagram(boolean extendableByDiagram)
Sets this manager extendable by diagram.
|
void |
setExtendableByStereotype(boolean extendableByStereotype)
Sets this manager extendable by stereotype.
|
void |
setRemovable(boolean removable)
Set Removable flag.
|
void |
setSymbolType(java.lang.Class symbolType)
Set symbol type.
|
void |
setSymbolType(java.lang.Class[] symbolType)
Set symbol type.
|
addProperties, addProperty, addPropertyChangeListener, append, append, append, append, apply, apply, applyValues, clone, cloneProperties, distinct, distinct, equalsTo, equalsWithValues, generateDefaultDescriptionID, generateNullDescriptionID, getID, getName, getOrderedProperties, getOwnProperties, getParentPropertyManager, getProperties, getProperty, getPropertyByName, getStyle, hideParentProperty, isFrozen, isHiddenParentProperty, isTheSame, 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
protected boolean mRemovable
public ExtendablePropertyManager()
public ExtendablePropertyManager(PropertyManager parentPropertyManager, java.lang.String name, java.util.List<Property> properties)
parentPropertyManager
- Parent of this Property managername
- ExtendablePropertyManager 's name.properties
- List of properties.public ExtendablePropertyManager(java.lang.String name, java.util.List<Property> properties)
name
- Property manager name.properties
- List of property.public ExtendablePropertyManager(boolean extendableByDiagram, boolean extendableByStereotype)
extendableByDiagram
- extendable by diagramextendableByStereotype
- extendable by stereotypepublic boolean isExtendableByDiagram()
public void setExtendableByDiagram(boolean extendableByDiagram)
extendableByDiagram
- valuepublic boolean isExtendableByStereotype()
public void setExtendableByStereotype(boolean extendableByStereotype)
extendableByStereotype
- valuepublic void accept(PropertyVisitor visitor) throws java.lang.Exception
PropertyManager
accept
in interface PropertyVisitorAcceptor
accept
in class PropertyManager
visitor
- the PropertyVisitor.java.lang.Exception
PropertyManager.accept(com.nomagic.magicdraw.properties.PropertyVisitor)
public java.lang.String getClassType()
PropertyManager
getClassType
in interface PropertyVisitorAcceptor
getClassType
in class PropertyManager
PropertyVisitorAcceptor.getClassType()
public void setSymbolType(java.lang.Class symbolType)
symbolType
- symbol typepublic void setSymbolType(java.lang.Class[] symbolType)
symbolType
- symbol typespublic java.lang.Class[] getSymbolType()
public boolean isRemovable()
public void setRemovable(boolean removable)
removable
- true if manager can be removed using GUI.public boolean elementIsAllowed(DiagramType diagramType)
diagramType
- The given diagram type.public PropertyManager makeCopy()
PropertyManager
makeCopy
in class PropertyManager
@CheckForNull public IProject getDefinedIn()
public void setDefinedIn(@CheckForNull IProject definedIn)
definedIn
- project where module is defined.