package saker.nest.bundle
BundleDependency builder class.
public Builder | Adds a bundle dependency kind. |
public Builder | addMetaData( Adds a new meta-data entry. |
public BundleDependency | build() 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 | hasMetaData( Checks if the argument meta-data is already present in this builder. |
public Builder | setRange( Sets the version range. |
Adds a bundle dependency kind.
kindThe dependency kind.
this
NullPointerExceptionIf the argument is
null
.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
Checks if the argument meta-data is already present in this builder.
nameThe meta-data name.
true
if it was already set.