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