IDEADEV-41212: Created an artifact from a folder, then renamed the artifact and it...
[fedora-idea.git] / java / compiler / openapi / src / com / intellij / packaging / artifacts / ArtifactModel.java
blob1a11ecbb4c67c0fa5e420cc752999a8888b81754
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package com.intellij.packaging.artifacts;
18 import org.jetbrains.annotations.NotNull;
19 import org.jetbrains.annotations.Nullable;
21 import java.util.Collection;
23 /**
24 * @author nik
26 public interface ArtifactModel {
27 @NotNull
28 Artifact[] getArtifacts();
30 @Nullable
31 Artifact findArtifact(@NotNull String name);
33 @NotNull
34 Artifact getArtifactByOriginal(@NotNull Artifact artifact);
36 @NotNull
37 Artifact getOriginalArtifact(@NotNull Artifact artifact);
39 Collection<? extends Artifact> getArtifactsByType(@NotNull ArtifactType type);