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 BaseObject
BaseObject.ChildrenTracking -
Field Summary
Fields inherited from class BaseObject
childrenTracking, delegate -
Constructor Summary
ConstructorsConstructorDescriptionRepository(org.apache.maven.api.model.Repository delegate) Repository(org.apache.maven.api.model.Repository delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanorg.apache.maven.api.model.RepositorygetLocation(Object key) Gets the location of the specified field in the input source.inthashCode()protected booleanstatic List<Repository> repositoryToApiV3(List<org.apache.maven.api.model.Repository> list) static List<org.apache.maven.api.model.Repository> repositoryToApiV4(List<Repository> list) voidsetImportedFrom(InputLocation location) voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetReleases(RepositoryPolicy releases) voidsetSnapshots(RepositoryPolicy snapshots) Methods inherited from class RepositoryBase
getId, getLayout, getName, getUrl, repositoryBaseToApiV3, repositoryBaseToApiV4, setId, setLayout, setName, setUrlMethods inherited from class BaseObject
update
-
Constructor Details
-
Repository
public Repository() -
Repository
public Repository(org.apache.maven.api.model.Repository delegate) -
Repository
-
-
Method Details
-
clone
- Overrides:
clonein classRepositoryBase
-
getDelegate
public org.apache.maven.api.model.Repository 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.
-
getImportedFrom
- Overrides:
getImportedFromin classRepositoryBase
-
setImportedFrom
- Overrides:
setImportedFromin classRepositoryBase
-
getLocationKeys
- Overrides:
getLocationKeysin classRepositoryBase
-
replace
- Overrides:
replacein classRepositoryBase
-
repositoryToApiV4
-
repositoryToApiV3
-