sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1482425 - /sis/branches/JDK7/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java
Date Tue, 14 May 2013 16:25:44 GMT
Author: desruisseaux
Date: Tue May 14 16:25:44 2013
New Revision: 1482425

URL: http://svn.apache.org/r1482425
Log:
Allow subclassing.

Modified:
    sis/branches/JDK7/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java

Modified: sis/branches/JDK7/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java?rev=1482425&r1=1482424&r2=1482425&view=diff
==============================================================================
--- sis/branches/JDK7/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java
[UTF-8] (original)
+++ sis/branches/JDK7/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java
[UTF-8] Tue May 14 16:25:44 2013
@@ -131,7 +131,7 @@ import org.opengis.metadata.extent.Geogr
  * @version 0.3
  * @module
  */
-public final class AttributeNames {
+public class AttributeNames {
     /**
      * The {@value} attribute name for a short description of the dataset
      * (<em>Highly Recommended</em>). If no {@value} attribute is provided,
@@ -938,8 +938,9 @@ public final class AttributeNames {
     public static final String FLAG_MEANINGS = "flag_meanings";
 
     /**
-     * Do not allow instantiation of this class.
+     * For subclass constructors only. {@code AttributeNames} may be sub-classed by communities
+     * defining domain-specific attributes in addition to the ones defined by the CF convention.
      */
-    private AttributeNames() {
+    protected AttributeNames() {
     }
 }



Mime
View raw message