public final class TypeUtils extends Object
MetadataType model| Modifier and Type | Method and Description |
|---|---|
static boolean |
acceptsReferences(org.mule.metadata.api.model.MetadataType metadataType) |
static Set<ModelProperty> |
deriveModelProperties(org.mule.metadata.api.model.MetadataType metadataType) |
static String |
getAlias(Field field)
Checks the given
field for the Alias annotation. |
static ExpressionSupport |
getExpressionSupport(org.mule.metadata.api.model.MetadataType metadataType)
Checks the given
metadataType for the ExpressionSupportAnnotation. |
static Collection<Field> |
getParameterFields(Class<?> type)
|
public static Collection<Field> getParameterFields(Class<?> type)
Fields in the given extensionType which are annotated
with Parameter but also do not have the Ignore one.
The introspection also includes parent classes.
type - the class to introspect.Collection of fields. May be empty but will never be nullpublic static String getAlias(Field field)
field for the Alias annotation. If present, Alias.value()
is returned. Otherwise, Field.getName() is returned.field - a Fieldpublic static ExpressionSupport getExpressionSupport(org.mule.metadata.api.model.MetadataType metadataType)
metadataType for the ExpressionSupportAnnotation.
If present, the ExpressionSupportAnnotation.getExpressionSupport()
value is returned. Otherwise, it defaults to ExpressionSupport.SUPPORTED
metadataType - a MetadataTypeExpressionSupportpublic static Set<ModelProperty> deriveModelProperties(org.mule.metadata.api.model.MetadataType metadataType)
public static boolean acceptsReferences(org.mule.metadata.api.model.MetadataType metadataType)
Copyright © 2016 MuleSoft, Inc.. All rights reserved.