|
Knopflerfish OSGi 6.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@ProviderType public interface RequirementBuilder
A builder for requirements.
| Method Summary | |
|---|---|
RequirementBuilder |
addAttribute(java.lang.String name,
java.lang.Object value)
Add an attribute to the set of attributes. |
RequirementBuilder |
addDirective(java.lang.String name,
java.lang.String value)
Add a directive to the set of directives. |
Requirement |
build()
Create a requirement based upon the values set in this requirement builder. |
IdentityExpression |
buildExpression()
Create a requirement expression for a requirement based upon the values set in this requirement builder. |
RequirementBuilder |
setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Replace all attributes with the attributes in the specified map. |
RequirementBuilder |
setDirectives(java.util.Map<java.lang.String,java.lang.String> directives)
Replace all directives with the directives in the specified map. |
RequirementBuilder |
setResource(Resource resource)
Set the Resource. |
| Method Detail |
|---|
RequirementBuilder addAttribute(java.lang.String name,
java.lang.Object value)
name - The attribute name.value - The attribute value.
RequirementBuilder addDirective(java.lang.String name,
java.lang.String value)
name - The directive name.value - The directive value.
RequirementBuilder setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes - The map of attributes.
RequirementBuilder setDirectives(java.util.Map<java.lang.String,java.lang.String> directives)
directives - The map of directives.
RequirementBuilder setResource(Resource resource)
Resource.
A resource is optional. This method will replace any previously set resource.
resource - The resource.
Requirement build()
IdentityExpression buildExpression()
|
Knopflerfish OSGi 6.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||