|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ws4d.java.client.SearchParameter
public class SearchParameter
A collection of search criteria used when searching for devices or services.
SearchManager
Field Summary | |
---|---|
static byte |
MODE_LOCAL
|
static byte |
MODE_LOCAL_AND_REMOTE
|
static byte |
MODE_REMOTE
|
Constructor Summary | |
---|---|
SearchParameter()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
QNameSet |
getDeviceTypes()
Gets device port types of device to discover. |
java.lang.Object |
getReferenceObject()
Gets reference object. |
ProbeScopeSet |
getScopes()
Gets list of scopes of device to discover. |
SearchMap |
getSearchMap()
Returns the search map to use when discovering devices and services. |
byte |
getSearchMode()
Returns the configured search mode. |
QNameSet |
getServiceTypes()
Gets service port types of service to discover. |
int |
hashCode()
|
void |
setDeviceTypes(QNameSet deviceTypes)
Sets device port types of device to discover. |
void |
setReferenceObject(java.lang.Object referenceObject)
Sets reference object. |
void |
setScopes(ProbeScopeSet scopes)
Sets list of scopes of device to discover. |
void |
setSearchMap(SearchMap searchMap)
Sets the search map for the discovery process. |
void |
setSearchMode(byte searchMode)
Sets the desired search mode. |
void |
setServiceTypes(QNameSet serviceTypes)
Sets service port types of service to discover. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte MODE_LOCAL
public static final byte MODE_REMOTE
public static final byte MODE_LOCAL_AND_REMOTE
Constructor Detail |
---|
public SearchParameter()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public byte getSearchMode()
setSearchMode(byte)
, the default search mode
MODE_LOCAL_AND_REMOTE
is returned.
The search mode defines whether to search only local devices and
services, only remote devices and services or both based on this
SearchParameter
instance.
setSearchMode(byte)
,
MODE_LOCAL
,
MODE_REMOTE
,
MODE_LOCAL_AND_REMOTE
public void setSearchMode(byte searchMode)
searchMode
- the search mode to setgetSearchMode()
,
MODE_LOCAL
,
MODE_REMOTE
,
MODE_LOCAL_AND_REMOTE
public SearchMap getSearchMap()
public void setSearchMap(SearchMap searchMap)
searchMap
- the search map to use, if null
, a default
search map will be usedpublic QNameSet getDeviceTypes()
public void setDeviceTypes(QNameSet deviceTypes)
deviceTypes
- device port types.public ProbeScopeSet getScopes()
public void setScopes(ProbeScopeSet scopes)
scopes
- list of scopes.public QNameSet getServiceTypes()
public void setServiceTypes(QNameSet serviceTypes)
serviceTypes
- service port types.public java.lang.Object getReferenceObject()
public void setReferenceObject(java.lang.Object referenceObject)
referenceObject
- public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |