sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1511425 - /sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/GMLAdapter.java
Date Wed, 07 Aug 2013 18:10:09 GMT
Author: desruisseaux
Date: Wed Aug  7 18:10:09 2013
New Revision: 1511425

URL: http://svn.apache.org/r1511425
Log:
Force the GML namespace for the "id" attribute.

Modified:
    sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/GMLAdapter.java

Modified: sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/GMLAdapter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/GMLAdapter.java?rev=1511425&r1=1511424&r2=1511425&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/GMLAdapter.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-metadata/src/main/java/org/apache/sis/internal/jaxb/gml/GMLAdapter.java
[UTF-8] Wed Aug  7 18:10:09 2013
@@ -19,6 +19,7 @@ package org.apache.sis.internal.jaxb.gml
 import javax.xml.bind.annotation.XmlID;
 import javax.xml.bind.annotation.XmlAttribute;
 import org.apache.sis.util.Version;
+import org.apache.sis.xml.Namespaces;
 import org.apache.sis.xml.IdentifierMap;
 import org.apache.sis.xml.IdentifierSpace;
 import org.apache.sis.xml.IdentifiedObject;
@@ -35,7 +36,7 @@ import org.apache.sis.xml.IdentifiedObje
  * @author  Guilhem Legal (Geomatys)
  * @author  Martin Desruisseaux (Geomatys)
  * @since   0.3 (derived from geotk-3.18)
- * @version 0.3
+ * @version 0.4
  * @module
  */
 public abstract class GMLAdapter {
@@ -65,7 +66,7 @@ public abstract class GMLAdapter {
      * @see org.apache.sis.internal.jaxb.gco.ObjectReference#getUUIDREF()
      */
     @XmlID
-    @XmlAttribute(required = true)
+    @XmlAttribute(namespace = Namespaces.GML, required = true)
     private String id;
 
     /**



Mime
View raw message