Interface CapabilitySet

    • Method Detail

      • addCapability

        void addCapability​(@NotNull
                           @NotNull Capability capability)
        Add a capability to the set. Will overwrite any existing capability key
        Parameters:
        capability -
      • addCapability

        void addCapability​(@NotNull
                           @NotNull Capability capability,
                           boolean overwrite)
        Adds a capability. If overwrite is false the new value will be rejected
        Parameters:
        capability -
        overwrite -
      • removeCapability

        void removeCapability​(@NotNull
                              @NotNull String key)
        Remove a capability from the set, by the key.
        Parameters:
        key -
      • setCapabilities

        void setCapabilities​(Set<Capability> capabilities)
      • getSharedCapabilitySetType

        @Nullable
        @Nullable String getSharedCapabilitySetType()
        Returns the identifier for the set if it is shared. Pretty used exclusively in the UI.
        Returns:
        "Local", "Remote" or null it not a shared capability type;
      • getCapabilitySetType

        @Nullable
        @Nullable String getCapabilitySetType()
        Returns the identifier describing the type of this capability.
        Returns:
        "Local", "Remote" or "Image"