Package org.apache.maven.model
Class Repository
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.RepositoryBase
org.apache.maven.model.Repository
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- Direct Known Subclasses:
DeploymentRepository
- 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
ConstructorDescriptionRepository
(Repository delegate) Repository
(Repository delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getLocation
(Object key) Gets the location of the specified field in the input source.int
hashCode()
protected boolean
static List
<Repository> repositoryToApiV3
(List<Repository> list) static List
<Repository> repositoryToApiV4
(List<Repository> list) void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setReleases
(RepositoryPolicy releases) void
setSnapshots
(RepositoryPolicy snapshots) Methods inherited from class org.apache.maven.model.RepositoryBase
getId, getLayout, getName, getUrl, repositoryBaseToApiV3, repositoryBaseToApiV4, setId, setLayout, setName, setUrl
Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
Repository
public Repository() -
Repository
-
Repository
-
-
Method Details
-
clone
- Overrides:
clone
in classRepositoryBase
-
getDelegate
- Overrides:
getDelegate
in classRepositoryBase
-
equals
- Overrides:
equals
in classRepositoryBase
-
hashCode
public int hashCode()- Overrides:
hashCode
in classRepositoryBase
-
getReleases
-
setReleases
-
getSnapshots
-
setSnapshots
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classRepositoryBase
- Parameters:
key
- The key of the field, must not benull
.- Returns:
- The location of the field in the input source or
null
if unknown.
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Overrides:
setLocation
in classRepositoryBase
- Parameters:
key
- The key of the field, must not benull
.location
- The location of the field, may benull
.
-
replace
- Overrides:
replace
in classRepositoryBase
-
repositoryToApiV4
-
repositoryToApiV3
-