public class ProvidedCapability extends java.lang.Object implements IProvidedCapability, IMemberProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MEMBER_NAME
Used for fast access from P2 queries to the
getName() method |
static java.lang.String |
MEMBER_NAMESPACE
Used for fast access from P2 queries to the
getNamespace() method |
static java.lang.String |
MEMBER_PROPERTIES
Used for fast access from P2 queries to the
getProperties() method |
static java.lang.String |
MEMBER_VERSION
Used for fast access from P2 queries to the
getVersion() method |
PROPERTY_VERSION| Constructor and Description |
|---|
ProvidedCapability(java.lang.String namespace,
java.util.Map<java.lang.String,java.lang.Object> props) |
ProvidedCapability(java.lang.String namespace,
java.lang.String name,
Version version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Returns whether this provided capability is equal to the given object.
|
java.lang.Object |
getMember(java.lang.String memberName)
Returns the value for the specified member.
|
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
A full description of this capability including the name and the version.
|
Version |
getVersion() |
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String MEMBER_NAMESPACE
getNamespace() methodpublic static final java.lang.String MEMBER_NAME
getName() methodpublic static final java.lang.String MEMBER_VERSION
getVersion() methodpublic static final java.lang.String MEMBER_PROPERTIES
getProperties() methodpublic ProvidedCapability(java.lang.String namespace,
java.util.Map<java.lang.String,java.lang.Object> props)
public ProvidedCapability(java.lang.String namespace,
java.lang.String name,
Version version)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
IProvidedCapabilityIProvidedCapability.getNamespace() on both objects are equalIProvidedCapability.getProperties() on both objects are equalequals in interface IProvidedCapabilityequals in class java.lang.Objectpublic java.lang.String getNamespace()
getNamespace in interface IProvidedCapabilitypublic java.lang.String getName()
getName in interface IProvidedCapabilityIProvidedCapability.getNamespace() attribute of this capability.public Version getVersion()
getVersion in interface IProvidedCapabilityIProvidedCapability.PROPERTY_VERSION attribute of this capability.public java.util.Map<java.lang.String,java.lang.Object> getProperties()
IProvidedCapability
Such a description can be used to match this capability with an LDAP filter for example.
getProperties in interface IProvidedCapabilitypublic java.lang.Object getMember(java.lang.String memberName)
IMemberProvidermemberName is a string that has been
internalized using String.intern().getMember in interface IMemberProvidermemberName - The name of the member