Interface Capability
-
- All Known Implementing Classes:
RuntimeCapability
public interface Capability
Basic description of a capability.- Author:
- Tomaz Cerar (c) 2015 Red Hat Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDynamicName(String dynamicNameElement)
Gets the full name of a capability, including a dynamic elementString
getDynamicName(PathAddress address)
String
getName()
Gets the basic name of the capability.Set<String>
getRequirements()
Gets the names of other capabilities required by this capability.boolean
isDynamicallyNamed()
Gets whether this capability is a dynamically named one, whose runtime variants will have a dynamic element added to the base name provided bygetName()
.
-
-
-
Method Detail
-
getName
String getName()
Gets the basic name of the capability. IfisDynamicallyNamed()
returnstrue
this will be the basic name of the capability, not including any dynamic portions.- Returns:
- the name. Will not be
null
- See Also:
getDynamicName(String)
-
getRequirements
Set<String> getRequirements()
Gets the names of other capabilities required by this capability. These are static requirements.- Returns:
- the capability names. Will not be
null
but may be empty.
-
isDynamicallyNamed
boolean isDynamicallyNamed()
Gets whether this capability is a dynamically named one, whose runtime variants will have a dynamic element added to the base name provided bygetName()
.- Returns:
true
if this capability is dynamically named
-
getDynamicName
String getDynamicName(String dynamicNameElement)
Gets the full name of a capability, including a dynamic element- Parameters:
dynamicNameElement
- the dynamic portion of the name. Cannot benull
- Returns:
- the full capability name
- Throws:
IllegalStateException
- ifisDynamicallyNamed()
returnsfalse
-
getDynamicName
String getDynamicName(PathAddress address)
-
-