/** * Sets the extension type of the bundle. * * @param type the type id of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setType(String type) { validateIsNotEmpty(type, TYPE); bundleDependency.type = type; return this; }
/** * @param groupId the group id of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setGroupId(String groupId) { validateIsNotEmpty(groupId, GROUP_ID); bundleDependency.groupId = groupId; return this; }
/** * This is the version of the bundle. * * @param version the version of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setVersion(String version) { validateIsNotEmpty(version, VERSION); bundleDependency.version = version; return this; }
/** * @param artifactId the artifactId id of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setArtifactId(String artifactId) { validateIsNotEmpty(artifactId, ARTIFACT_ID); bundleDependency.artifactId = artifactId; return this; }
/** * @return a {@code BundleDescriptor} with the previous provided parameters to the builder. */ public BundleDescriptor build() { validateIsNotEmpty(bundleDependency.groupId, GROUP_ID); validateIsNotEmpty(bundleDependency.artifactId, ARTIFACT_ID); validateIsNotEmpty(bundleDependency.version, VERSION); return this.bundleDependency; }
/** * Sets the extension type of the bundle. * * @param type the type id of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setType(String type) { validateIsNotEmpty(type, TYPE); bundleDependency.type = type; return this; }
/** * @param artifactId the artifactId id of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setArtifactId(String artifactId) { validateIsNotEmpty(artifactId, ARTIFACT_ID); bundleDependency.artifactId = artifactId; return this; }
/** * @return a {@code BundleDescriptor} with the previous provided parameters to the builder. */ public BundleDescriptor build() { validateIsNotEmpty(bundleDependency.groupId, GROUP_ID); validateIsNotEmpty(bundleDependency.artifactId, ARTIFACT_ID); validateIsNotEmpty(bundleDependency.version, VERSION); return this.bundleDependency; }
/** * @param groupId the group id of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setGroupId(String groupId) { validateIsNotEmpty(groupId, GROUP_ID); bundleDependency.groupId = groupId; return this; }
/** * This is the version of the bundle. * * @param version the version of the bundle. Cannot be null or empty. * @return the builder */ public BundleDescriptor.Builder setVersion(String version) { validateIsNotEmpty(version, VERSION); bundleDependency.version = version; return this; }