Interface Capability

  • All Known Implementing Classes:
    RuntimeCapability

    public interface Capability
    Basic description of a capability.
    Author:
    Tomaz Cerar (c) 2015 Red Hat Inc.
    • Method Detail

      • getName

        String getName()
        Gets the basic name of the capability. If isDynamicallyNamed() returns true 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 by getName().
        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 be null
        Returns:
        the full capability name
        Throws:
        IllegalStateException - if isDynamicallyNamed() returns false