sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1700881 - in /sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation: AbstractSingleOperation.java DefaultTransformation.java
Date Wed, 02 Sep 2015 19:49:21 GMT
Author: desruisseaux
Date: Wed Sep  2 19:49:21 2015
New Revision: 1700881

URL: http://svn.apache.org/r1700881
Log:
Add JAXB annotations on DefaultTransformation.

Modified:
    sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/AbstractSingleOperation.java
    sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/DefaultTransformation.java

Modified: sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/AbstractSingleOperation.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/AbstractSingleOperation.java?rev=1700881&r1=1700880&r2=1700881&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/AbstractSingleOperation.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/AbstractSingleOperation.java
[UTF-8] Wed Sep  2 19:49:21 2015
@@ -69,7 +69,8 @@ import java.util.Objects;
 })
 @XmlRootElement(name = "AbstractSingleOperation")
 @XmlSeeAlso({
-    DefaultConversion.class
+    DefaultConversion.class,
+    DefaultTransformation.class
 })
 class AbstractSingleOperation extends AbstractCoordinateOperation implements SingleOperation,
Parameterized {
     /**

Modified: sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/DefaultTransformation.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/DefaultTransformation.java?rev=1700881&r1=1700880&r2=1700881&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/DefaultTransformation.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/DefaultTransformation.java
[UTF-8] Wed Sep  2 19:49:21 2015
@@ -17,6 +17,8 @@
 package org.apache.sis.referencing.operation;
 
 import java.util.Map;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlRootElement;
 import org.opengis.referencing.operation.Transformation;
 import org.opengis.referencing.operation.OperationMethod;
 import org.opengis.referencing.operation.MathTransform;
@@ -51,6 +53,8 @@ import org.apache.sis.util.ArgumentCheck
  *
  * @see DefaultConversion
  */
+@XmlType(name = "TransformationType")
+@XmlRootElement(name = "Transformation")
 public class DefaultTransformation extends AbstractSingleOperation implements Transformation
{
     /**
      * Serial number for inter-operability with different versions.
@@ -58,6 +62,14 @@ public class DefaultTransformation exten
     private static final long serialVersionUID = -7486704846151648971L;
 
     /**
+     * Constructs a new object in which every attributes are set to a null value.
+     * <strong>This is not a valid object.</strong> This constructor is strictly
+     * reserved to JAXB, which will assign values to the fields using reflexion.
+     */
+    private DefaultTransformation() {
+    }
+
+    /**
      * Creates a coordinate transformation from the given properties.
      * The properties given in argument follow the same rules than for the
      * {@linkplain AbstractCoordinateOperation#AbstractCoordinateOperation(Map, CoordinateReferenceSystem,



Mime
View raw message