public final class WorkspaceRepository extends java.lang.Object implements ArtifactRepository
WorkspaceReader
.Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
key |
private java.lang.String |
type |
Constructor and Description |
---|
WorkspaceRepository()
Creates a new workspace repository of type
"workspace" and a random key. |
WorkspaceRepository(java.lang.String type)
Creates a new workspace repository with the specified type and a random key.
|
WorkspaceRepository(java.lang.String type,
java.lang.Object key)
Creates a new workspace repository with the specified type and key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContentType()
Gets the type of the repository, for example "default".
|
java.lang.String |
getId()
Gets the identifier of this repository.
|
java.lang.Object |
getKey()
Gets the key of this workspace repository.
|
int |
hashCode() |
java.lang.String |
toString() |
public WorkspaceRepository()
"workspace"
and a random key.public WorkspaceRepository(java.lang.String type)
type
- The type of the repository, may be null
.public WorkspaceRepository(java.lang.String type, java.lang.Object key)
type
- The type of the repository, may be null
.key
- The (comparison) key for the repository, may be null
to generate a unique random key.public java.lang.String getContentType()
ArtifactRepository
getContentType
in interface ArtifactRepository
null
.public java.lang.String getId()
ArtifactRepository
getId
in interface ArtifactRepository
null
.public java.lang.Object getKey()
null
.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