public final class JavaStereotypeModelParserUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.mule.sdk.api.stereotype.StereotypeDefinition |
asDefinition(org.mule.runtime.api.meta.model.stereotype.StereotypeModel model)
Translates the given
model into a StereotypeDefinition |
static List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> |
getAllowedStereotypes(WithAnnotations element,
StereotypeModelFactory factory)
Returns The element's allowed stereotypes.
|
static List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> |
getAllowedStereotypes(WithAnnotations element,
WithAnnotations fallbackElement,
StereotypeModelFactory factory)
Returns The element's allowed stereotypes.
|
static boolean |
isValidator(WithAnnotations element) |
static Optional<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> |
resolveStereotype(WithAnnotations annotatedElement,
String elementType,
String elementName,
StereotypeModelFactory factory)
Returns the
annotatedElement StereotypeModel if one is defined |
public static boolean isValidator(WithAnnotations element)
element - an elementelement is a validator or notpublic static Optional<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> resolveStereotype(WithAnnotations annotatedElement, String elementType, String elementName, StereotypeModelFactory factory)
annotatedElement StereotypeModel if one is definedannotatedElement - an elementelementType - the type of elementelementName - the name of the elementfactory - the factory used to create the stereotypeStereotypeModel if one is definedpublic static List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> getAllowedStereotypes(WithAnnotations element, WithAnnotations fallbackElement, StereotypeModelFactory factory)
fallbackElement is tested instead.element - an elementfallbackElement - the fallback elementfactory - the factory used to create the stereotypeList of StereotypeModel. Might be empty but will never be nullpublic static List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> getAllowedStereotypes(WithAnnotations element, StereotypeModelFactory factory)
fallbackElement is tested instead.element - an elementfactory - the factory used to create the stereotypeList of StereotypeModel. Might be empty but will never be nullpublic static org.mule.sdk.api.stereotype.StereotypeDefinition asDefinition(org.mule.runtime.api.meta.model.stereotype.StereotypeModel model)
model into a StereotypeDefinitionmodel - a StereotypeModelStereotypeDefinitionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.