Package jadex.bridge.service.search
Class QueryEvent
- java.lang.Object
-
- jadex.bridge.service.search.QueryEvent
-
public class QueryEvent extends java.lang.ObjectQuery event for signaling when a query is added or removed.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceQuery<?>queryThe service.static intQUERY_ADDEDQuery was added event.static intQUERY_REMOVEDQuery was removed event.protected inttypeEvent type.
-
Constructor Summary
Constructors Constructor Description QueryEvent()Bean constructor.QueryEvent(ServiceQuery<?> query, int eventtype)Creates the query event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceQuery<?>getQuery()Gets the query.intgetType()Gets the event type.voidsetQuery(ServiceQuery<?> query)Sets the query.voidsetType(int type)Sets the event type.java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
QUERY_ADDED
public static final int QUERY_ADDED
Query was added event.- See Also:
- Constant Field Values
-
QUERY_REMOVED
public static final int QUERY_REMOVED
Query was removed event.- See Also:
- Constant Field Values
-
type
protected int type
Event type.
-
query
protected ServiceQuery<?> query
The service.
-
-
Constructor Detail
-
QueryEvent
public QueryEvent()
Bean constructor.
-
QueryEvent
public QueryEvent(ServiceQuery<?> query, int eventtype)
Creates the query event.- Parameters:
query- The affected query.eventtype- The event type.
-
-
Method Detail
-
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
public ServiceQuery<?> getQuery()
Gets the query.- Returns:
- The query.
-
setQuery
public void setQuery(ServiceQuery<?> query)
Sets the query.- Parameters:
query- The query.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-