public class FixedTypeParsingDelegate extends Object implements ObjectParsingDelegate
ObjectParsingDelegate which only parses ObjectType which represent one specific java type.| Constructor and Description |
|---|
FixedTypeParsingDelegate(Class<?> type)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(org.mule.metadata.api.model.ObjectType objectType)
Verifies that
this instance is capable of handling a specific type. |
org.mule.runtime.dsl.api.component.AttributeDefinition.Builder |
parse(String name,
org.mule.metadata.api.model.ObjectType objectType,
org.mule.runtime.extension.api.dsl.syntax.DslElementSyntax elementDsl)
Performs the parsing and returns a value.
|
public FixedTypeParsingDelegate(Class<?> type)
type - the type that this delegate acceptspublic boolean accepts(org.mule.metadata.api.model.ObjectType objectType)
ParsingDelegatethis instance is capable of handling a specific type.accepts in interface ParsingDelegate<org.mule.metadata.api.model.ObjectType,org.mule.runtime.dsl.api.component.AttributeDefinition.Builder>objectType - an ObjectTypetrue if the objectType represents the typepublic org.mule.runtime.dsl.api.component.AttributeDefinition.Builder parse(String name, org.mule.metadata.api.model.ObjectType objectType, org.mule.runtime.extension.api.dsl.syntax.DslElementSyntax elementDsl)
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.ObjectType,org.mule.runtime.dsl.api.component.AttributeDefinition.Builder>name - the parsed entity keyobjectType - a MetadataTypeelementDsl - the DslElementSyntax of the parsed elementCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.