![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.maven.model.RepositoryPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-model Show documentation
Show all versions of maven-model Show documentation
Model for Maven POM (Project Object Model)
The newest version!
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello Velocity from model-v3.vm
// template, any modifications will be overwritten.
// ==============================================================
package org.apache.maven.model;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.maven.api.annotations.Generated;
import org.apache.maven.api.annotations.Nonnull;
@Generated
public class RepositoryPolicy
extends BaseObject
{
public RepositoryPolicy() {
this(org.apache.maven.api.model.RepositoryPolicy.newInstance());
}
public RepositoryPolicy(org.apache.maven.api.model.RepositoryPolicy delegate) {
this(delegate, null);
}
public RepositoryPolicy(org.apache.maven.api.model.RepositoryPolicy delegate, BaseObject parent) {
super(delegate, parent);
}
public RepositoryPolicy clone(){
return new RepositoryPolicy(getDelegate());
}
public org.apache.maven.api.model.RepositoryPolicy getDelegate() {
return (org.apache.maven.api.model.RepositoryPolicy) super.getDelegate();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || !(o instanceof RepositoryPolicy)) {
return false;
}
RepositoryPolicy that = (RepositoryPolicy) o;
return Objects.equals(this.delegate, that.delegate);
}
@Override
public int hashCode() {
return getDelegate().hashCode();
}
public String getEnabled() {
return getDelegate().getEnabled();
}
public void setEnabled(String enabled) {
if (!Objects.equals(enabled, getEnabled())) {
update(getDelegate().withEnabled(enabled));
}
}
public String getUpdatePolicy() {
return getDelegate().getUpdatePolicy();
}
public void setUpdatePolicy(String updatePolicy) {
if (!Objects.equals(updatePolicy, getUpdatePolicy())) {
update(getDelegate().withUpdatePolicy(updatePolicy));
}
}
public String getChecksumPolicy() {
return getDelegate().getChecksumPolicy();
}
public void setChecksumPolicy(String checksumPolicy) {
if (!Objects.equals(checksumPolicy, getChecksumPolicy())) {
update(getDelegate().withChecksumPolicy(checksumPolicy));
}
}
public InputLocation getLocation(Object key) {
org.apache.maven.api.model.InputLocation loc = getDelegate().getLocation(key);
return loc != null ? new InputLocation(loc) : null;
}
public void setLocation(Object key, InputLocation location) {
update(org.apache.maven.api.model.RepositoryPolicy.newBuilder(getDelegate(), true)
.location(key, location.toApiLocation()).build());
}
public InputLocation getImportedFrom() {
org.apache.maven.api.model.InputLocation loc = getDelegate().getImportedFrom();
return loc != null ? new InputLocation(loc) : null;
}
public void setImportedFrom(InputLocation location) {
update(org.apache.maven.api.model.RepositoryPolicy.newBuilder(getDelegate(), true)
.importedFrom(location.toApiLocation()).build());
}
public Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy