ilog.rules.teamserver.model

Interface IlrSearchCriteria

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Returns a copy of this search criteria instance.
      org.eclipse.emf.ecore.EClass getEClass()
      Gets an EMF class of the elements to be searched for.
      java.util.List getFeatures()
      Gets the list of features to be searched for.
      org.eclipse.emf.ecore.EStructuralFeature getOrderBy()
      Gets the object that will be used to sort the results of a call to IlrSession.findElements with this IlrSearchCritera instance.
      java.lang.String getQuery()
      Gets the Business Query Language query that will be searched with when IlrSession.findElements is called.
      int getScope()
      Gets the scope of the search: that is, whether calls to IlrSession.findElements with this object will search in the current project only or in the current project and its dependent projects.
      java.util.List getValues()
      Gets the list of the values to be searched for.
      boolean isAscending()
      Specifies whether the results of a call to IlrSession.findElements with this object will be sorted in ascending or descending order.
    • Method Detail

      • getEClass

        org.eclipse.emf.ecore.EClass getEClass()
        Gets an EMF class of the elements to be searched for.

        If a query is set, the value returned must be a super class of the query's EMF class. For example, if the query is:

        "for each action rule such that ..."

        the EMF class must be brm.ActionRule, or brm.BusinessRule.
        Returns:
        An EMF class.
        See Also:
        Overview, IlrDefaultSearchCriteria
      • getFeatures

        java.util.List getFeatures()
        Gets the list of features to be searched for.

        If a Business Query Language query is set in this object, calls to IlrSession.findElements with this object will return the elements that match the features, values and query in this search criteria instance.

        Note: This list of features must have a corresponding list of values.

        Returns:
        The list of org.eclipse.emf.ecore.EStructuralFeature objects that will be searched for. If no features were defined, null is returned.
        See Also:
        Overview, getValues(), IlrSession, Custom search example, IlrDefaultSearchCriteria
      • getValues

        java.util.List getValues()
        Gets the list of the values to be searched for.

        If a Business Query Language query is set in this object, calls to IlrSession.findElements with this object will return the elements that match the features, values and query in this search criteria instance.

        Note: This list of values must have a corresponding list of features.

        Returns:
        The list of org.eclipse.emf.ecore.EStructuralFeature objects that will be searched for when IlrSession.findElements is called. If no values were defined, null is returned.
        See Also:
        Overview, getFeatures(), IlrSession, Custom search example, IlrDefaultSearchCriteria
      • getQuery

        java.lang.String getQuery()
        Gets the Business Query Language query that will be searched with when IlrSession.findElements is called.

        If features and values are set in this object, calls to IlrSession.findElements with this object will return the elements that match the features, values and query in this search criteria instance.

        Returns:
        A text query. If no query was defined in this object, null is returned.
        See Also:
        Overview, IlrSession, Custom search example, IlrDefaultSearchCriteria
      • getOrderBy

        org.eclipse.emf.ecore.EStructuralFeature getOrderBy()
        Gets the object that will be used to sort the results of a call to IlrSession.findElements with this IlrSearchCritera instance.
        Returns:
        An EMF feature. If no sort was defined in this object, null is returned.
        See Also:
        Overview, IlrSession, IlrDefaultSearchCriteria
      • isAscending

        boolean isAscending()
        Specifies whether the results of a call to IlrSession.findElements with this object will be sorted in ascending or descending order.
        Returns:
        True If the results of the search will be sorted in ascending order.
        See Also:
        Overview, Custom search example, IlrSession, IlrDefaultSearchCriteria
      • clone

        java.lang.Object clone()
        Returns a copy of this search criteria instance.
        Returns:
        A copy of this search criteria instance.
        See Also:
        Overview

© Copyright IBM Corp. 1987, 2015