public class SubTypesMappingContainer extends Object
| Constructor and Description |
|---|
SubTypesMappingContainer(Map<org.mule.metadata.api.model.MetadataType,List<org.mule.metadata.api.model.MetadataType>> subTypesMapping) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBaseType(org.mule.metadata.api.model.MetadataType type)
|
List<org.mule.metadata.api.model.MetadataType> |
getAllBaseTypes() |
List<org.mule.metadata.api.model.MetadataType> |
getAllSubTypes() |
List<org.mule.metadata.api.model.MetadataType> |
getSubTypes(org.mule.metadata.api.model.MetadataType type)
|
List<org.mule.metadata.api.model.MetadataType> |
getSuperTypes(org.mule.metadata.api.model.MetadataType type)
Returns a
List with all the declared MetadataType that are considered super
types from the given MetadataType type. |
public List<org.mule.metadata.api.model.MetadataType> getSubTypes(org.mule.metadata.api.model.MetadataType type)
List 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 subTypesList with all the declared subtypes for the indicated MetadataTypepublic List<org.mule.metadata.api.model.MetadataType> getSuperTypes(org.mule.metadata.api.model.MetadataType type)
List with all the declared MetadataType that are considered super
types from the given MetadataType type.
The lookup will be performed by looking recursively all the mappings that contains the given
type as subtype and storing the base type and again looking the super type of the
found base type.
type - MetadataType to look for their super typesList with all the declared supertypes for the indicated MetadataTypepublic boolean containsBaseType(org.mule.metadata.api.model.MetadataType type)
List with all the declared MetadataType subtypes
for the indicated MetadataType type.
* Type comparison will be performed first by typeId 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 found
type - the MetadataType for which to retrieve its declared subTypestypepublic List<org.mule.metadata.api.model.MetadataType> getAllSubTypes()
List with all the types which extend another type, in no particular orderCopyright © 2016 MuleSoft, Inc.. All rights reserved.