removeProperty - Remove property from stereotype - MATLAB (original) (raw)
Remove property from stereotype
Syntax
[removeProperty(stereotype,propertyName)](#d126e151362)
Description
removeProperty([stereotype](#mw%5Febb8626f-8cfd-4b20-a87d-332e98e8122c%5Fsep%5Fmw%5F7965c94c-9a05-44d8-b9cb-6969fea14317),[propertyName](#mw%5F14ea083e-452c-472d-889f-78ef8bc0bdf8))
removes a property from the stereotype.
Examples
Add a component stereotype and add a VoltageRating
property with value 5
. Then remove the property.
profile = systemcomposer.profile.Profile.createProfile("myProfile"); stereotype = addStereotype(profile,"electricalComponent",AppliesTo="Component") property = addProperty(stereotype,"VoltageRating",DefaultValue="5"); removeProperty(stereotype,"VoltageRating")
Input Arguments
Stereotype, specified as a systemcomposer.profile.Stereotype object.
Name of property to be removed, specified as a character vector or string.
Data Types: char
| string
More About
Term | Definition | Application | More Information |
---|---|---|---|
Stereotype | Stereotypes provide a mechanism to extend the core language elements and add domain-specific metadata. | Apply stereotypes to core element types. An element can have multiple stereotypes. Stereotypes allow you to style different elements. Stereotypes provide elements with a common set of properties, such as mass, cost, and power. | Define Stereotypes and Perform Analysis for Mobile RobotExtend Architectural Design Using StereotypesChange Stereotypes Based on Stereotype Hierarchy in Portable Blender Architecture |
Property | A property is a field in a stereotype. You can specify property values for each element to which the stereotype is applied. | Use properties to store quantitative characteristics, such as weight or speed, that are associated with a model element. Properties can also be descriptive or represent a status. You can view and edit the properties of each element in the architecture model using the Property Inspector. For more information, see Use Property Inspector in System Composer. | Set PropertiesAdd Properties with StereotypesSet Properties for Analysis |
Profile | A profile is a package of stereotypes. | You can use profiles to create a domain of specialized element types. Author profiles and apply profiles to a model using the Profile Editor. You can store stereotypes for a project in one or several profiles. When you save profiles, they are stored in XML files. | Extend System Composer Language Elements Using ProfilesChange Stereotype Order Using Manage Profiles Tool |
Version History
Introduced in R2019a
See Also
Tools
Blocks
Objects
- systemcomposer.profile.Profile | systemcomposer.profile.Stereotype | systemcomposer.profile.Property
Functions
- systemcomposer.profile.Profile.createProfile | systemcomposer.loadProfile | applyProfile | removeProfile | renameProfile | systemcomposer.profile.editor | systemcomposer.profile.Profile.find | systemcomposer.profile.Profile.load | save | open | close | systemcomposer.profile.Profile.closeAll | systemcomposer.profile.Stereotype.find | getDefaultStereotype | setDefaultStereotype | getDefaultElementStereotype | setDefaultElementStereotype | addStereotype | removeStereotype | getStereotype | applyStereotype | batchApplyStereotype | getStereotypes | changeStereotype | removeStereotype | hasStereotype | addProperty | hasProperty | setProperty | getProperty | getPropertyValue | getEvaluatedPropertyValue | getStereotypeProperties | applyStereotypeOrder | getStereotypeNamesByOrder | increaseStereotypeOrder | decreaseStereotypeOrder