Class NullMetadataResolver

java.lang.Object
org.mule.runtime.extension.api.metadata.NullMetadataResolver
All Implemented Interfaces:
org.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>, org.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>, org.mule.runtime.api.metadata.resolving.NamedTypeResolver, org.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>, org.mule.runtime.api.metadata.resolving.TypeKeysResolver

@MinMuleVersion("4.1") public final class NullMetadataResolver extends Object implements org.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>, org.mule.runtime.api.metadata.resolving.TypeKeysResolver, org.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>, org.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>
Null implementation of InputTypeResolver, AttributesTypeResolver and TypeKeysResolver, used to represent the absence of any of them when required.
Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.mule.metadata.api.model.MetadataType
    getAttributesType(org.mule.runtime.api.metadata.MetadataContext context, Object key)
    Null implementation of AttributesTypeResolver, used when no implementation is provided by the connector developer.
    org.mule.metadata.api.model.MetadataType
    getInputMetadata(org.mule.runtime.api.metadata.MetadataContext context, Object key)
    Null implementation of InputTypeResolver, used when no implementation is provided by the connector developer.
    Set<org.mule.runtime.api.metadata.MetadataKey>
    getKeys(org.mule.runtime.api.metadata.MetadataContext context)
    Null implementation of TypeKeysResolver, used when no implementation is provided by the connector developer.
    org.mule.metadata.api.model.MetadataType
    getOutputType(org.mule.runtime.api.metadata.MetadataContext context, Object key)
    Null implementation of OutputTypeResolver, used when no implementation is provided by the connector developer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • NullMetadataResolver

      public NullMetadataResolver()
  • Method Details

    • getResolverName

      public String getResolverName()
      Specified by:
      getResolverName in interface org.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>
      Specified by:
      getResolverName in interface org.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>
      Specified by:
      getResolverName in interface org.mule.runtime.api.metadata.resolving.NamedTypeResolver
      Specified by:
      getResolverName in interface org.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>
      Specified by:
      getResolverName in interface org.mule.runtime.api.metadata.resolving.TypeKeysResolver
    • getCategoryName

      public String getCategoryName()
      Specified by:
      getCategoryName in interface org.mule.runtime.api.metadata.resolving.NamedTypeResolver
    • getKeys

      public Set<org.mule.runtime.api.metadata.MetadataKey> getKeys(org.mule.runtime.api.metadata.MetadataContext context) throws org.mule.runtime.api.metadata.MetadataResolvingException
      Null implementation of TypeKeysResolver, used when no implementation is provided by the connector developer. Represents the absence of a custom TypeKeysResolver, returning an empty list of MetadataKey.
      Specified by:
      getKeys in interface org.mule.runtime.api.metadata.resolving.TypeKeysResolver
      Parameters:
      context - MetadataContext of the MetaData resolution
      Returns:
      Collections.emptyList()
      Throws:
      org.mule.runtime.api.metadata.MetadataResolvingException
    • getInputMetadata

      public org.mule.metadata.api.model.MetadataType getInputMetadata(org.mule.runtime.api.metadata.MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException
      Null implementation of InputTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a custom InputTypeResolver, returning a VoidType instead of resolving a valid MetadataType
      Specified by:
      getInputMetadata in interface org.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>
      Parameters:
      context - MetadataContext of the MetaData resolution
      key - MetadataKey of the type which's structure has to be resolved
      Returns:
      a VoidType
      Throws:
      org.mule.runtime.api.metadata.MetadataResolvingException
    • getOutputType

      public org.mule.metadata.api.model.MetadataType getOutputType(org.mule.runtime.api.metadata.MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException
      Null implementation of OutputTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a custom OutputTypeResolver, returning a VoidType instead of resolving a dynamic MetadataType for the component's output.
      Specified by:
      getOutputType in interface org.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>
      Parameters:
      context - MetadataContext of the MetaData resolution
      key - MetadataKey of the type which's structure has to be resolved
      Returns:
      a VoidType
      Throws:
      org.mule.runtime.api.metadata.MetadataResolvingException
    • getAttributesType

      public org.mule.metadata.api.model.MetadataType getAttributesType(org.mule.runtime.api.metadata.MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException
      Null implementation of AttributesTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a custom AttributesTypeResolver, returning a VoidType instead of resolving a dynamic MetadataType for the component's output attributes.
      Specified by:
      getAttributesType in interface org.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>
      Parameters:
      context - MetadataContext of the MetaData resolution
      key - MetadataKey of the type which's structure has to be resolved
      Returns:
      a VoidType
      Throws:
      org.mule.runtime.api.metadata.MetadataResolvingException