sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/05: Remove for now the contact section since it was not completed.
Date Sun, 03 Nov 2019 22:51:27 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit 3fe5b0abb249508dd94249847deaf6c2f84955f4
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Sun Nov 3 21:42:09 2019 +0100

    Remove for now the contact section since it was not completed.
---
 .../apache/sis/gui/dataset/MetadataOverview.java   | 24 ----------------------
 1 file changed, 24 deletions(-)

diff --git a/application/sis-javafx/src/main/java/org/apache/sis/gui/dataset/MetadataOverview.java
b/application/sis-javafx/src/main/java/org/apache/sis/gui/dataset/MetadataOverview.java
index c0b0a4c..6e8ba8d 100644
--- a/application/sis-javafx/src/main/java/org/apache/sis/gui/dataset/MetadataOverview.java
+++ b/application/sis-javafx/src/main/java/org/apache/sis/gui/dataset/MetadataOverview.java
@@ -47,10 +47,6 @@ import org.opengis.metadata.Identifier;
 import org.opengis.metadata.citation.Citation;
 import org.opengis.metadata.citation.CitationDate;
 import org.opengis.metadata.citation.DateType;
-import org.opengis.metadata.citation.Party;
-import org.opengis.metadata.citation.Individual;
-import org.opengis.metadata.citation.Organisation;
-import org.opengis.metadata.citation.Responsibility;
 import org.opengis.metadata.extent.Extent;
 import org.opengis.metadata.extent.GeographicBoundingBox;
 import org.opengis.metadata.extent.GeographicDescription;
@@ -635,26 +631,6 @@ final class MetadataOverview {
     }
 
     /**
-     * @todo
-     */
-    private void createContact(final Metadata metadata) {
-        for (final Responsibility contact : nonNull(metadata.getContacts())) {
-            for (final Party party : nonNull(contact.getParties())) {
-                final String name = string(party.getName());
-                if (name != null) {
-                    String partyType = "Party";
-                    if (party instanceof Organisation) {
-                        partyType = "Organisation";
-                    } else if (party instanceof Individual) {
-                        partyType = "Author";
-                    }
-                    // TODO
-                }
-            }
-        }
-    }
-
-    /**
      * Returns all code lists in a comma-separated list.
      */
     private String string(final Collection<? extends ControlledVocabulary> codes) {


Mime
View raw message