001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.8.3,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.profiles;
007
008/**
009 * Download policy.
010 * 
011 * @version $Revision$ $Date$
012 */
013@SuppressWarnings( "all" )
014public class RepositoryPolicy
015    implements java.io.Serializable
016{
017
018      //--------------------------/
019     //- Class/Member Variables -/
020    //--------------------------/
021
022    /**
023     * Whether to use this repository for downloading this type of
024     * artifact.
025     */
026    private boolean enabled = true;
027
028    /**
029     * 
030     *             The frequency for downloading updates - can be
031     * "always", "daily" (default), "interval:XXX" (in minutes) or
032     *             "never" (only if it doesn't exist locally).
033     *           
034     */
035    private String updatePolicy;
036
037    /**
038     * What to do when verification of an artifact checksum fails -
039     * warn, fail, etc. Valid values are
040     *             "fail" or "warn".
041     */
042    private String checksumPolicy;
043
044
045      //-----------/
046     //- Methods -/
047    //-----------/
048
049    /**
050     * Get what to do when verification of an artifact checksum
051     * fails - warn, fail, etc. Valid values are
052     *             "fail" or "warn".
053     * 
054     * @return String
055     */
056    public String getChecksumPolicy()
057    {
058        return this.checksumPolicy;
059    } //-- String getChecksumPolicy()
060
061    /**
062     * Get the frequency for downloading updates - can be "always",
063     * "daily" (default), "interval:XXX" (in minutes) or
064     *             "never" (only if it doesn't exist locally).
065     * 
066     * @return String
067     */
068    public String getUpdatePolicy()
069    {
070        return this.updatePolicy;
071    } //-- String getUpdatePolicy()
072
073    /**
074     * Get whether to use this repository for downloading this type
075     * of artifact.
076     * 
077     * @return boolean
078     */
079    public boolean isEnabled()
080    {
081        return this.enabled;
082    } //-- boolean isEnabled()
083
084    /**
085     * Set what to do when verification of an artifact checksum
086     * fails - warn, fail, etc. Valid values are
087     *             "fail" or "warn".
088     * 
089     * @param checksumPolicy
090     */
091    public void setChecksumPolicy( String checksumPolicy )
092    {
093        this.checksumPolicy = checksumPolicy;
094    } //-- void setChecksumPolicy( String )
095
096    /**
097     * Set whether to use this repository for downloading this type
098     * of artifact.
099     * 
100     * @param enabled
101     */
102    public void setEnabled( boolean enabled )
103    {
104        this.enabled = enabled;
105    } //-- void setEnabled( boolean )
106
107    /**
108     * Set the frequency for downloading updates - can be "always",
109     * "daily" (default), "interval:XXX" (in minutes) or
110     *             "never" (only if it doesn't exist locally).
111     * 
112     * @param updatePolicy
113     */
114    public void setUpdatePolicy( String updatePolicy )
115    {
116        this.updatePolicy = updatePolicy;
117    } //-- void setUpdatePolicy( String )
118
119}