sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1610648 - in /sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis: internal/jaxb/code/DCPList.java metadata/iso/service/package-info.java
Date Tue, 15 Jul 2014 11:04:52 GMT
Author: desruisseaux
Date: Tue Jul 15 11:04:52 2014
New Revision: 1610648

URL: http://svn.apache.org/r1610648
Log:
Missing JAXB adapter for DCPList.

Added:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/DCPList.java
      - copied, changed from r1610639, sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/SV_CouplingType.java
Modified:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/service/package-info.java

Copied: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/DCPList.java
(from r1610639, sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/SV_CouplingType.java)
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/DCPList.java?p2=sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/DCPList.java&p1=sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/SV_CouplingType.java&r1=1610639&r2=1610648&rev=1610648&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/SV_CouplingType.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/code/DCPList.java
[UTF-8] Tue Jul 15 11:04:52 2014
@@ -17,14 +17,14 @@
 package org.apache.sis.internal.jaxb.code;
 
 import javax.xml.bind.annotation.XmlElement;
-import org.opengis.metadata.service.CouplingType;
+import org.opengis.metadata.service.DistributedComputingPlatform;
 import org.apache.sis.internal.jaxb.gmd.CodeListAdapter;
 import org.apache.sis.internal.jaxb.gmd.CodeListProxy;
 
 
 /**
- * JAXB adapter for {@link CouplingType}, in order to integrate the value in an element respecting
- * the ISO-19139 standard. See package documentation for more information about the handling
+ * JAXB adapter for {@link DistributedComputingPlatform}, in order to integrate the value
in an element
+ * respecting the ISO-19139 standard. See package documentation for more information about
the handling
  * of {@code CodeList} in ISO-19139.
  *
  * @author  Martin Desruisseaux (Geomatys)
@@ -32,17 +32,17 @@ import org.apache.sis.internal.jaxb.gmd.
  * @version 0.5
  * @module
  */
-public final class SV_CouplingType extends CodeListAdapter<SV_CouplingType, CouplingType>
{
+public final class DCPList extends CodeListAdapter<DCPList, DistributedComputingPlatform>
{
     /**
      * Empty constructor for JAXB only.
      */
-    public SV_CouplingType() {
+    public DCPList() {
     }
 
     /**
      * Creates a new adapter for the given proxy.
      */
-    private SV_CouplingType(final CodeListProxy proxy) {
+    private DCPList(final CodeListProxy proxy) {
         super(proxy);
     }
 
@@ -50,16 +50,16 @@ public final class SV_CouplingType exten
      * {@inheritDoc}
      */
     @Override
-    protected SV_CouplingType wrap(CodeListProxy proxy) {
-        return new SV_CouplingType(proxy);
+    protected DCPList wrap(CodeListProxy proxy) {
+        return new DCPList(proxy);
     }
 
     /**
      * {@inheritDoc}
      */
     @Override
-    protected Class<CouplingType> getCodeListClass() {
-        return CouplingType.class;
+    protected Class<DistributedComputingPlatform> getCodeListClass() {
+        return DistributedComputingPlatform.class;
     }
 
     /**
@@ -68,7 +68,7 @@ public final class SV_CouplingType exten
      * @return The value to be marshalled.
      */
     @Override
-    @XmlElement(name = "SV_CouplingType")
+    @XmlElement(name = "DCPList")
     public CodeListProxy getElement() {
         return proxy;
     }

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/service/package-info.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/service/package-info.java?rev=1610648&r1=1610647&r2=1610648&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/service/package-info.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/service/package-info.java
[UTF-8] Tue Jul 15 11:04:52 2014
@@ -53,6 +53,7 @@
 @XmlJavaTypeAdapters({
     @XmlJavaTypeAdapter(CI_Citation.class),
     @XmlJavaTypeAdapter(CI_OnlineResource.class),
+    @XmlJavaTypeAdapter(DCPList.class),
     @XmlJavaTypeAdapter(MD_DataIdentification.class),
     @XmlJavaTypeAdapter(MD_StandardOrderProcess.class),
     @XmlJavaTypeAdapter(SV_CoupledResource.class),



Mime
View raw message