Class AllElements<TRoot>

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

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

      • AllElements

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

      • select

        public List<IMappingModel<? extends org.eclipse.emf.ecore.EObject>> select​(TRoot root,
                                                                                   Map<Object,​? extends List<IMappingModel<? extends org.eclipse.emf.ecore.EObject>>> maping)
        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<List<IMappingModel<? extends org.eclipse.emf.ecore.EObject>>,​TRoot>
        root - - is root mapping object.
        maping - - is map of relation (domain model - basic mapping model)
        the result of query.