public final class WorkspaceRepository extends Object implements ArtifactRepository
WorkspaceReader
.Constructor and Description |
---|
WorkspaceRepository()
Creates a new workspace repository of type
"workspace" and a random key. |
WorkspaceRepository(String type)
Creates a new workspace repository with the specified type and a random key.
|
WorkspaceRepository(String type,
Object key)
Creates a new workspace repository with the specified type and key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getContentType()
Gets the type of the repository, for example "default".
|
String |
getId()
Gets the identifier of this repository.
|
Object |
getKey()
Gets the key of this workspace repository.
|
int |
hashCode() |
String |
toString() |
public WorkspaceRepository()
"workspace"
and a random key.public WorkspaceRepository(String type)
type
- The type of the repository, may be null
.public WorkspaceRepository(String type, 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 String getContentType()
ArtifactRepository
getContentType
in interface ArtifactRepository
null
.public String getId()
ArtifactRepository
getId
in interface ArtifactRepository
null
.public Object getKey()
null
.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.