Package org.apache.maven.model
Class RepositoryPolicy
- java.lang.Object
-
- org.apache.maven.model.RepositoryPolicy
-
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
public class RepositoryPolicy extends Object implements Serializable, Cloneable, InputLocationTracker
Download policy.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepositoryPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryPolicy
clone()
Method clone.String
getChecksumPolicy()
Get what to do when verification of an artifact checksum fails.String
getEnabled()
Get whether to use this repository for downloading this type of artifact.InputLocation
getLocation(Object key)
Gets the location of the specified field in the input source.String
getUpdatePolicy()
Get the frequency for downloading updates - can bealways,
daily
(default),interval:XXX
(in minutes) ornever
(only if it doesn't exist locally).boolean
isEnabled()
void
setChecksumPolicy(String checksumPolicy)
Set what to do when verification of an artifact checksum fails.void
setEnabled(boolean enabled)
void
setEnabled(String enabled)
Set whether to use this repository for downloading this type of artifact.void
setLocation(Object key, InputLocation location)
Sets the location of the specified field.void
setOtherLocation(Object key, InputLocation location)
void
setUpdatePolicy(String updatePolicy)
Set the frequency for downloading updates - can bealways,
daily
(default),interval:XXX
(in minutes) ornever
(only if it doesn't exist locally).
-
-
-
Method Detail
-
clone
public RepositoryPolicy clone()
Method clone.
-
getChecksumPolicy
public String getChecksumPolicy()
Get what to do when verification of an artifact checksum fails. Valid values areignore
,fail
orwarn
(the default).- Returns:
- String
-
getEnabled
public String getEnabled()
Get whether to use this repository for downloading this type of artifact. Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
. Default value istrue
.- Returns:
- String
-
getLocation
public InputLocation getLocation(Object key)
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setLocation
public void setLocation(Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
public void setOtherLocation(Object key, InputLocation location)
- Parameters:
key
- a key object.location
- a location object.
-
getUpdatePolicy
public String getUpdatePolicy()
Get the frequency for downloading updates - can bealways,
daily
(default),interval:XXX
(in minutes) ornever
(only if it doesn't exist locally).- Returns:
- String
-
setChecksumPolicy
public void setChecksumPolicy(String checksumPolicy)
Set what to do when verification of an artifact checksum fails. Valid values areignore
,fail
orwarn
(the default).- Parameters:
checksumPolicy
- a checksumPolicy object.
-
setEnabled
public void setEnabled(String enabled)
Set whether to use this repository for downloading this type of artifact. Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
. Default value istrue
.- Parameters:
enabled
- a enabled object.
-
setUpdatePolicy
public void setUpdatePolicy(String updatePolicy)
Set the frequency for downloading updates - can bealways,
daily
(default),interval:XXX
(in minutes) ornever
(only if it doesn't exist locally).- Parameters:
updatePolicy
- a updatePolicy object.
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
-