summaryrefslogtreecommitdiffstats
path: root/petascope/src/petascope/wcps/server/core/FieldInterpolationElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'petascope/src/petascope/wcps/server/core/FieldInterpolationElement.java')
-rw-r--r--petascope/src/petascope/wcps/server/core/FieldInterpolationElement.java118
1 files changed, 58 insertions, 60 deletions
diff --git a/petascope/src/petascope/wcps/server/core/FieldInterpolationElement.java b/petascope/src/petascope/wcps/server/core/FieldInterpolationElement.java
index e791d22..f74a6de 100644
--- a/petascope/src/petascope/wcps/server/core/FieldInterpolationElement.java
+++ b/petascope/src/petascope/wcps/server/core/FieldInterpolationElement.java
@@ -14,67 +14,65 @@
* You should have received a copy of the GNU General Public License
* along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
*
- * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
- rasdaman GmbH.
+ * Copyright 2003 - 2010 Peter Baumann / rasdaman GmbH.
*
* For more information please see <http://www.rasdaman.org>
* or contact Peter Baumann via <baumann@rasdaman.com>.
*/
-package petascope.wcps.server.core;
-
-import petascope.wcps.server.exceptions.WCPSException;
-import org.w3c.dom.*;
-import petascope.wcps.server.exceptions.InvalidWcpsRequestException;
-
-public class FieldInterpolationElement implements IRasNode {
-
- private FieldName name;
- private InterpolationMethod interp;
- private Node nextNode;
-
- public FieldInterpolationElement(Node node, XmlQuery xq) throws WCPSException {
-
- throw new InvalidWcpsRequestException("Currently, our implementation does not allow specifying " +
- "interpolation methods or null resistances for the scale operation.");
-
- /*
- while ((node != null) && node.getNodeName().equals("#text")) {
- node = node.getNextSibling();
- }
-
- if (node == null) {
- throw new WCPSException("FieldInterpolationElementType parsing error!");
- }
-
- while (node != null)
- {
- String nodeName = node.getNodeName();
- while (node.getNodeName().equals("#text"))
- node = node.getNextSibling();
-
- if (nodeName.equals("name")) {
- this.name = new FieldName(node, xq);
- node = node.getNextSibling();
- continue;
- }
- else
- {
- interp = new InterpolationMethod(node, xq);
- node = interp.getNextNode();
- }
- }
- nextNode = node;
-
- */
- }
-
- public Node getNextNode()
- {
- return nextNode;
- }
-
- public String toRasQL() {
- // Since we only accept the default rasdaman interpolation methods, we do not need to specify it further
- return "";
- }
-};
+package petascope.wcps.server.core;
+
+import petascope.exceptions.WCPSException;
+import org.w3c.dom.*;
+
+public class FieldInterpolationElement implements IRasNode {
+
+ private FieldName name;
+ private InterpolationMethod interp;
+ private Node nextNode;
+
+ public FieldInterpolationElement(Node node, XmlQuery xq) throws WCPSException {
+
+ throw new WCPSException("Currently, our implementation does not allow specifying " +
+ "interpolation methods or null resistances for the scale operation.");
+
+ /*
+ while ((node != null) && node.getNodeName().equals("#text")) {
+ node = node.getNextSibling();
+ }
+
+ if (node == null) {
+ throw new WCPSException("FieldInterpolationElementType parsing error!");
+ }
+
+ while (node != null)
+ {
+ String nodeName = node.getNodeName();
+ while (node.getNodeName().equals("#text"))
+ node = node.getNextSibling();
+
+ if (nodeName.equals("name")) {
+ this.name = new FieldName(node, xq);
+ node = node.getNextSibling();
+ continue;
+ }
+ else
+ {
+ interp = new InterpolationMethod(node, xq);
+ node = interp.getNextNode();
+ }
+ }
+ nextNode = node;
+
+ */
+ }
+
+ public Node getNextNode()
+ {
+ return nextNode;
+ }
+
+ public String toRasQL() {
+ // Since we only accept the default rasdaman interpolation methods, we do not need to specify it further
+ return "";
+ }
+};