Class QueryEvent
java.lang.Object
jadex.providedservice.impl.search.QueryEvent
Query event for signaling when a query is added or removed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServiceQuery<?>The service.static final intQuery was added event.static final intQuery was removed event.protected intEvent type. -
Constructor Summary
ConstructorsConstructorDescriptionBean constructor.QueryEvent(ServiceQuery<?> query, int eventtype) Creates the query event. -
Method Summary
Modifier and TypeMethodDescriptionServiceQuery<?>getQuery()Gets the query.intgetType()Gets the event type.voidsetQuery(ServiceQuery<?> query) Sets the query.voidsetType(int type) Sets the event type.toString()Get the string representation.
-
Field Details
-
QUERY_ADDED
public static final int QUERY_ADDEDQuery was added event.- See Also:
-
QUERY_REMOVED
public static final int QUERY_REMOVEDQuery was removed event.- See Also:
-
type
protected int typeEvent type. -
query
The service.
-
-
Constructor Details
-
QueryEvent
public QueryEvent()Bean constructor. -
QueryEvent
Creates the query event.- Parameters:
query- The affected query.eventtype- The event type.
-
-
Method Details
-
getType
public int getType()Gets the event type.- Returns:
- The event type.
-
setType
public void setType(int type) Sets the event type.- Parameters:
eventtype- The event type.
-
getQuery
Gets the query.- Returns:
- The query.
-
setQuery
Sets the query.- Parameters:
query- The query.
-
toString
Get the string representation.
-