Class Dependency

java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.Dependency
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

@Generated public class Dependency extends BaseObject
See Also:
  • Constructor Details

    • Dependency

      public Dependency()
    • Dependency

      public Dependency(Dependency delegate)
    • Dependency

      public Dependency(Dependency delegate, BaseObject parent)
  • Method Details

    • clone

      public Dependency clone()
      Overrides:
      clone in class Object
    • getDelegate

      public Dependency getDelegate()
      Overrides:
      getDelegate in class BaseObject
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getGroupId

      public String getGroupId()
    • setGroupId

      public void setGroupId(String groupId)
    • getArtifactId

      public String getArtifactId()
    • setArtifactId

      public void setArtifactId(String artifactId)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getClassifier

      public String getClassifier()
    • setClassifier

      public void setClassifier(String classifier)
    • getScope

      public String getScope()
    • setScope

      public void setScope(String scope)
    • getSystemPath

      public String getSystemPath()
    • setSystemPath

      public void setSystemPath(String systemPath)
    • getExclusions

      @Nonnull public List<Exclusion> getExclusions()
    • setExclusions

      public void setExclusions(List<Exclusion> exclusions)
    • addExclusion

      public void addExclusion(Exclusion exclusion)
    • removeExclusion

      public void removeExclusion(Exclusion exclusion)
    • getOptional

      public String getOptional()
    • setOptional

      public void setOptional(String optional)
    • getLocation

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      Parameters:
      key - The key of the field, must not be null.
      Returns:
      The location of the field in the input source or null if unknown.
    • setLocation

      public void setLocation(Object key, InputLocation location)
      Description copied from interface: InputLocationTracker
      Sets the location of the specified field.
      Parameters:
      key - The key of the field, must not be null.
      location - The location of the field, may be null.
    • getImportedFrom

      public InputLocation getImportedFrom()
    • setImportedFrom

      public void setImportedFrom(InputLocation location)
    • getLocationKeys

      public Set<Object> getLocationKeys()
    • replace

      protected boolean replace(Object oldDelegate, Object newDelegate)
      Overrides:
      replace in class BaseObject
    • dependencyToApiV4

      public static List<Dependency> dependencyToApiV4(List<Dependency> list)
    • dependencyToApiV3

      public static List<Dependency> dependencyToApiV3(List<Dependency> list)
    • isOptional

      public boolean isOptional()
    • setOptional

      public void setOptional(boolean optional)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • getManagementKey

      public String getManagementKey()
      Returns:
      the management key as groupId:artifactId:type