Class MetadataKeyPartModelProperty
java.lang.Object
org.mule.runtime.extension.api.property.MetadataKeyPartModelProperty
- All Implemented Interfaces:
Serializable,org.mule.runtime.api.meta.model.ModelProperty,org.mule.runtime.api.meta.NamedObject
public final class MetadataKeyPartModelProperty
extends Object
implements org.mule.runtime.api.meta.model.ModelProperty
A
ModelProperty for ParameterModel of SourceModel and OperationModel parameters that indicates
that the is a part of a MetadataKey.- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataKeyPartModelProperty(int order) Creates a new instance.MetadataKeyPartModelProperty(int order, boolean providedByKeyResolver) Creates a new instance.MetadataKeyPartModelProperty(int order, boolean providedByKeyResolver, org.mule.runtime.api.meta.ExpressionSupport expressionSupport) Creates a new instance. -
Method Summary
-
Constructor Details
-
MetadataKeyPartModelProperty
public MetadataKeyPartModelProperty(int order) Creates a new instance.- Parameters:
order- the order of the parameter in theMetadataKey;
-
MetadataKeyPartModelProperty
public MetadataKeyPartModelProperty(int order, boolean providedByKeyResolver) Creates a new instance.- Parameters:
order- the order of the parameter in theMetadataKey;providedByKeyResolver- whether or not this part will be provided by the keys resolver associated to the container of this part
-
MetadataKeyPartModelProperty
@Experimental public MetadataKeyPartModelProperty(int order, boolean providedByKeyResolver, org.mule.runtime.api.meta.ExpressionSupport expressionSupport) Creates a new instance.NOTE: Experimental feature. Backwards compatibility not guaranteed.
- Parameters:
order- the order of the parameter in theMetadataKey;providedByKeyResolver- whether or not this part will be provided by the keys resolver associated to the container of this partexpressionSupport- the level of support this key part has for expressions- Since:
- 1.8
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.mule.runtime.api.meta.model.ModelProperty- Specified by:
getNamein interfaceorg.mule.runtime.api.meta.NamedObject
-
isPublic
public boolean isPublic()- Specified by:
isPublicin interfaceorg.mule.runtime.api.meta.model.ModelProperty
-
getOrder
public int getOrder()The order of this parameter in theMetadataKey.- Returns:
- the order of the parameter for a composed
MetadataKey, 0 if is a simpleMetadataKey
-
isProvidedByKeyResolver
public boolean isProvidedByKeyResolver()- Returns:
- whether or not this part will be provided by the keys resolver associated to the container of this part, or if this part has no predefined values and has to be provided by the user entirely.
-
getExpressionSupport
@Experimental public org.mule.runtime.api.meta.ExpressionSupport getExpressionSupport()By default, metadata keys need to be static values. An error is thrown whenever an expression is provided.This indicates whether an eventual expression is supported/required and that it will be provided unresolved as a string for the key part value.
NOTE: Experimental feature. Backwards compatibility not guaranteed.
- Returns:
- the level of support this key part has for expressions
- Since:
- 1.8
-