Package org.rssowl.core.model.internal.search

Examples of org.rssowl.core.model.internal.search.SearchCondition


   * org.rssowl.core.model.reference.SearchMarkReference, java.lang.String,
   * org.rssowl.core.model.search.ISearchField,
   * org.rssowl.core.model.search.SearchSpecifier, boolean)
   */
  public ISearchCondition createSearchCondition(Long id, ISearchMark searchMark, ISearchField field, SearchSpecifier specifier, String value, boolean isAndSearch) {
    SearchCondition condition = new SearchCondition(id, searchMark, field, specifier, value, isAndSearch);

    /* Automatically add to the SearchMark */
    searchMark.addSearchCondition(condition);
    return condition;
  }
View Full Code Here


  /*
   * @see org.rssowl.core.model.types.IModelTypesFactory#createSearchCondition(org.rssowl.core.model.search.ISearchField,
   * org.rssowl.core.model.search.SearchSpecifier, java.lang.String, boolean)
   */
  public ISearchCondition createSearchCondition(ISearchField field, SearchSpecifier specifier, String value, boolean isAndSearch) {
    return new SearchCondition(field, specifier, value, isAndSearch);
  }
View Full Code Here

          return 0;

        if (getClass() != o2.getClass())
          return -1;

        final SearchCondition other = (SearchCondition) o2;
        if (o1.getField() == null) {
          if (other.getField() != null)
            return -1;
        } else if (!o1.getField().equals(other.getField()))
          return -1;

        if (o1.isAndSearch() != other.isAndSearch())
          return -1;

        if (o1.getSpecifier() == null) {
          if (other.getSpecifier() != null)
            return -1;
        } else if (!o1.getSpecifier().equals(other.getSpecifier()))
          return -1;

        if (o1.getValue() == null) {
          if (other.getValue() != null)
            return -1;
        } else if (!o1.getValue().equals(other.getValue()))
          return -1;

        return 0;
      }
    };
View Full Code Here

TOP

Related Classes of org.rssowl.core.model.internal.search.SearchCondition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.