Class DependencyQueryImpl

java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.QueryImpl
de.uni_trier.wi2.procake.retrieval.impl.DependencyQueryImpl
All Implemented Interfaces:
DependencyQuery, Query

public class DependencyQueryImpl extends QueryImpl implements DependencyQuery
Implementation of DependencyQuery.
Author:
Rahol Kumar, Alexander Schultheis
  • Constructor Details

    • DependencyQueryImpl

      public DependencyQueryImpl()
  • Method Details

    • setQueryObject

      public void setQueryObject(DataObject queryObject)
      Specified by:
      setQueryObject in interface Query
      Overrides:
      setQueryObject in class QueryImpl
    • getQueryObject

      public <T extends DataObject> T getQueryObject()
      Specified by:
      getQueryObject in interface Query
      Overrides:
      getQueryObject in class QueryImpl
    • 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.
    • getDependencies

      public List<Dependency> getDependencies()
      Description copied from interface: DependencyQuery
      Method, that returns a list of the desired dependencies.
      Specified by:
      getDependencies in interface DependencyQuery
      Returns:
      The desired dependencies as list.