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
.facet
.impl
.autodetecting
.model
;
18 import com
.intellij
.facet
.FacetConfiguration
;
19 import com
.intellij
.facet
.FacetType
;
20 import org
.jetbrains
.annotations
.NotNull
;
21 import org
.jetbrains
.annotations
.Nullable
;
23 import java
.util
.ArrayList
;
24 import java
.util
.Collection
;
29 public class DetectedFacetInfoImpl
<M
> implements DetectedFacetInfo
<M
> {
30 private final String myFacetName
;
31 private final FacetConfiguration myConfiguration
;
32 private final FacetType
<?
,?
> myFacetType
;
33 private final FacetInfo2
<M
> myUnderlyingFacetInfo
;
34 private final M myModule
;
35 private final Collection
<String
> myUrls
;
36 private final int myId
;
37 private final String myDetectorId
;
39 public DetectedFacetInfoImpl(final @NotNull String facetName
, final @NotNull FacetConfiguration configuration
, final @NotNull FacetType
<?
, ?
> facetType
,
40 final @NotNull M module
,
41 final @Nullable FacetInfo2
<M
> underlyingFacetInfo
,
44 final String detectorId
) {
45 myFacetName
= facetName
;
46 myConfiguration
= configuration
;
47 myFacetType
= facetType
;
49 myUnderlyingFacetInfo
= underlyingFacetInfo
;
51 myDetectorId
= detectorId
;
52 myUrls
= new ArrayList
<String
>();
57 public String
getFacetName() {
62 public FacetConfiguration
getConfiguration() {
63 return myConfiguration
;
67 public FacetType
<?
,?
> getFacetType() {
71 public FacetInfo2
<M
> getUnderlyingFacetInfo() {
72 return myUnderlyingFacetInfo
;
76 public M
getModule() {
84 public String
getDetectorId() {