You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by bo...@apache.org on 2011/07/20 09:35:17 UTC

svn commit: r1148636 - /incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/license/SimpleLicenseFamily.java

Author: bodewig
Date: Wed Jul 20 07:35:16 2011
New Revision: 1148636

URL: http://svn.apache.org/viewvc?rev=1148636&view=rev
Log:
add a simple implementation of ILicenseFamily that can be used as a datatype inside the Antlib later as well

Added:
    incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/license/SimpleLicenseFamily.java   (with props)

Added: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/license/SimpleLicenseFamily.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/license/SimpleLicenseFamily.java?rev=1148636&view=auto
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/license/SimpleLicenseFamily.java (added)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/license/SimpleLicenseFamily.java Wed Jul 20 07:35:16 2011
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ */ 
+package org.apache.rat.license;
+
+/**
+ * Trivial bean implementing ILicenseFamily
+ */
+public class SimpleLicenseFamily implements ILicenseFamily {
+    private String familyName;
+
+    public SimpleLicenseFamily(String familyName) {
+        setFamilyName(familyName);
+    }
+
+    public SimpleLicenseFamily() {
+        this(null);
+    }
+
+    public final void setFamilyName(String familyName) {
+        this.familyName = familyName;
+    }
+
+    public final String getFamilyName() {
+        return familyName;
+    }
+}

Propchange: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/license/SimpleLicenseFamily.java
------------------------------------------------------------------------------
    svn:eol-style = native