org.apache.felix.resolver.impl
Class HostedCapability

java.lang.Object
  extended by org.apache.felix.resolver.impl.HostedCapability
All Implemented Interfaces:
Capability

public class HostedCapability
extends java.lang.Object
implements Capability


Constructor Summary
HostedCapability(Resource host, Capability cap)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Returns the attributes of this capability.
 java.util.Map<java.lang.String,java.lang.String> getDirectives()
          Returns the directives of this capability.
 java.lang.String getNamespace()
          Returns the name space of this capability.
 Capability getOriginalCapability()
           
 Resource getResource()
          Returns the resource declaring this capability.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostedCapability

public HostedCapability(Resource host,
                        Capability cap)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getOriginalCapability

public Capability getOriginalCapability()

getResource

public Resource getResource()
Description copied from interface: Capability
Returns the resource declaring this capability.

Specified by:
getResource in interface Capability
Returns:
The resource declaring this capability.

getNamespace

public java.lang.String getNamespace()
Description copied from interface: Capability
Returns the name space of this capability.

Specified by:
getNamespace in interface Capability
Returns:
The name space of this capability.

getDirectives

public java.util.Map<java.lang.String,java.lang.String> getDirectives()
Description copied from interface: Capability
Returns the directives of this capability.

Only the following list of directives have specified semantics:

All other directives have no specified semantics and are considered extra user defined information. The OSGi Alliance reserves the right to extend the set of directives which have specified semantics.

Specified by:
getDirectives in interface Capability
Returns:
An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.

getAttributes

public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Description copied from interface: Capability
Returns the attributes of this capability.

Specified by:
getAttributes in interface Capability
Returns:
An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.