Class MdObjectDynamicTypesProvider


  • public class MdObjectDynamicTypesProvider
    extends Object
    Contains special methods and properties for working with md object dynamic types in MdContextDefInferrer
    • Constructor Detail

      • MdObjectDynamicTypesProvider

        public MdObjectDynamicTypesProvider()
    • Method Detail

      • containsDynamicObjectType

        public boolean containsDynamicObjectType​(org.eclipse.emf.ecore.EObject mdObject,
                                                 List<TypeItem> types)
        Checks that types contains produced types from mdObject
        Parameters:
        mdObject - metadata object, can't be null
        types - checking types, can't be null
        Returns:
        true if we found dynamic object types in types
      • isDynamicObjectType

        public boolean isDynamicObjectType​(org.eclipse.emf.ecore.EObject mdObject,
                                           TypeItem type)
        Checks that type is produced types from mdObject
        Parameters:
        mdObject - metadata object, can't be null
        type - checking type, can't be null
        Returns:
        true if type is dynamic object type
      • replaceDynamicObjectType

        public Property replaceDynamicObjectType​(org.eclipse.emf.ecore.EObject mdObject,
                                                 Property property)
        Replaces returned dynamic object type from property to corresponding dynamic object type of mdObject
        Parameters:
        mdObject - metadata object, can't be null
        property - processing Property, can't be null
        Returns:
        Property with actual dynamic types
      • replaceDynamicObjectType

        public Method replaceDynamicObjectType​(org.eclipse.emf.ecore.EObject mdObject,
                                               Method method)
        Replaces returned dynamic object type from method to corresponding dynamic object type of mdObject
        Parameters:
        mdObject - metadata object, can't be null
        property - processing Method, can't be null
        Returns:
        Method with actual dynamic types
      • replaceDynamicObjectTypeForCollectionElement

        public Type replaceDynamicObjectTypeForCollectionElement​(org.eclipse.emf.ecore.EObject mdObject,
                                                                 Type baseType,
                                                                 Type producedType)
        Replaces collection element type from baseType to corresponding dynamic object type of mdObject
        Parameters:
        mdObject - metadata object, can't be null
        producedType - processing Type, can't be null
        Returns:
        baseType with actual collection element dynamic types, if it's iterable
      • replaceDynamicObjectTypeForEventParameters

        public Event replaceDynamicObjectTypeForEventParameters​(org.eclipse.emf.ecore.EObject mdObject,
                                                                Event event)
        Replaces dynamic object type in event parameters to corresponding dynamic object type of mdObject
        Parameters:
        mdObject - metadata object, can't be null
        event - processing Event, can't be null
        Returns:
        Event with actual dynamic types
      • replaceDynamicObjectTypeForTypesList

        public List<TypeItem> replaceDynamicObjectTypeForTypesList​(org.eclipse.emf.ecore.EObject mdObject,
                                                                   Collection<TypeItem> types)
        Replaces dynamic object type in list of types to corresponding dynamic object type of mdObject
        Parameters:
        mdObject - metadata object, can't be null
        types - processing processing list of types, can't be null
        Returns:
        list of types with replaced dynamic object type, never null