saker.nest Documentation TaskDoc JavaDoc Packages
public static final class ExternalDependency.Builder
Builder class for ExternalDependency.

At least one dependency kind must be added before calling build().

Methods
public Builder
Adds an entry wildcard.
public Builder
Adds a dependency kind.
public Builder
addMetaData(String name, String content)
Adda a meta-data entry.
public ExternalDependency
Builds the external dependency.
public boolean
Checks if a meta-data with the given name is already present.
public Builder
setIncludesMainArchive(boolean includesMainArchive)
Sets if the main archive is included or not.
Adds an entry wildcard.
wildcardThe wildcard.
this
NullPointerExceptionIf the argument is null.
Adds a dependency kind.
kindThe dependency kind.
this
NullPointerExceptionIf the argument is null.
IllegalArgumentExceptionIf the format of the kind is inappropriate. See BundleDependency.isValidKind(String).
Adda a meta-data entry.
nameThe name of the meta-data.
contentThe value of the meta-data.
this
NullPointerExceptionIf any of the arguments are null.
IllegalArgumentExceptionIf the format of the meta-data name is inappropriate. See BundleDependency.isValidMetaDataName(String).
Builds the external dependency.

The builder can be reused after this call.

The constructed ExternalDependency.
IllegalStateExceptionIf no kinds were specified.
public boolean hasMetaData(String name)
Checks if a meta-data with the given name is already present.
nameThe meta-data name.
true if the meta-data with the given name is already set.
public Builder setIncludesMainArchive(boolean includesMainArchive)
Sets if the main archive is included or not.

Note that the actual value of this property in the built object will be set to true if there are no entries.

includesMainArchivetrue to include the main archive.
this