one.world.rep
Class DiscoveredResource
java.lang.Object
|
+--one.world.core.SymbolicHandler
|
+--one.world.rep.DiscoveredResource
- All Implemented Interfaces:
- EventHandler, Serializable
- public class DiscoveredResource
- extends SymbolicHandler
Implementation of a discovered resource. A discovered resource
contains a query to be resolved by a discovery service and a
multicast flag indicating that the resource includes all matches to
the query.
- Version:
- $Revision: 1.8 $
- See Also:
- Serialized Form
|
Field Summary |
boolean |
matchAll
Indicates that the query should be resolved to all matching
resources. |
Query |
query
The query that describes the desired resource. |
|
Constructor Summary |
DiscoveredResource(Query query)
Constructs a new unicast discovered resource with the given query. |
DiscoveredResource(Query query,
boolean matchAll)
Constructs a new discovered resource with the given query and
multicast mode. |
|
Method Summary |
boolean |
equals(Object o)
Determines whether this discovered resource equals the specified
object. |
int |
hashCode()
Returns a hash code value for this discovered resource. |
String |
toString()
Returns a string representation of this discovered resource. |
query
public final Query query
- The query that describes the desired resource.
matchAll
public final boolean matchAll
- Indicates that the query should be resolved to all matching
resources. For early binding, all matching resources will be
returned. For late binding, the event will be routed to all
matching resources.
DiscoveredResource
public DiscoveredResource(Query query)
- Constructs a new unicast discovered resource with the given query.
The
matchAll flag will be false.
- Parameters:
query - The query that describes the desired resource.
DiscoveredResource
public DiscoveredResource(Query query,
boolean matchAll)
- Constructs a new discovered resource with the given query and
multicast mode.
- Parameters:
query - The query that describes the desired resource.matchAll - The multicast mode.
equals
public boolean equals(Object o)
- Determines whether this discovered resource equals the specified
object.
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Returns a hash code value for this discovered resource.
- Overrides:
hashCode in class Object
toString
public String toString()
- Returns a string representation of this discovered resource.
- Overrides:
toString in class Object
(C) Copyright 2001 UW CSE