public class MediaTypeValueResolverParsingDelegate extends Object implements ValueResolverParsingDelegate
ValueResolverParsingDelegate for parsing instances of MediaType| Constructor and Description |
|---|
MediaTypeValueResolverParsingDelegate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(org.mule.metadata.api.model.MetadataType metadataType)
Verifies that
this instance is capable of handling a specific type. |
ValueResolver<Object> |
parse(String key,
org.mule.metadata.api.model.MetadataType metadataType,
org.mule.runtime.extension.api.dsl.syntax.DslElementSyntax elementDsl)
Performs the parsing and returns a value.
|
public MediaTypeValueResolverParsingDelegate()
public boolean accepts(org.mule.metadata.api.model.MetadataType metadataType)
ParsingDelegatethis instance is capable of handling a specific type.accepts in interface ParsingDelegate<org.mule.metadata.api.model.MetadataType,ValueResolver<Object>>metadataType - a MetadataType#parse(String, MetadataType, DslSyntaxResolver) or notpublic ValueResolver<Object> parse(String key, org.mule.metadata.api.model.MetadataType metadataType, org.mule.runtime.extension.api.dsl.syntax.DslElementSyntax elementDsl)
ParsingDelegate
This method should only be invoked if ParsingDelegate.accepts(MetadataType) returns true for the same metadataType
parse in interface ParsingDelegate<org.mule.metadata.api.model.MetadataType,ValueResolver<Object>>key - the parsed entity keymetadataType - a MetadataTypeelementDsl - the DslElementSyntax of the parsed elementCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.