Class NullMetadataKey

java.lang.Object
org.mule.sdk.api.metadata.NullMetadataKey
All Implemented Interfaces:
org.mule.runtime.api.metadata.MetadataEnrichableModel, MetadataKey

@MinMuleVersion("4.5.0") public final class NullMetadataKey extends Object implements MetadataKey
Null MetadataKey implementation that represents the absence of a key
Since:
1.0
  • Field Details

  • Constructor Details

    • NullMetadataKey

      public NullMetadataKey()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface MetadataKey
      Returns:
      identifier for the current key
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface MetadataKey
      Returns:
      human readable name to use when displaying the key
    • getChilds

      public Set<MetadataKey> getChilds()
      Specified by:
      getChilds in interface MetadataKey
      Returns:
      the child MetadataKeys that form a composed MetadataKey.
    • getPartName

      public String getPartName()
      Specified by:
      getPartName in interface MetadataKey
      Returns:
      the name of the part which this MetadataKey is from
    • getMetadataProperty

      public <T extends org.mule.runtime.api.metadata.MetadataProperty> Optional<T> getMetadataProperty(Class<T> propertyType)
      Specified by:
      getMetadataProperty in interface org.mule.runtime.api.metadata.MetadataEnrichableModel
    • getProperties

      public Set<org.mule.runtime.api.metadata.MetadataProperty> getProperties()
      Specified by:
      getProperties in interface org.mule.runtime.api.metadata.MetadataEnrichableModel