public final class NullMetadataResolver extends Object implements InputTypeResolver<Object>, TypeKeysResolver, OutputTypeResolver<Object>, AttributesTypeResolver<Object>
InputTypeResolver
, AttributesTypeResolver
and TypeKeysResolver
,
used to represent the absence of any of them when required.Modifier and Type | Field and Description |
---|---|
static String |
NULL_CATEGORY_NAME |
static String |
NULL_RESOLVER_NAME |
Constructor and Description |
---|
NullMetadataResolver() |
Modifier and Type | Method and Description |
---|---|
MetadataType |
getAttributesType(MetadataContext context,
Object key)
Null implementation of
AttributesTypeResolver , used when no implementation is provided by the connector
developer. |
String |
getCategoryName()
This is the name of the TypeResolver Category, that relates a given
TypeKeysResolver with the input and
output type resolvers. |
MetadataType |
getInputMetadata(MetadataContext context,
Object key)
Null implementation of
InputTypeResolver , used when no implementation is provided by the connector developer. |
Set<MetadataKey> |
getKeys(MetadataContext context)
Null implementation of
TypeKeysResolver , used when no implementation is provided by the connector developer. |
MetadataType |
getOutputType(MetadataContext context,
Object key)
Null implementation of
OutputTypeResolver , used when no implementation is provided by the connector developer. |
String |
getResolverName()
This is the name of the TypeResolver.
|
public static final String NULL_CATEGORY_NAME
public static final String NULL_RESOLVER_NAME
public String getResolverName()
InputTypeResolver
and
OutputTypeResolver
which are used together.getResolverName
in interface AttributesTypeResolver<Object>
getResolverName
in interface InputTypeResolver<Object>
getResolverName
in interface NamedTypeResolver
getResolverName
in interface OutputTypeResolver<Object>
getResolverName
in interface TypeKeysResolver
public String getCategoryName()
TypeKeysResolver
with the input
and
output
type resolvers.
For any given component, all the input
and
output
resolvers must belong to the same Category,
that is, have the same categoryName
getCategoryName
in interface NamedTypeResolver
public Set<MetadataKey> getKeys(MetadataContext context) throws MetadataResolvingException
TypeKeysResolver
, used when no implementation is provided by the connector developer.
Represents the absence of a custom TypeKeysResolver
, returning an empty list of MetadataKey
.getKeys
in interface TypeKeysResolver
context
- MetadataContext
of the MetaData resolutionCollections.emptyList()
MetadataResolvingException
public MetadataType getInputMetadata(MetadataContext context, Object key) throws MetadataResolvingException
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
getInputMetadata
in interface InputTypeResolver<Object>
context
- MetadataContext
of the MetaData resolutionkey
- MetadataKey
of the type which's structure has to be resolvedVoidType
MetadataResolvingException
public MetadataType getOutputType(MetadataContext context, Object key) throws MetadataResolvingException
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.getOutputType
in interface OutputTypeResolver<Object>
context
- MetadataContext
of the MetaData resolutionkey
- MetadataKey
of the type which's structure has to be resolvedVoidType
MetadataResolvingException
public MetadataType getAttributesType(MetadataContext context, Object key) throws MetadataResolvingException
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.getAttributesType
in interface AttributesTypeResolver<Object>
context
- MetadataContext
of the MetaData resolutionkey
- MetadataKey
of the type which's structure has to be resolvedVoidType
MetadataResolvingException
Copyright © 2018. All rights reserved.