Class DependencyQueryImpl

    • Constructor Detail

      • DependencyQueryImpl

        public DependencyQueryImpl()
    • Method Detail

      • addQueryObject

        public void addQueryObject​(DataObject queryObject)
        Description copied from interface: DependencyQuery
        Method, that adds a new query object to the dependency query.
        Specified by:
        addQueryObject in interface DependencyQuery
        Parameters:
        queryObject - Data object to be used in the query.
      • addDependency

        public void addDependency​(Dependency dependency)
        Description copied from interface: DependencyQuery
        Method, that adds a dependency to the query. The method checks, if the source and the target object of the dependency are already contained as query objects. If not, an exception will be thrown.
        Specified by:
        addDependency in interface DependencyQuery
        Parameters:
        dependency - The dependency to be added to the query.
      • getQueryObjects

        public List<DataObject> getQueryObjects()
        Description copied from interface: DependencyQuery
        Method, that returns a list of the query objects. The data type of the list is important here, because order of the query objects is essential for the later calculations.
        Specified by:
        getQueryObjects in interface DependencyQuery
        Returns:
        The query objects as a list.