M - the generic type of the accepted MetadataTypesT - the generic type of the produced valuespublic interface ParsingDelegate<M extends org.mule.metadata.api.model.MetadataType,T>
M and produce a value of type
T.
To know if this delegate is suitable to parse a given entity, call the accepts(MetadataType) method. If it returns
true, then you can use the #parse(String, MetadataType, DslSyntaxResolver) to obtain a value (do not call this method
if the instance didn't accept the type).
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(M metadataType)
Verifies that
this instance is capable of handling a specific type. |
T |
parse(String key,
M metadataType,
org.mule.runtime.extension.api.dsl.syntax.DslElementSyntax elementDsl)
Performs the parsing and returns a value.
|
boolean accepts(M metadataType)
this instance is capable of handling a specific type.metadataType - a MetadataType#parse(String, MetadataType, DslSyntaxResolver) or notT parse(String key, M metadataType, org.mule.runtime.extension.api.dsl.syntax.DslElementSyntax elementDsl)
This method should only be invoked if accepts(MetadataType) returns true for the same metadataType
key - the parsed entity keymetadataType - a MetadataTypeelementDsl - the DslElementSyntax of the parsed elementCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.