Package jadex.bridge.service.search
Class QueryEvent
- java.lang.Object
-
- jadex.bridge.service.search.QueryEvent
-
public class QueryEvent extends java.lang.Object
Query event for signaling when a query is added or removed.
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceQuery<?>
query
The service.static int
QUERY_ADDED
Query was added event.static int
QUERY_REMOVED
Query was removed event.protected int
type
Event 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.int
getType()
Gets the event type.void
setQuery(ServiceQuery<?> query)
Sets the query.void
setType(int type)
Sets the event type.java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
-