Class BundleDescriptor.Builder

java.lang.Object
org.mule.maven.pom.parser.api.model.BundleDescriptor.Builder
Enclosing class:
BundleDescriptor

public static class BundleDescriptor.Builder extends Object
Builder for creating a BundleDescriptor
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setGroupId

      public BundleDescriptor.Builder setGroupId(String groupId)
      Parameters:
      groupId - the group id of the bundle. Cannot be null or empty.
      Returns:
      the builder
    • setArtifactId

      public BundleDescriptor.Builder setArtifactId(String artifactId)
      Parameters:
      artifactId - the artifactId id of the bundle. Cannot be null or empty.
      Returns:
      the builder
    • setVersion

      public BundleDescriptor.Builder setVersion(String version)
      This is the version of the bundle.
      Parameters:
      version - the version of the bundle. Cannot be null or empty.
      Returns:
      the builder
    • setBaseVersion

      public BundleDescriptor.Builder setBaseVersion(String baseVersion)
      Sets the base version of the bundle, for example "1.0-SNAPSHOT". In contrast to the BundleDescriptor.getVersion(), the base version will always refer to the unresolved meta version.
      Parameters:
      baseVersion - the base version of the bundle. Cannot be null or empty.
      Returns:
      the builder
    • setType

      public BundleDescriptor.Builder setType(String type)
      Sets the extension type of the bundle.
      Parameters:
      type - the type id of the bundle. Cannot be null or empty.
      Returns:
      the builder
    • setClassifier

      public BundleDescriptor.Builder setClassifier(String classifier)
      Sets the classifier of the bundle.
      Parameters:
      classifier - classifier of the bundle. Cannot be empty
      Returns:
      the builder
    • setSystemPath

      public BundleDescriptor.Builder setSystemPath(String systemPath)
      Sets the system path of the bundle.
      Parameters:
      systemPath - systemPath of the bundle.
      Returns:
      the builder
    • setOptional

      public BundleDescriptor.Builder setOptional(String optional)
      Sets the optional property of the bundle.
      Parameters:
      optional - optional property of the bundle.
      Returns:
      the builder
    • setProperties

      public BundleDescriptor.Builder setProperties(Map<String,String> properties)
      Sets properties for the descriptor to be used by 3rd party.
      Parameters:
      properties - properties/metadata to associated to the bundle.
      Returns:
      the builder
    • setExclusions

      public BundleDescriptor.Builder setExclusions(List<ArtifactCoordinates> exclusions)
    • build

      public BundleDescriptor build()
      Returns:
      a BundleDescriptor with the previous provided parameters to the builder.