org.apache.maven.model
Class Repository

java.lang.Object
  extended by org.apache.maven.model.RepositoryBase
      extended by org.apache.maven.model.Repository
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker
Direct Known Subclasses:
DeploymentRepository

public class Repository
extends RepositoryBase
implements Serializable, Cloneable

A repository contains the information needed for establishing connections with remote repository.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Repository()
           
 
Method Summary
 Repository clone()
          Method clone.
 RepositoryPolicy getReleases()
          Get how to handle downloading of releases from this repository.
 RepositoryPolicy getSnapshots()
          Get how to handle downloading of snapshots from this repository.
 void setReleases(RepositoryPolicy releases)
          Set how to handle downloading of releases from this repository.
 void setSnapshots(RepositoryPolicy snapshots)
          Set how to handle downloading of snapshots from this repository.
 
Methods inherited from class org.apache.maven.model.RepositoryBase
equals, getId, getLayout, getLocation, getName, getUrl, hashCode, setId, setLayout, setLocation, setName, setUrl, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Repository

public Repository()
Method Detail

clone

public Repository clone()
Method clone.

Overrides:
clone in class RepositoryBase
Returns:
Repository

getReleases

public RepositoryPolicy getReleases()
Get how to handle downloading of releases from this repository.

Returns:
RepositoryPolicy

getSnapshots

public RepositoryPolicy getSnapshots()
Get how to handle downloading of snapshots from this repository.

Returns:
RepositoryPolicy

setReleases

public void setReleases(RepositoryPolicy releases)
Set how to handle downloading of releases from this repository.

Parameters:
releases -

setSnapshots

public void setSnapshots(RepositoryPolicy snapshots)
Set how to handle downloading of snapshots from this repository.

Parameters:
snapshots -


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.