pylucene 3.5.0-3
[pylucene.git] / lucene-java-3.5.0 / lucene / src / tools / java / org / apache / lucene / validation / LicenseType.java
1 package org.apache.lucene.validation;
2
3
4 /*
5  * Licensed to the Apache Software Foundation (ASF) under one or more
6  * contributor license agreements.  See the NOTICE file distributed with
7  * this work for additional information regarding copyright ownership.
8  * The ASF licenses this file to You under the Apache License, Version 2.0
9  * (the "License"); you may not use this file except in compliance with
10  * the License.  You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 /**
22  * A list of accepted licenses.  See also http://www.apache.org/legal/3party.html
23  *
24  **/
25 public enum LicenseType {
26
27   ASL("Apache Software License 2.0", true),
28   BSD("Berkeley Software Distribution", true),
29   BSD_LIKE("BSD like license", true),//BSD like just means someone has taken the BSD license and put in their name, copyright, or it's a very similar license.
30   CDDL("Common Development and Distribution License", false),
31   CPL("Common Public License", true),
32   MIT("Massachusetts Institute of Tech. License", false),
33   MPL("Mozilla Public License", false), //NOT SURE on the required notice
34   PD("Public Domain", false),
35   //SUNBCLA("Sun Binary Code License Agreement"),
36   SUN("Sun Open Source License", false)
37           ;
38
39   private String display;
40
41   private boolean noticeRequired;
42
43
44   LicenseType(String display, boolean noticeRequired) {
45     this.display = display;
46     this.noticeRequired = noticeRequired;
47   }
48
49   public boolean isNoticeRequired() {
50     return noticeRequired;
51   }
52
53   public String getDisplay() {
54     return display;
55   }
56
57
58   public String toString() {
59     return "LicenseType{" +
60             "display='" + display + '\'' +
61             '}';
62   }
63 }
64