Metadata Class

An abstract base class that represents a custom metadata component.

Namespace

Metadata

Usage

You can’t create instances of this abstract class. Instead, create an instance of a specific custom metadata component class that derives from Metadata.Metadata, such as Metadata.CustomMetadata. For more information, see Metadata in the Metadata API Developer Guide.

Metadata Properties

The following are properties for Metadata.

  • fullName
    The full name of the custom metadata, which can include the namespace, type, and component name.

fullName

The full name of the custom metadata, which can include the namespace, type, and component name.

Signature

public String fullName {get; set;}

Property Value

Type: String

The format of the full name can include the namespace, metadata type, and metadata component name. If you’re updating components in a namespace, you also need to qualify the namespace for the component in the full name. For example, the full name for a custom metadata "MDType1__mdt" component named "Component1" that is contained in the "myPackage" namespace is "myPackage__MDType1__mdt.myPackage__Component1". For more information on full name formats for different metadata types, see reference documentation on the metadata types in the Metadata API Developer Guide.

Metadata Methods

The following are methods for Metadata.

  • clone()
    Makes a duplicate copy of the Metadata.Metadata.

clone()

Makes a duplicate copy of the Metadata.Metadata.

Signature

public Object clone()

Return Value

Type: Object