matlab.metadata.Property Class
Namespace: matlab.metadata
Superclasses: matlab.metadata.MetaData
Description
The matlab.metadata.Property
class provides information about the
properties of MATLAB® classes. Properties of the matlab.metadata.Property
class contain
the values of property attributes and other information that is specified syntactically in the
class definition. All properties are read-only.
The matlab.metadata.Property
class is a handle
class.
Class Attributes
Abstract | true |
ConstructOnLoad | true |
For information on class attributes, see Class Attributes.
Creation
You cannot instantiate a matlab.metadata.Property
object directly. Obtain a
matlab.metadata.Property
object from the PropertyList
property of matlab.metadata.Class
, which contains an array of
matlab.metadata.Property
objects, one for each class property. For example,
replace ClassName
with the name of the class whose properties you
want to query:
mco = ?ClassName; plist = mco.PropertyList; mp = plist(1); % matlab.metadata.Property for first property in list
Use the metaclass
function to obtain a
matlab.metadata.Class
object from a class instance:
mco = metaclass(obj);
Properties
Events
Event Name | Trigger | Event Data | Event Attributes |
---|---|---|---|
PreGet | Event occurs just before the property value is queried. | event.PropertyEvent |
|
PostGet | Event occurs just after the property value has been queried. | event.PropertyEvent |
|
PreSet | Event occurs just before the property value is changed. | event.PropertyEvent |
|
PostSet | Event occurs just after the property value has been changed. | event.PropertyEvent |
|