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
ConstructorsConstructorDescriptionRepository(Repository delegate) Repository(Repository delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetLocation(Object key) Gets the location of the specified field in the input source.inthashCode()protected booleanstatic List<Repository>repositoryToApiV3(List<Repository> list) static List<Repository>repositoryToApiV4(List<Repository> list) voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetReleases(RepositoryPolicy releases) voidsetSnapshots(RepositoryPolicy snapshots) Methods inherited from class org.apache.maven.model.RepositoryBase
getId, getLayout, getName, getUrl, repositoryBaseToApiV3, repositoryBaseToApiV4, setId, setLayout, setName, setUrlMethods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
Repository
public Repository() -
Repository
-
Repository
-
-
Method Details
-
clone
- Overrides:
clonein classRepositoryBase
-
getDelegate
- Overrides:
getDelegatein classRepositoryBase
-
equals
- Overrides:
equalsin classRepositoryBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classRepositoryBase
-
getReleases
-
setReleases
-
getSnapshots
-
setSnapshots
-
getLocation
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Overrides:
getLocationin classRepositoryBase- 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.- Specified by:
setLocationin interfaceInputLocationTracker- Overrides:
setLocationin classRepositoryBase- Parameters:
key- The key of the field, must not benull.location- The location of the field, may benull.
-
replace
- Overrides:
replacein classRepositoryBase
-
repositoryToApiV4
-
repositoryToApiV3
-