public final class DefaultTypeCatalog extends Object implements TypeCatalog
TypeCatalog| Constructor and Description |
|---|
DefaultTypeCatalog(Set<ExtensionModel> extensions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBaseType(org.mule.metadata.api.model.ObjectType type)
Type comparison will be performed first by
typeId in the context of subTypes mapping. |
Collection<org.mule.metadata.api.model.ObjectType> |
getAllBaseTypes() |
Collection<org.mule.metadata.api.model.ObjectType> |
getAllSubTypes() |
Optional<String> |
getDeclaringExtension(String typeId) |
Collection<org.mule.metadata.api.model.ObjectType> |
getExtensionTypes(String extensionName) |
Set<org.mule.metadata.api.model.ObjectType> |
getSubTypes(org.mule.metadata.api.model.ObjectType type)
|
Set<org.mule.metadata.api.model.ObjectType> |
getSuperTypes(org.mule.metadata.api.model.ObjectType type)
Returns a
Set with all the declared ObjectType that are considered super
types from the given ObjectType type. |
Optional<org.mule.metadata.api.model.ObjectType> |
getType(String typeId) |
Collection<org.mule.metadata.api.model.ObjectType> |
getTypes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultpublic DefaultTypeCatalog(Set<ExtensionModel> extensions)
public Optional<org.mule.metadata.api.model.ObjectType> getType(String typeId)
getType in interface TypeCatalogObjectType with the given typeId
if one is present in this TypeCatalog, or Optional.empty()
otherwise.public Collection<org.mule.metadata.api.model.ObjectType> getTypes()
getTypes in interface TypeCatalogSet with all the ObjectType defined
in this TypeCatalogpublic Collection<org.mule.metadata.api.model.ObjectType> getExtensionTypes(String extensionName)
getExtensionTypes in interface TypeCatalogCollection with all the types declared by the extension with name extensionNamepublic Optional<String> getDeclaringExtension(String typeId)
getDeclaringExtension in interface TypeCatalogOptional with the extension name that contributed with this given typepublic Set<org.mule.metadata.api.model.ObjectType> getSubTypes(org.mule.metadata.api.model.ObjectType type)
TypeCatalogSet with all the declared ObjectType subtypes
for the indicated ObjectType type.
Lookup will be performed first by typeId,
defaulting to type comparison if no typeId was found
getSubTypes in interface TypeCatalogtype - the ObjectType for which to retrieve its declared subTypesSet with all the declared subtypes for the indicated ObjectTypepublic Set<org.mule.metadata.api.model.ObjectType> getSuperTypes(org.mule.metadata.api.model.ObjectType type)
TypeCatalogSet with all the declared ObjectType that are considered super
types from the given ObjectType type.
The lookup will be performed by looking through all the mappings that contains the given
type as subtype in this TypeCatalog and storing the base type and
again looking the super type of the found base type.
getSuperTypes in interface TypeCatalogtype - ObjectType to look for their super typesSet with all the declared supertypes for the indicated ObjectTypepublic Collection<org.mule.metadata.api.model.ObjectType> getAllBaseTypes()
getAllBaseTypes in interface TypeCatalogCollection with all the types that are extended by another typepublic Collection<org.mule.metadata.api.model.ObjectType> getAllSubTypes()
getAllSubTypes in interface TypeCatalogCollection with all the types which extend another type, in no particular orderpublic boolean containsBaseType(org.mule.metadata.api.model.ObjectType type)
TypeCatalogtypeId in the context of subTypes mapping.
If a typeId is available for the given type,
the lookup will be performed by TypeIdAnnotation.getValue() disregarding MetadataType equality in its
full extent, which includes type generics and interfaces implementations, and
defaulting to MetadataType#equals comparison if no typeId was foundcontainsBaseType in interface TypeCatalogtype - the MetadataType for which to retrieve its declared subTypestypeCopyright © 2017 MuleSoft, Inc.. All rights reserved.