java.lang.Object
org.mule.sdk.api.metadata.NullMetadataResolver
- All Implemented Interfaces:
org.mule.runtime.api.metadata.resolving.NamedTypeResolver,AttributesTypeResolver<Object>,InputTypeResolver<Object>,NamedTypeResolver,OutputTypeResolver<Object>,TypeKeysResolver
@MinMuleVersion("4.5.0")
public final class NullMetadataResolver
extends Object
implements InputTypeResolver<Object>, TypeKeysResolver, OutputTypeResolver<Object>, 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.metadata.api.model.MetadataTypegetAttributesType(MetadataContext context, Object key) Null implementation ofAttributesTypeResolver, used when no implementation is provided by the connector developer.This is the name of the TypeResolver Category, that relates a givenTypeKeysResolverwith theinputandoutputtype resolvers.org.mule.metadata.api.model.MetadataTypegetInputMetadata(MetadataContext context, Object key) Null implementation ofInputTypeResolver, used when no implementation is provided by the connector developer.getKeys(MetadataContext context) Null implementation ofTypeKeysResolver, used when no implementation is provided by the connector developer.org.mule.metadata.api.model.MetadataTypegetOutputType(MetadataContext context, Object key) Null implementation ofOutputTypeResolver, used when no implementation is provided by the connector developer.This is the name of the TypeResolver.
-
Field Details
-
NULL_CATEGORY_NAME
- See Also:
-
NULL_RESOLVER_NAME
- See Also:
-
-
Constructor Details
-
NullMetadataResolver
public NullMetadataResolver()
-
-
Method Details
-
getResolverName
This is the name of the TypeResolver. It should not be repeated amongInputTypeResolverandOutputTypeResolverwhich are used together.- Specified by:
getResolverNamein interfaceAttributesTypeResolver<Object>- Specified by:
getResolverNamein interfaceInputTypeResolver<Object>- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.NamedTypeResolver- Specified by:
getResolverNamein interfaceNamedTypeResolver- Specified by:
getResolverNamein interfaceOutputTypeResolver<Object>- Specified by:
getResolverNamein interfaceTypeKeysResolver- Returns:
- name of the resolver
-
getCategoryName
This is the name of the TypeResolver Category, that relates a givenTypeKeysResolverwith theinputandoutputtype resolvers. For any given component, all theinputandoutputresolvers must belong to the same Category, that is, have the samecategoryName- Specified by:
getCategoryNamein interfaceorg.mule.runtime.api.metadata.resolving.NamedTypeResolver- Specified by:
getCategoryNamein interfaceNamedTypeResolver- Returns:
- name of the category
-
getKeys
public Set<MetadataKey> getKeys(MetadataContext context) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofTypeKeysResolver, used when no implementation is provided by the connector developer. Represents the absence of a customTypeKeysResolver, returning an empty list ofMetadataKey.- Specified by:
getKeysin interfaceTypeKeysResolver- Parameters:
context-MetadataContextof the MetaData resolution- Returns:
Collections.emptyList()- Throws:
org.mule.runtime.api.metadata.MetadataResolvingException
-
getInputMetadata
public org.mule.metadata.api.model.MetadataType getInputMetadata(MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofInputTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a customInputTypeResolver, returning aVoidTypeinstead of resolving a validMetadataType- Specified by:
getInputMetadatain interfaceInputTypeResolver<Object>- Parameters:
context-MetadataContextof the MetaData resolutionkey-MetadataKeyof 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(MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofOutputTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a customOutputTypeResolver, returning aVoidTypeinstead of resolving a dynamicMetadataTypefor the component's output.- Specified by:
getOutputTypein interfaceOutputTypeResolver<Object>- Parameters:
context-MetadataContextof the MetaData resolutionkey-MetadataKeyof 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(MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofAttributesTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a customAttributesTypeResolver, returning aVoidTypeinstead of resolving a dynamicMetadataTypefor the component's output attributes.- Specified by:
getAttributesTypein interfaceAttributesTypeResolver<Object>- Parameters:
context-MetadataContextof the MetaData resolutionkey-MetadataKeyof the type which's structure has to be resolved- Returns:
- a
VoidType - Throws:
org.mule.runtime.api.metadata.MetadataResolvingException
-