1 package org.apache.lucene.validation;
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 * A list of accepted licenses. See also http://www.apache.org/legal/3party.html
25 public enum LicenseType {
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)
39 private String display;
41 private boolean noticeRequired;
44 LicenseType(String display, boolean noticeRequired) {
45 this.display = display;
46 this.noticeRequired = noticeRequired;
49 public boolean isNoticeRequired() {
50 return noticeRequired;
53 public String getDisplay() {
58 public String toString() {
59 return "LicenseType{" +
60 "display='" + display + '\'' +