public class VcsDirectoryMapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MAPPING_DIR |
static VcsDirectoryMapping[] |
EMPTY_ARRAY |
static java.lang.String |
PROJECT_CONSTANT |
Constructor and Description |
---|
VcsDirectoryMapping(java.lang.String directory,
java.lang.String vcs)
Empty string as 'directory' denotes "default mapping" aka "<Project>".
|
VcsDirectoryMapping(java.lang.String directory,
java.lang.String vcs,
VcsRootSettings rootSettings) |
Modifier and Type | Method and Description |
---|---|
static VcsDirectoryMapping |
createDefault(java.lang.String vcs) |
boolean |
equals(java.lang.Object o) |
@SystemIndependent java.lang.String |
getDirectory() |
VcsRootSettings |
getRootSettings()
Returns the VCS-specific settings for the given mapping.
|
java.lang.String |
getVcs() |
int |
hashCode() |
boolean |
isDefaultMapping() |
void |
setRootSettings(VcsRootSettings rootSettings)
Deprecated.
Use constructor parameter
|
java.lang.String |
systemIndependentPath()
Deprecated.
Use
getDirectory() |
java.lang.String |
toString() |
public static final java.lang.String DEFAULT_MAPPING_DIR
public static final java.lang.String PROJECT_CONSTANT
public static final VcsDirectoryMapping[] EMPTY_ARRAY
public VcsDirectoryMapping(java.lang.String directory, java.lang.String vcs)
DefaultVcsRootPolicy
to
find actual vcs roots that cover project files.public VcsDirectoryMapping(java.lang.String directory, java.lang.String vcs, VcsRootSettings rootSettings)
public static VcsDirectoryMapping createDefault(java.lang.String vcs)
public @SystemIndependent java.lang.String getDirectory()
@Deprecated public java.lang.String systemIndependentPath()
getDirectory()
public java.lang.String getVcs()
public VcsRootSettings getRootSettings()
AbstractVcs.getRootConfigurable(VcsDirectoryMapping)
@Deprecated public void setRootSettings(VcsRootSettings rootSettings)
rootSettings
- the VCS-specific settingspublic boolean isDefaultMapping()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object