public class RepositoryBase extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
id
A unique identifier for a repository.
|
private InputLocation |
idLocation
Field idLocation.
|
private java.lang.String |
layout
The type of layout this repository uses for
locating and storing artifacts -
can be
legacy or
default. |
private InputLocation |
layoutLocation
Field layoutLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private java.lang.String |
name
Human readable name of the repository.
|
private InputLocation |
nameLocation
Field nameLocation.
|
private java.lang.String |
url
The url of the repository, in the form
protocol://hostname/path. |
private InputLocation |
urlLocation
Field urlLocation.
|
| Constructor and Description |
|---|
RepositoryBase() |
| Modifier and Type | Method and Description |
|---|---|
RepositoryBase |
clone()
Method clone.
|
boolean |
equals(java.lang.Object other)
Method equals.
|
java.lang.String |
getId()
Get a unique identifier for a repository.
|
java.lang.String |
getLayout()
Get the type of layout this repository uses for locating and
storing artifacts -
can be
legacy or
default. |
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
java.lang.String |
getName()
Get human readable name of the repository.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
java.lang.String |
getUrl()
Get the url of the repository, in the form
protocol://hostname/path. |
int |
hashCode()
Method hashCode.
|
void |
setId(java.lang.String id)
Set a unique identifier for a repository.
|
void |
setLayout(java.lang.String layout)
Set the type of layout this repository uses for locating and
storing artifacts -
can be
legacy or
default. |
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setName(java.lang.String name)
Set human readable name of the repository.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
void |
setUrl(java.lang.String url)
Set the url of the repository, in the form
protocol://hostname/path. |
java.lang.String |
toString()
Method toString.
|
private java.lang.String id
settings.xml file, for example. Furthermore,
the identifier is
used during POM inheritance and profile
injection to detect repositories that should be merged.private java.lang.String name
private java.lang.String url
protocol://hostname/path.private java.lang.String layout
legacy or
default.private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation idLocation
private InputLocation nameLocation
private InputLocation urlLocation
private InputLocation layoutLocation
public RepositoryBase clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - public java.lang.String getId()
settings.xml file, for example. Furthermore,
the identifier is
used during POM inheritance and profile
injection to detect repositories that should be merged.public java.lang.String getLayout()
legacy or
default.public InputLocation getLocation(java.lang.Object key)
InputLocationTrackergetLocation in interface InputLocationTrackerkey - public java.lang.String getName()
public void setLocation(java.lang.Object key,
InputLocation location)
InputLocationTrackersetLocation in interface InputLocationTrackerkey - location - public void setOtherLocation(java.lang.Object key,
InputLocation location)
key - location - private InputLocation getOtherLocation(java.lang.Object key)
key - public java.lang.String getUrl()
protocol://hostname/path.public int hashCode()
hashCode in class java.lang.Objectpublic void setId(java.lang.String id)
settings.xml file, for example. Furthermore,
the identifier is
used during POM inheritance and profile
injection to detect repositories that should be merged.id - public void setLayout(java.lang.String layout)
legacy or
default.layout - public void setName(java.lang.String name)
name - public void setUrl(java.lang.String url)
protocol://hostname/path.url - public java.lang.String toString()
toString in class java.lang.Object