Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.fetish.directory
Class SearchCriteria  view SearchCriteria download SearchCriteria.java

java.lang.Object
  extended bycom.fetish.directory.SearchCriteria
All Implemented Interfaces:
SearchCriteriaInterface, java.io.Serializable

public class SearchCriteria
extends java.lang.Object
implements SearchCriteriaInterface, java.io.Serializable

Set of constraints for a given search process.


Field Summary
static int DEFAULT_MAX_MATCHES
           
private  Entry[] entries
           
private  ServiceItemFilter filter
           
private  ServiceID id
           
private  int maxMatches
           
private  java.lang.Class[] service
           
 
Constructor Summary
SearchCriteria(java.lang.Class[] service, Entry[] entries, ServiceID id)
           
SearchCriteria(java.lang.Class[] service, Entry[] entries, ServiceID id, ServiceItemFilter filter, int maxMatches)
           
 
Method Summary
 int getMaxMatches()
           
 java.lang.Class[] getService()
           
 ServiceTemplate toServiceTemplate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

private java.lang.Class[] service

entries

private Entry[] entries

id

private ServiceID id

filter

private ServiceItemFilter filter

maxMatches

private int maxMatches

DEFAULT_MAX_MATCHES

public static int DEFAULT_MAX_MATCHES
Constructor Detail

SearchCriteria

public SearchCriteria(java.lang.Class[] service,
                      Entry[] entries,
                      ServiceID id)

SearchCriteria

public SearchCriteria(java.lang.Class[] service,
                      Entry[] entries,
                      ServiceID id,
                      ServiceItemFilter filter,
                      int maxMatches)
Method Detail

getService

public java.lang.Class[] getService()
Specified by:
getService in interface SearchCriteriaInterface

getMaxMatches

public int getMaxMatches()
Specified by:
getMaxMatches in interface SearchCriteriaInterface

toServiceTemplate

public ServiceTemplate toServiceTemplate()
Specified by:
toServiceTemplate in interface SearchCriteriaInterface