public class OutputMetadataDescriptorBuilder extends Object
OutputMetadataDescriptor| Modifier and Type | Method and Description |
|---|---|
OutputMetadataDescriptor |
build() |
OutputMetadataDescriptorBuilder |
withAttributesType(MetadataResult<TypeMetadataDescriptor> attributesTypeResult)
Adds a
MetadataResult of TypeMetadataDescriptor that describes the
he output MuleMessage.getAttributes() MetadataType. |
OutputMetadataDescriptorBuilder |
withAttributesType(org.mule.metadata.api.model.MetadataType attributesType)
Describes that the output
MuleMessage.getAttributes() MetadataType
of the component will be |
OutputMetadataDescriptorBuilder |
withReturnType(MetadataResult<TypeMetadataDescriptor> returnTypeResult)
Adds a
MetadataResult of TypeMetadataDescriptor that describes the
return type of the component. |
OutputMetadataDescriptorBuilder |
withReturnType(org.mule.metadata.api.model.MetadataType returnType)
Describes that the return type of the component will be of
MetadataType |
public OutputMetadataDescriptorBuilder withReturnType(MetadataResult<TypeMetadataDescriptor> returnTypeResult)
MetadataResult of TypeMetadataDescriptor that describes the
return type of the component.returnTypeResult - a MetadataResult of TypeMetadataDescriptor describing the component output return typeTypeMetadataDescriptor for return typepublic OutputMetadataDescriptorBuilder withAttributesType(MetadataResult<TypeMetadataDescriptor> attributesTypeResult)
MetadataResult of TypeMetadataDescriptor that describes the
he output MuleMessage.getAttributes() MetadataType.attributesTypeResult - a MetadataResult of TypeMetadataDescriptor describing the component output attributes type.TypeMetadataDescriptor for message attributespublic OutputMetadataDescriptorBuilder withReturnType(org.mule.metadata.api.model.MetadataType returnType)
MetadataType returnType - of the component returnTypeResult outputTypeMetadataDescriptor for return typepublic OutputMetadataDescriptorBuilder withAttributesType(org.mule.metadata.api.model.MetadataType attributesType)
MuleMessage.getAttributes() MetadataType
of the component will be attributesType - of the component output attributesTypeMetadataDescriptor for message attributespublic OutputMetadataDescriptor build()
OutputMetadataDescriptor instance with the metadata description for the output of
a MetadataAware componentIllegalArgumentException - if the MuleMessage.getPayload() or MuleMessage.getAttributes() were
not set during buildingCopyright © 2016 MuleSoft, Inc.. All rights reserved.