|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.concept.DTSSearchOptions
public class DTSSearchOptions
The DTS search options pass information to be used in a search, other
that actual search pattern. This includes the search limit, the namespace
to search in, and optionally the
ConceptAttributeSetDescriptor
used to
specify the attributes returned with the search result concepts.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
Field Summary | |
---|---|
static int |
ALL_NAMESPACES
Indicates that all namespaces are to be searched. |
static int |
DEFAULT_LIMIT
Indicates MAXIMUM_LIMIT limit
on the number of matches returned as default. |
static int |
MAXIMUM_LIMIT
Indicates maximum number of matches that can be returned. |
Constructor Summary | |
---|---|
DTSSearchOptions()
The default constructor. |
|
DTSSearchOptions(int searchLimit,
int namespaceId)
Convenience constructor for setting the most popular options. |
|
DTSSearchOptions(int searchLimit,
int namespaceId,
ConceptAttributeSetDescriptor asd)
Convenience constructor for setting all options at once. |
Method Summary | |
---|---|
ConceptAttributeSetDescriptor |
getAttributeSetDescriptor()
Gets the ConceptAttributeSetDescriptor to be used to set the amount
of information retrieved with the concepts returned by a search. |
int |
getLimit()
Gets the maximum number of DTS search results that should be returned from a search. |
int |
getNamespaceId()
Gets the ID of the namespace to search in. |
void |
setAttributeSetDescriptor(ConceptAttributeSetDescriptor asd)
Sets the ConceptAttributeSetDescriptor to be used to set the amount
of information retrieved with the concepts returned by a search. |
void |
setLimit(int limit)
Sets the maximum number of DTS search results that should be returned from a search. |
void |
setNamespaceId(int namespaceId)
Sets the ID of the namespace to search in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALL_NAMESPACES
public static final int MAXIMUM_LIMIT
Integer.MAX_VALUE
,
Constant Field Valuespublic static final int DEFAULT_LIMIT
MAXIMUM_LIMIT
limit
on the number of matches returned as default.
Constructor Detail |
---|
public DTSSearchOptions()
public DTSSearchOptions(int searchLimit, int namespaceId, ConceptAttributeSetDescriptor asd)
searchLimit
- limit on search resultsnamespaceId
- Namespace
ID to search inasd
- the ConceptAttributeSetDescriptor
describing the desired attributes to be
retrieved with the search result conceptspublic DTSSearchOptions(int searchLimit, int namespaceId)
searchLimit
- limit on search resultsnamespaceId
- Namespace
ID to search inMethod Detail |
---|
public void setLimit(int limit)
limit
- the search limitpublic int getLimit()
public void setNamespaceId(int namespaceId)
ALL_NAMESPACES
to
search all namespaces.
namespaceId
- Namespace
ID to search inpublic int getNamespaceId()
ALL_NAMESPACES
indicates all namespaces are to be searched.
ALL_NAMESPACES
.public void setAttributeSetDescriptor(ConceptAttributeSetDescriptor asd)
ConceptAttributeSetDescriptor
to be used to set the amount
of information retrieved with the concepts returned by a search.
asd
- the ConceptAttributeSetDescriptor describing the
desired attributes to be retrievedpublic ConceptAttributeSetDescriptor getAttributeSetDescriptor()
ConceptAttributeSetDescriptor
to be used to set the amount
of information retrieved with the concepts returned by a search.
ConceptAttributeSetDescriptor
to be used to be used
in retrieving the search result concepts.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |