Class DefaultMetadataKey

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

@MinMuleVersion("4.5.0") public final class DefaultMetadataKey extends Object implements MetadataKey
Default immutable implementation for the MetadataKey.
Since:
1.0
  • Constructor Details

    • DefaultMetadataKey

      protected DefaultMetadataKey(String id, String displayName, Set<org.mule.runtime.api.metadata.MetadataProperty> properties, Set<MetadataKey> childs, String partName)
  • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object