Class Mixin

java.lang.Object
org.apache.maven.api.model.Parent
org.apache.maven.api.model.Mixin
All Implemented Interfaces:
Serializable, InputLocationTracker

See Also:
  • Constructor Details

  • Method Details

    • getClassifier

      public String getClassifier()
      Returns:
      a String
    • getExtension

      public String getExtension()
      Returns:
      a String
    • with

      @Nonnull public Mixin.Builder with()
      Creates a new builder with this object as the basis.
      Overrides:
      with in class Parent
      Returns:
      a Builder
    • withGroupId

      @Nonnull public Mixin withGroupId(String groupId)
      Creates a new Mixin instance using the specified groupId.
      Overrides:
      withGroupId in class Parent
      Parameters:
      groupId - the new String to use
      Returns:
      a Mixin with the specified groupId
    • withArtifactId

      @Nonnull public Mixin withArtifactId(String artifactId)
      Creates a new Mixin instance using the specified artifactId.
      Overrides:
      withArtifactId in class Parent
      Parameters:
      artifactId - the new String to use
      Returns:
      a Mixin with the specified artifactId
    • withVersion

      @Nonnull public Mixin withVersion(String version)
      Creates a new Mixin instance using the specified version.
      Overrides:
      withVersion in class Parent
      Parameters:
      version - the new String to use
      Returns:
      a Mixin with the specified version
    • withRelativePath

      @Nonnull public Mixin withRelativePath(String relativePath)
      Creates a new Mixin instance using the specified relativePath.
      Overrides:
      withRelativePath in class Parent
      Parameters:
      relativePath - the new String to use
      Returns:
      a Mixin with the specified relativePath
    • withClassifier

      @Nonnull public Mixin withClassifier(String classifier)
      Creates a new Mixin instance using the specified classifier.
      Parameters:
      classifier - the new String to use
      Returns:
      a Mixin with the specified classifier
    • withExtension

      @Nonnull public Mixin withExtension(String extension)
      Creates a new Mixin instance using the specified extension.
      Parameters:
      extension - the new String to use
      Returns:
      a Mixin with the specified extension
    • newInstance

      @Nonnull public static Mixin newInstance()
      Creates a new Mixin instance. Equivalent to newInstance(true).
      Returns:
      a new Mixin
      See Also:
    • newInstance

      @Nonnull public static Mixin newInstance(boolean withDefaults)
      Creates a new Mixin instance using default values or not. Equivalent to newBuilder(withDefaults).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Mixin
    • newBuilder

      @Nonnull public static Mixin.Builder newBuilder()
      Creates a new Mixin builder instance. Equivalent to newBuilder(true).
      Returns:
      a new Builder
      See Also:
    • newBuilder

      @Nonnull public static Mixin.Builder newBuilder(boolean withDefaults)
      Creates a new Mixin builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static Mixin.Builder newBuilder(Mixin from)
      Creates a new Mixin builder instance using the specified object as a basis. Equivalent to newBuilder(from, false).
      Parameters:
      from - the Mixin instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static Mixin.Builder newBuilder(Mixin from, boolean forceCopy)
      Creates a new Mixin builder instance using the specified object as a basis.
      Parameters:
      from - the Mixin instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder