Class RepositoryPolicy

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

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

  • Method Details

    • clone

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

      public RepositoryPolicy 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
    • getEnabled

      public String getEnabled()
    • setEnabled

      public void setEnabled(String enabled)
    • getUpdatePolicy

      public String getUpdatePolicy()
    • setUpdatePolicy

      public void setUpdatePolicy(String updatePolicy)
    • getChecksumPolicy

      public String getChecksumPolicy()
    • setChecksumPolicy

      public void setChecksumPolicy(String checksumPolicy)
    • 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.
    • replace

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

      public static List<RepositoryPolicy> repositoryPolicyToApiV4(List<RepositoryPolicy> list)
    • repositoryPolicyToApiV3

      public static List<RepositoryPolicy> repositoryPolicyToApiV3(List<RepositoryPolicy> list)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)