saker.nest Documentation TaskDoc JavaDoc Packages
public static final class BundleDependency.Builder
BundleDependency builder class.
Methods
public Builder
Adds a bundle dependency kind.
public Builder
addMetaData(String name, String content)
Adds a new meta-data entry.
public BundleDependency
Creates the bundle dependency based on the assigned data.
public Builder
Clears the previously set kinds.
public Builder
Clears the previously set meta-datas.
public boolean
Checks if the argument meta-data is already present in this builder.
public Builder
Sets the version range.
Adds a bundle dependency kind.
kindThe dependency kind.
this
NullPointerExceptionIf the argument is null.
public Builder addMetaData(String name, String content) throws NullPointerException
Adds a new meta-data entry.
nameThe name of the meta-data.
contentThe value of the meta-data.
this
NullPointerExceptionIf any the arguments are null.
Creates the bundle dependency based on the assigned data.

The builder can be reused after this call.

The created dependency.
IllegalStateExceptionIf no version range was set, or no kinds were specified.
Clears the previously set kinds.
this
Clears the previously set meta-datas.
this
public boolean hasMetaData(String name)
Checks if the argument meta-data is already present in this builder.
nameThe meta-data name.
true if it was already set.
Sets the version range.
rangeThe allowed version range.
this