public class ExtensionParsingContext extends Object
ExtensionModel definition, to keep track of global data accross all
the different definition parsers| Constructor and Description |
|---|
ExtensionParsingContext(org.mule.runtime.api.meta.model.ExtensionModel extensionModel) |
| Modifier and Type | Method and Description |
|---|---|
List<org.mule.metadata.api.model.MetadataType> |
getAllBaseTypes() |
List<org.mule.metadata.api.model.MetadataType> |
getAllSubTypes() |
Collection<org.mule.metadata.api.model.ObjectType> |
getSubTypes(org.mule.metadata.api.model.ObjectType type)
Returns a
Collection with all the declared MetadataType subtypes for the indicated MetadataType
type. |
boolean |
isRegistered(String name,
String namespace) |
boolean |
registerObjectType(String name,
String namespace,
org.mule.metadata.api.model.ObjectType type)
Register an
ObjectType to indicate it has already being parsed for the given name and namespace |
public ExtensionParsingContext(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
public boolean registerObjectType(String name, String namespace, org.mule.metadata.api.model.ObjectType type)
ObjectType to indicate it has already being parsed for the given name and namespacename - the name associated to the parsed typenamespace - the namespace associated to the parsed typetype - the parsed typetrue if the object was registered, false if a previous definition existedpublic boolean isRegistered(String name, String namespace)
name - the name of the elementnamespace - the namespace of the elementtrue if an ObjectType with the given name and namespace was registered in the current
contextpublic Collection<org.mule.metadata.api.model.ObjectType> getSubTypes(org.mule.metadata.api.model.ObjectType type)
Collection with all the declared MetadataType subtypes for the indicated MetadataType
type.
Lookup will be performed first by typeId, defaulting to type comparison if no
typeId was found
type - the MetadataType for which to retrieve its declared subTypesCollection with all the declared subtypes for the indicated MetadataTypepublic List<org.mule.metadata.api.model.MetadataType> getAllBaseTypes()
List with all the types that are extended by another typeCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.