sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1794940 - in /sis/branches/JDK8/core: sis-metadata/src/main/java/org/apache/sis/metadata/iso/DefaultMetadata.java sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleMetadata.java
Date Fri, 12 May 2017 08:50:21 GMT
Author: desruisseaux
Date: Fri May 12 08:50:21 2017
New Revision: 1794940

URL: http://svn.apache.org/viewvc?rev=1794940&view=rev
Log:
Fix documentation error: Metadata.constraint is about metadata constraints, not data constraints.

Modified:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/DefaultMetadata.java
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleMetadata.java

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/DefaultMetadata.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/DefaultMetadata.java?rev=1794940&r1=1794939&r2=1794940&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/DefaultMetadata.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/DefaultMetadata.java
[UTF-8] Fri May 12 08:50:21 2017
@@ -229,7 +229,7 @@ public class DefaultMetadata extends ISO
     private Collection<PortrayalCatalogueReference> portrayalCatalogueInfo;
 
     /**
-     * Provides restrictions on the access and use of data.
+     * Provides restrictions on the access and use of metadata.
      */
     private Collection<Constraints> metadataConstraints;
 
@@ -1325,9 +1325,11 @@ public class DefaultMetadata extends ISO
     }
 
     /**
-     * Returns restrictions on the access and use of data.
+     * Returns restrictions on the access and use of metadata.
      *
-     * @return restrictions on the access and use of data.
+     * @return restrictions on the access and use of metadata.
+     *
+     * @see org.apache.sis.metadata.iso.identification.AbstractIdentification#getResourceConstraints()
      */
     @Override
     @XmlElement(name = "metadataConstraints")
@@ -1336,9 +1338,11 @@ public class DefaultMetadata extends ISO
     }
 
     /**
-     * Sets restrictions on the access and use of data.
+     * Sets restrictions on the access and use of metadata.
      *
      * @param  newValues  the new metadata constraints.
+     *
+     * @see org.apache.sis.metadata.iso.identification.AbstractIdentification#setResourceConstraints(Collection)
      */
     public void setMetadataConstraints(final Collection<? extends Constraints> newValues)
{
         metadataConstraints = writeCollection(newValues, metadataConstraints, Constraints.class);
@@ -1388,6 +1392,8 @@ public class DefaultMetadata extends ISO
      * Returns information about the frequency of metadata updates, and the scope of those
updates.
      *
      * @return the frequency of metadata updates and their scope, or {@code null}.
+     *
+     * @see org.apache.sis.metadata.iso.identification.AbstractIdentification#getResourceMaintenances()
      */
     @Override
     @XmlElement(name = "metadataMaintenance")
@@ -1399,6 +1405,8 @@ public class DefaultMetadata extends ISO
      * Sets information about the frequency of metadata updates, and the scope of those updates.
      *
      * @param  newValue  the new metadata maintenance.
+     *
+     * @see org.apache.sis.metadata.iso.identification.AbstractIdentification#setResourceMaintenances(Collection)
      */
     public void setMetadataMaintenance(final MaintenanceInformation newValue) {
         checkWritePermission();

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleMetadata.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleMetadata.java?rev=1794940&r1=1794939&r2=1794940&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleMetadata.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/simple/SimpleMetadata.java
[UTF-8] Fri May 12 08:50:21 2017
@@ -386,7 +386,7 @@ public class SimpleMetadata implements M
     }
 
     /**
-     * Restrictions on the access and use of data.
+     * Restrictions on the access and use of metadata.
      */
     @Override
     public Collection<Constraints> getMetadataConstraints() {



Mime
View raw message