Class MavenExclusionBean

java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.MavenExclusionBean
All Implemented Interfaces:
MavenExclusion

@Generated({"Modifiables.generator","MavenExclusion"}) public class MavenExclusionBean extends Object implements MavenExclusion
A modifiable implementation of the MavenExclusion 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.

MavenExclusionBean is not thread-safe

  • Field Details

    • INIT_BIT_GROUP_ID

      private static final long INIT_BIT_GROUP_ID
      See Also:
    • INIT_BIT_ARTIFACT_ID

      private static final long INIT_BIT_ARTIFACT_ID
      See Also:
    • OPT_BIT_CLASSIFIER

      private static final long OPT_BIT_CLASSIFIER
      See Also:
    • OPT_BIT_TYPE

      private static final long OPT_BIT_TYPE
      See Also:
    • initBits

      private long initBits
    • optBits

      private long optBits
    • groupId

      private String groupId
    • artifactId

      private String artifactId
    • classifier

      private String classifier
    • type

      private String type
  • Constructor Details

    • MavenExclusionBean

      public MavenExclusionBean()
  • Method Details

    • getGroupId

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

      public String getArtifactId()
      Specified by:
      getArtifactId in interface MavenExclusion
      Returns:
      value of artifactId attribute, may be null
    • getClassifier

      public String getClassifier()
      Specified by:
      getClassifier in interface MavenExclusion
      Returns:
      assigned or, otherwise, newly computed, not cached value of classifier attribute
    • getType

      public String getType()
      Specified by:
      getType in interface MavenExclusion
      Returns:
      assigned or, otherwise, newly computed, not cached value of type attribute
    • clear

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

      public MavenExclusionBean from(MavenExclusion instance)
      Fill this modifiable instance with attribute values from the provided MavenExclusion 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
    • from

      public MavenExclusionBean from(MavenExclusionBean instance)
      Fill this modifiable instance with attribute values from the provided MavenExclusion 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
    • 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
    • setClassifier

      public void setClassifier(String classifier)
      Assigns a value to the classifier attribute.

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

      Parameters:
      classifier - The value for classifier
    • setType

      public void setType(String type)
      Assigns a value to the type attribute.

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

      Parameters:
      type - The value for type
    • 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
    • classifierIsSet

      public final boolean classifierIsSet()
      Returns true if the default attribute classifier is set.
      Returns:
      true if set
    • typeIsSet

      public final boolean typeIsSet()
      Returns true if the default attribute type 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.
    • unsetClassifier

      public final void unsetClassifier()
      Reset an attribute to its initial value.
    • unsetType

      public final void unsetType()
      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
    • checkRequiredAttributes

      private void checkRequiredAttributes()
    • formatRequiredAttributesMessage

      private String formatRequiredAttributesMessage()
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of MavenExclusionBean 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
    • equalTo

      private boolean equalTo(MavenExclusionBean another)
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: groupId, artifactId, classifier, type.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Generates a string representation of this MavenExclusion. If uninitialized, some attribute values may appear as question marks.
      Overrides:
      toString in class Object
      Returns:
      A string representation