Package org.apache.maven.api.settings
Class RepositoryBase
java.lang.Object
org.apache.maven.api.settings.TrackableBase
org.apache.maven.api.settings.IdentifiableBase
org.apache.maven.api.settings.RepositoryBase
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
- Direct Known Subclasses:
- Repository
@Experimental
@Generated
@ThreadSafe
@Immutable
public class RepositoryBase
extends IdentifiableBase
implements Serializable, InputLocationTracker
Repository contains the information needed
 for establishing connections with remote repository
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create RepositoryBase instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedRepositoryBase(RepositoryBase.Builder builder) Constructor for this class, to be called from its subclasses andRepositoryBase.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionThe type of layout this repository uses for locating and storing artifacts - can be "legacy" or "default".getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.getName()Human readable name of the repository.getUrl()The url of the repository.static RepositoryBase.BuilderCreates a newRepositoryBasebuilder instance.static RepositoryBase.BuildernewBuilder(boolean withDefaults) Creates a newRepositoryBasebuilder instance using default values or not.static RepositoryBase.BuildernewBuilder(RepositoryBase from) Creates a newRepositoryBasebuilder instance using the specified object as a basis.static RepositoryBase.BuildernewBuilder(RepositoryBase from, boolean forceCopy) Creates a newRepositoryBasebuilder instance using the specified object as a basis.static RepositoryBaseCreates a newRepositoryBaseinstance.static RepositoryBasenewInstance(boolean withDefaults) Creates a newRepositoryBaseinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newRepositoryBaseinstance using the specified id.withLayout(String layout) Creates a newRepositoryBaseinstance using the specified layout.Creates a newRepositoryBaseinstance using the specified name.Creates a newRepositoryBaseinstance using the specified url.Methods inherited from class org.apache.maven.api.settings.IdentifiableBasegetId, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.TrackableBasegetImportedFrom, newBuilder, newBuilder
- 
Constructor Details- 
RepositoryBaseConstructor for this class, to be called from its subclasses andRepositoryBase.Builder.- See Also:
 
 
- 
- 
Method Details- 
getNameHuman readable name of the repository.- Returns:
- a String
 
- 
getUrlThe url of the repository.- Returns:
- a String
 
- 
getLayoutThe type of layout this repository uses for locating and storing artifacts - can be "legacy" or "default".- Returns:
- a String
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- IdentifiableBase
 
- 
getLocationKeysGets the keys of the locations of the input source.- Overrides:
- getLocationKeysin class- IdentifiableBase
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- IdentifiableBase
- Returns:
- a Builder
 
- 
withIdCreates a newRepositoryBaseinstance using the specified id.- Overrides:
- withIdin class- IdentifiableBase
- Parameters:
- id- the new- Stringto use
- Returns:
- a RepositoryBasewith the specified id
 
- 
withNameCreates a newRepositoryBaseinstance using the specified name.- Parameters:
- name- the new- Stringto use
- Returns:
- a RepositoryBasewith the specified name
 
- 
withUrlCreates a newRepositoryBaseinstance using the specified url.- Parameters:
- url- the new- Stringto use
- Returns:
- a RepositoryBasewith the specified url
 
- 
withLayoutCreates a newRepositoryBaseinstance using the specified layout.- Parameters:
- layout- the new- Stringto use
- Returns:
- a RepositoryBasewith the specified layout
 
- 
newInstanceCreates a newRepositoryBaseinstance. Equivalent tonewInstance(true).- Returns:
- a new RepositoryBase
- See Also:
 
- 
newInstanceCreates a newRepositoryBaseinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new RepositoryBase
 
- 
newBuilderCreates a newRepositoryBasebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newRepositoryBasebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newRepositoryBasebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- RepositoryBaseinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newRepositoryBasebuilder instance using the specified object as a basis.- Parameters:
- from- the- RepositoryBaseinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-