matlab.metadata.Namespace Class
Namespace: matlab.metadata
Superclasses: matlab.metadata.MetaData
Description
The matlab.metadata.Namespace
class contains information about MATLAB® namespaces. All properties are read-only.
Namespaces can contain classes, functions, and contained namespaces (referred to as inner namespaces). A namespace can also itself be contained by an outer namespace.
The matlab.metadata.Namespace
class is a handle
class.
Class Attributes
Sealed | true |
Abstract | true |
RestrictsSubclassing | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
You cannot instantiate a matlab.metadata.Namespace
object directly. Obtain
a matlab.metadata.Namespace
object from the
matlab.metadata.Class
Namespace
property, which contains a
matlab.metadata.Namespace
object, or an empty object if the class is not in a
namespace.
Properties
Methods
Examples
Find Names of Classes in Namespace
Use the matlab.metadata.Namespace.fromName
method to
find the names of the classes contained in the matlab.mixin
namespace.
Access the matlab.metadata.Class
objects in the
ClassList
property to display a list of the class names.
disp(string({matlab.metadata.Namespace.fromName("matlab.mixin").ClassList.Name})')
"matlab.mixin.Heterogeneous" "matlab.mixin.Copyable" "matlab.mixin.SetGet" "matlab.mixin.SetGetExactNames" "matlab.mixin.CustomDisplay" "matlab.mixin.CustomElementSerialization" "matlab.mixin.CustomArraySerialization" "matlab.mixin.CustomCompactDisplayProvider" "matlab.mixin.Scalar"