Package org.apache.felix.utils.resource
Class AbstractCapabilityRequirement
- java.lang.Object
-
- org.apache.felix.utils.resource.AbstractCapabilityRequirement
-
- Direct Known Subclasses:
CapabilityImpl
,RequirementImpl
abstract class AbstractCapabilityRequirement extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>
attributes
Optional attributes.protected java.util.Map<java.lang.String,java.lang.String>
directives
Optional attributes.protected java.lang.String
namespace
The namespace.protected org.osgi.resource.Resource
resource
The resource.
-
Constructor Summary
Constructors Constructor Description AbstractCapabilityRequirement(org.osgi.resource.Resource res, java.lang.String ns, java.util.Map<java.lang.String,java.lang.String> dirs, java.util.Map<java.lang.String,java.lang.Object> attrs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getAttributes()
Return the attributes.java.util.Map<java.lang.String,java.lang.String>
getDirectives()
Return the directives.java.lang.String
getNamespace()
Return the namespace.org.osgi.resource.Resource
getResource()
Return the resource.java.lang.String
toString()
-
-
-
Field Detail
-
resource
protected final org.osgi.resource.Resource resource
The resource. Required.
-
namespace
protected final java.lang.String namespace
The namespace. Required.
-
directives
protected final java.util.Map<java.lang.String,java.lang.String> directives
Optional attributes. Never null.
-
attributes
protected final java.util.Map<java.lang.String,java.lang.Object> attributes
Optional attributes. Never null.
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Return the namespace.- Returns:
- The namespace. This is never @{code null}.
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Return the attributes.- Returns:
- The attributes, might be empty.
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
Return the directives.- Returns:
- The directives, might be empty.
-
getResource
public org.osgi.resource.Resource getResource()
Return the resource.- Returns:
- The resource or @{code null}.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-