Class FirstElement<TRoot>

  • All Implemented Interfaces:
    IQuery<IMappingModel<? extends org.eclipse.emf.ecore.EObject>,​TRoot>

    public class FirstElement<TRoot>
    extends Object
    implements IQuery<IMappingModel<? extends org.eclipse.emf.ecore.EObject>,​TRoot>
    The query for a choice first mapping model connected with the domain model.
    • Constructor Detail

      • FirstElement

        protected FirstElement​(Object domain)
        Creates an new query.
        domain - the domain model.
    • Method Detail

      • select

        public IMappingModel<? extends org.eclipse.emf.ecore.EObject> select​(TRoot root,
                                                                             Map<Object,​? extends List<IMappingModel<? extends org.eclipse.emf.ecore.EObject>>> relation)
        The method selects data from Mapping. Data can get from mapping root model(IMappingRoot) or map of relation between domain model and basic mapping model (TBasicModel).
          If the domain model has not relation with mapping model then return null.
        Specified by:
        select in interface IQuery<IMappingModel<? extends org.eclipse.emf.ecore.EObject>,​TRoot>
        root - - is root mapping object.
        relation - - is map of relation (domain model - basic mapping model)
        the result of query.