Class BinaryMavenProtocPluginBean

All Implemented Interfaces:
ProtocPlugin

@Generated(from="BinaryMavenProtocPlugin", generator="Modifiables") @Generated({"Modifiables.generator","BinaryMavenProtocPlugin"}) public class BinaryMavenProtocPluginBean extends BinaryMavenProtocPlugin
A modifiable implementation of the BinaryMavenProtocPlugin type.

Use the constructor to create new modifiable instances. You may even extend this class to add some convenience methods, however most of the methods in this class are final to preserve safety and predictable invariants.

BinaryMavenProtocPluginBean is not thread-safe

See Also:
  • Constructor Details

    • BinaryMavenProtocPluginBean

      public BinaryMavenProtocPluginBean()
  • Method Details

    • getOptions

      public @Nullable String getOptions()
      Returns:
      value of options attribute, may be null
    • getOutputDirectory

      public @Nullable Path getOutputDirectory()
      Returns:
      value of outputDirectory attribute, may be null
    • isRegisterAsCompilationRoot

      public @Nullable Boolean isRegisterAsCompilationRoot()
      Returns:
      value of registerAsCompilationRoot attribute, may be null
    • getOrder

      public int getOrder()
      Returns:
      assigned or, otherwise, newly computed, not cached value of order attribute
    • isSkip

      public boolean isSkip()
      Returns:
      assigned or, otherwise, newly computed, not cached value of skip attribute
    • getGroupId

      public String getGroupId()
      Specified by:
      getGroupId in class MavenArtifact
      Returns:
      value of groupId attribute, may be null
    • getArtifactId

      public String getArtifactId()
      Specified by:
      getArtifactId in class MavenArtifact
      Returns:
      value of artifactId attribute, may be null
    • getType

      public @Nullable String getType()
      Specified by:
      getType in class MavenArtifact
      Returns:
      value of type attribute, may be null
    • getClassifier

      public @Nullable String getClassifier()
      Specified by:
      getClassifier in class MavenArtifact
      Returns:
      value of classifier attribute, may be null
    • getVersion

      public @NonNull String getVersion()
      Specified by:
      getVersion in class BinaryMavenProtocPlugin
      Returns:
      value of version attribute, may be null
    • clear

      public void clear()
      Clears the object by setting all attributes to their initial values.
    • from

      Fill this modifiable instance with attribute values from the provided MavenArtifact instance.
      Parameters:
      instance - The instance from which to copy values
    • from

      public BinaryMavenProtocPluginBean from(ProtocPlugin instance)
      Fill this modifiable instance with attribute values from the provided ProtocPlugin instance.
      Parameters:
      instance - The instance from which to copy values
    • from

      Fill this modifiable instance with attribute values from the provided BinaryMavenProtocPlugin instance.
      Parameters:
      instance - The instance from which to copy values
    • from

      Fill this modifiable instance with attribute values from the provided BinaryMavenProtocPlugin instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this for use in a chained invocation
    • setOptions

      public void setOptions(@Nullable String options)
      Assigns a value to the options attribute.
      Parameters:
      options - The value for options, can be null
    • setOutputDirectory

      public void setOutputDirectory(@Nullable Path outputDirectory)
      Assigns a value to the outputDirectory attribute.
      Parameters:
      outputDirectory - The value for outputDirectory, can be null
    • setRegisterAsCompilationRoot

      public void setRegisterAsCompilationRoot(@Nullable Boolean registerAsCompilationRoot)
      Assigns a value to the registerAsCompilationRoot attribute.
      Parameters:
      registerAsCompilationRoot - The value for registerAsCompilationRoot, can be null
    • setOrder

      public void setOrder(int order)
      Assigns a value to the order attribute.

      If not set, this attribute will have a default value returned by the initializer of order.

      Parameters:
      order - The value for order
    • setSkip

      public void setSkip(boolean skip)
      Assigns a value to the skip attribute.

      If not set, this attribute will have a default value returned by the initializer of skip.

      Parameters:
      skip - The value for skip
    • setGroupId

      public void setGroupId(String groupId)
      Assigns a value to the groupId attribute.
      Parameters:
      groupId - The value for groupId, can be null
    • setArtifactId

      public void setArtifactId(String artifactId)
      Assigns a value to the artifactId attribute.
      Parameters:
      artifactId - The value for artifactId, can be null
    • setType

      public void setType(@Nullable String type)
      Assigns a value to the type attribute.
      Parameters:
      type - The value for type, can be null
    • setClassifier

      public void setClassifier(@Nullable String classifier)
      Assigns a value to the classifier attribute.
      Parameters:
      classifier - The value for classifier, can be null
    • setVersion

      public void setVersion(@NonNull String version)
      Assigns a value to the version attribute.
      Parameters:
      version - The value for version, can be null
    • groupIdIsSet

      public final boolean groupIdIsSet()
      Returns true if the required attribute groupId is set.
      Returns:
      true if set
    • artifactIdIsSet

      public final boolean artifactIdIsSet()
      Returns true if the required attribute artifactId is set.
      Returns:
      true if set
    • versionIsSet

      public final boolean versionIsSet()
      Returns true if the required attribute version is set.
      Returns:
      true if set
    • orderIsSet

      public final boolean orderIsSet()
      Returns true if the default attribute order is set.
      Returns:
      true if set
    • skipIsSet

      public final boolean skipIsSet()
      Returns true if the default attribute skip is set.
      Returns:
      true if set
    • unsetGroupId

      public final void unsetGroupId()
      Reset an attribute to its initial value.
    • unsetArtifactId

      public final void unsetArtifactId()
      Reset an attribute to its initial value.
    • unsetVersion

      public final void unsetVersion()
      Reset an attribute to its initial value.
    • unsetOrder

      public final void unsetOrder()
      Reset an attribute to its initial value.
    • unsetSkip

      public final void unsetSkip()
      Reset an attribute to its initial value.
    • isInitialized

      public final boolean isInitialized()
      Returns true if all required attributes are set, indicating that the object is initialized.
      Returns:
      true if set
    • toImmutable

      public final ImmutableBinaryMavenProtocPlugin toImmutable()
      Returns:
      An immutable instance of BinaryMavenProtocPlugin
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of BinaryMavenProtocPluginBean that have equal attribute values. An uninitialized instance is equal only to itself.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: options, outputDirectory, registerAsCompilationRoot, order, skip, groupId, artifactId, type, classifier, version.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value