public final class LocalRepository extends java.lang.Object implements ArtifactRepository
LocalRepositoryManager
which is usually determined from the type
of
the repository.Modifier and Type | Field and Description |
---|---|
private java.io.File |
basedir |
private java.lang.String |
type |
Constructor and Description |
---|
LocalRepository(java.io.File basedir)
Creates a new local repository with the specified base directory and unknown type.
|
LocalRepository(java.io.File basedir,
java.lang.String type)
Creates a new local repository with the specified properties.
|
LocalRepository(java.lang.String basedir)
Creates a new local repository with the specified base directory and unknown type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.io.File |
getBasedir()
Gets the base directory of the repository.
|
java.lang.String |
getContentType()
Gets the type of the repository, for example "default".
|
java.lang.String |
getId()
Gets the identifier of this repository.
|
private static int |
hash(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public LocalRepository(java.lang.String basedir)
basedir
- The base directory of the repository, may be null
.public LocalRepository(java.io.File basedir)
basedir
- The base directory of the repository, may be null
.public LocalRepository(java.io.File basedir, java.lang.String type)
basedir
- The base directory of the repository, may be null
.type
- The type of the repository, may be null
.public java.lang.String getContentType()
ArtifactRepository
getContentType
in interface ArtifactRepository
null
.public java.lang.String getId()
ArtifactRepository
getId
in interface ArtifactRepository
null
.public java.io.File getBasedir()
null
if none.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
private static int hash(java.lang.Object obj)