diff options
Diffstat (limited to 'petascope/src/petascope/wcps/server/core/RangeField.java')
-rw-r--r-- | petascope/src/petascope/wcps/server/core/RangeField.java | 68 |
1 files changed, 33 insertions, 35 deletions
diff --git a/petascope/src/petascope/wcps/server/core/RangeField.java b/petascope/src/petascope/wcps/server/core/RangeField.java index 2a89875..4e7854d 100644 --- a/petascope/src/petascope/wcps/server/core/RangeField.java +++ b/petascope/src/petascope/wcps/server/core/RangeField.java @@ -14,42 +14,40 @@ * 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 java.util.Iterator;
-
-public class RangeField implements IRasNode {
-
- private String type;
-
- public RangeField(Node node, XmlQuery xq) throws WCPSException {
- while ((node != null) && node.getNodeName().equals("#text")) {
- node = node.getNextSibling();
- }
-
- if (node == null) {
- throw new WCPSException("RangeFieldType parsing error!");
- }
-
- String nodeName = node.getNodeName();
-
- if (nodeName.equals("type")) {
- this.type = node.getTextContent();
-
- System.err.println("Found range field type: " + type);
- }
- }
-
- public String toRasQL() {
- return this.type;
- }
-};
+package petascope.wcps.server.core; + +import petascope.exceptions.WCPSException; +import org.w3c.dom.*; +import java.util.Iterator; + +public class RangeField implements IRasNode { + + private String type; + + public RangeField(Node node, XmlQuery xq) throws WCPSException { + while ((node != null) && node.getNodeName().equals("#text")) { + node = node.getNextSibling(); + } + + if (node == null) { + throw new WCPSException("RangeFieldType parsing error!"); + } + + String nodeName = node.getNodeName(); + + if (nodeName.equals("type")) { + this.type = node.getTextContent(); + + System.err.println("Found range field type: " + type); + } + } + + public String toRasQL() { + return this.type; + } +}; |