9dff243988c15c7bdaf0ee9e6e0be132bb5a4e25
[idea/community.git] / platform / projectModel-api / src / com / intellij / openapi / projectRoots / Sdk.java
1 /*
2  * Copyright 2000-2012 JetBrains s.r.o.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.intellij.openapi.projectRoots;
17
18 import com.intellij.openapi.roots.ProjectRootManager;
19 import com.intellij.openapi.roots.RootProvider;
20 import com.intellij.openapi.util.UserDataHolder;
21 import com.intellij.openapi.vfs.VirtualFile;
22 import org.jetbrains.annotations.NotNull;
23 import org.jetbrains.annotations.Nullable;
24
25 /**
26  * @author Eugene Zhuravlev
27  *         Date: Sep 23, 2004
28  *
29  * @see ProjectJdkTable
30  * @see ProjectRootManager#getProjectSdk()
31  */
32 public interface Sdk extends UserDataHolder {
33   @NotNull
34   SdkTypeId getSdkType();
35
36   @NotNull
37   String getName();
38
39   @Nullable
40   String getVersionString();
41
42   @Nullable
43   String getHomePath();
44
45   @Nullable
46   VirtualFile getHomeDirectory();
47
48   @NotNull
49   RootProvider getRootProvider();
50
51   @NotNull
52   SdkModificator getSdkModificator();
53
54   @Nullable
55   SdkAdditionalData getSdkAdditionalData();
56
57   @NotNull
58   Object clone() throws CloneNotSupportedException;
59 }