public class MockSdk extends java.lang.Object implements Sdk, SdkModificator
Constructor and Description |
---|
MockSdk(java.lang.String name,
java.lang.String homePath,
java.lang.String versionString,
MultiMap<OrderRootType,VirtualFile> roots,
SdkTypeId sdkType) |
Modifier and Type | Method and Description |
---|---|
void |
addRoot(VirtualFile root,
OrderRootType rootType) |
Sdk |
clone() |
void |
commitChanges() |
VirtualFile |
getHomeDirectory() |
java.lang.String |
getHomePath() |
java.lang.String |
getName() |
RootProvider |
getRootProvider() |
VirtualFile [] |
getRoots(OrderRootType rootType) |
SdkAdditionalData |
getSdkAdditionalData() |
SdkModificator |
getSdkModificator() |
SdkTypeId |
getSdkType() |
<T> T |
getUserData(Key<T> key) |
java.lang.String |
getVersionString() |
boolean |
isWritable() |
<T> void |
putUserData(Key<T> key,
T value)
Add a new user data value to this object.
|
void |
removeAllRoots() |
void |
removeRoot(VirtualFile root,
OrderRootType rootType) |
void |
removeRoots(OrderRootType rootType) |
void |
setHomePath(java.lang.String path) |
void |
setName(java.lang.String name) |
void |
setSdkAdditionalData(SdkAdditionalData data) |
void |
setVersionString(java.lang.String versionString) |
java.lang.String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addRoot, getUrls, removeRoot
public MockSdk(java.lang.String name, java.lang.String homePath, java.lang.String versionString, MultiMap<OrderRootType,VirtualFile> roots, SdkTypeId sdkType)
public SdkTypeId getSdkType()
getSdkType
in interface Sdk
public java.lang.String getName()
getName
in interface Sdk
getName
in interface SdkModificator
public java.lang.String getVersionString()
getVersionString
in interface Sdk
getVersionString
in interface SdkModificator
public java.lang.String getHomePath()
getHomePath
in interface Sdk
getHomePath
in interface SdkModificator
public VirtualFile getHomeDirectory()
getHomeDirectory
in interface Sdk
public SdkAdditionalData getSdkAdditionalData()
getSdkAdditionalData
in interface Sdk
getSdkAdditionalData
in interface SdkModificator
public Sdk clone()
public SdkModificator getSdkModificator()
getSdkModificator
in interface Sdk
public VirtualFile [] getRoots(OrderRootType rootType)
getRoots
in interface SdkModificator
public void setName(java.lang.String name)
setName
in interface SdkModificator
public void setHomePath(java.lang.String path)
setHomePath
in interface SdkModificator
public void setVersionString(java.lang.String versionString)
setVersionString
in interface SdkModificator
public void setSdkAdditionalData(SdkAdditionalData data)
setSdkAdditionalData
in interface SdkModificator
public void addRoot(VirtualFile root, OrderRootType rootType)
addRoot
in interface SdkModificator
public void removeRoot(VirtualFile root, OrderRootType rootType)
removeRoot
in interface SdkModificator
public void removeRoots(OrderRootType rootType)
removeRoots
in interface SdkModificator
public void removeAllRoots()
removeAllRoots
in interface SdkModificator
public void commitChanges()
commitChanges
in interface SdkModificator
public boolean isWritable()
isWritable
in interface SdkModificator
public RootProvider getRootProvider()
getRootProvider
in interface Sdk
public <T> T getUserData(Key<T> key)
getUserData
in interface UserDataHolder
public <T> void putUserData(Key<T> key, T value)
UserDataHolder
putUserData
in interface UserDataHolder
public java.lang.String toString()
toString
in class java.lang.Object