Package org.apache.maven.model
Class RepositoryPolicy
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.RepositoryPolicy
- All Implemented Interfaces:
Serializable,Cloneable,InputLocationTracker
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.model.BaseObject
BaseObject.ChildrenTracking -
Field Summary
Fields inherited from class org.apache.maven.model.BaseObject
childrenTracking, delegate -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryPolicy(org.apache.maven.api.model.RepositoryPolicy delegate) RepositoryPolicy(org.apache.maven.api.model.RepositoryPolicy delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanorg.apache.maven.api.model.RepositoryPolicygetLocation(Object key) Gets the location of the specified field in the input source.inthashCode()booleanprotected booleanstatic List<RepositoryPolicy>repositoryPolicyToApiV3(List<org.apache.maven.api.model.RepositoryPolicy> list) static List<org.apache.maven.api.model.RepositoryPolicy>voidsetChecksumPolicy(String checksumPolicy) voidsetEnabled(boolean enabled) voidsetEnabled(String enabled) voidsetImportedFrom(InputLocation location) voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetUpdatePolicy(String updatePolicy) Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
RepositoryPolicy
public RepositoryPolicy() -
RepositoryPolicy
public RepositoryPolicy(org.apache.maven.api.model.RepositoryPolicy delegate) -
RepositoryPolicy
-
-
Method Details
-
clone
-
getDelegate
public org.apache.maven.api.model.RepositoryPolicy getDelegate()- Overrides:
getDelegatein classBaseObject
-
equals
-
hashCode
public int hashCode() -
getEnabled
-
setEnabled
-
getUpdatePolicy
-
setUpdatePolicy
-
getChecksumPolicy
-
setChecksumPolicy
-
getLocation
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Parameters:
key- The key of the field, must not benull.- Returns:
- The location of the field in the input source or
nullif unknown.
-
setLocation
Description copied from interface:InputLocationTrackerSets the location of the specified field.- Parameters:
key- The key of the field, must not benull.location- The location of the field, may benull.
-
getImportedFrom
-
setImportedFrom
-
getLocationKeys
-
replace
- Overrides:
replacein classBaseObject
-
repositoryPolicyToApiV4
public static List<org.apache.maven.api.model.RepositoryPolicy> repositoryPolicyToApiV4(List<RepositoryPolicy> list) -
repositoryPolicyToApiV3
public static List<RepositoryPolicy> repositoryPolicyToApiV3(List<org.apache.maven.api.model.RepositoryPolicy> list) -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-