public final class DefaultDslResolvingContext extends Object implements DslResolvingContext
DslResolvingContext that uses the Set of ExtensionModel to provide the
required ExtensionModels| Constructor and Description |
|---|
DefaultDslResolvingContext(Set<ExtensionModel> extensions) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ExtensionModel> |
getExtension(String name)
|
Optional<ExtensionModel> |
getExtensionForType(String typeId)
Returns an
Optional ExtensionModel that declared the given type. |
Set<ExtensionModel> |
getExtensions()
Returns a
Set containing all the ExtensionModels available in the current resolving context. |
TypeCatalog |
getTypeCatalog()
Returns a
TypeCatalog containing all the ObjectTypes available in the current resolving context. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultpublic DefaultDslResolvingContext(Set<ExtensionModel> extensions)
public Optional<ExtensionModel> getExtension(String name)
getExtension in interface DslResolvingContextname - the name of the extensions you want.Optional. It will be empty if the ExtensionModel is not found in the context.public Optional<ExtensionModel> getExtensionForType(String typeId)
Optional ExtensionModel that declared the given type.getExtensionForType in interface DslResolvingContexttypeId - that was declaredOptional. It will be empty if the ExtensionModel is not found in the context.public Set<ExtensionModel> getExtensions()
Set containing all the ExtensionModels available in the current resolving context.
Any ExtensionModel that can be found using the DslResolvingContext.getExtension(java.lang.String) method should be contained in the returned
Set
getExtensions in interface DslResolvingContextSet containing all the ExtensionModels available in the current resolving contextpublic TypeCatalog getTypeCatalog()
TypeCatalog containing all the ObjectTypes available in the current resolving context.
Any ObjectType that can be found using the ExtensionModel.getTypes() method for any of the
extensions in the context should available in the provided TypeCatalog
getTypeCatalog in interface DslResolvingContextTypeCatalog containing all the ObjectTypes available in the current resolving context.Copyright © 2024 MuleSoft, Inc.. All rights reserved.