diff options
Diffstat (limited to 'petascope/src/petascope/wcps/server/core/DimensionIntervalList.java')
-rw-r--r-- | petascope/src/petascope/wcps/server/core/DimensionIntervalList.java | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/petascope/src/petascope/wcps/server/core/DimensionIntervalList.java b/petascope/src/petascope/wcps/server/core/DimensionIntervalList.java index 21ce9e1..9e2a589 100644 --- a/petascope/src/petascope/wcps/server/core/DimensionIntervalList.java +++ b/petascope/src/petascope/wcps/server/core/DimensionIntervalList.java @@ -14,43 +14,41 @@ * 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.InvalidCrsException;
-import petascope.wcps.server.exceptions.WCPSException;
-import java.util.ArrayList;
-import java.util.List;
-import org.w3c.dom.*;
-
-public class DimensionIntervalList {
-
- private ArrayList<IRasNode> list;
-
- public DimensionIntervalList(Node node, XmlQuery xq, CoverageInfo info)
- throws WCPSException, InvalidCrsException {
- System.err.println("Parsing a Dimension Interval List ...");
-
- while (node != null) {
- list = new ArrayList<IRasNode>();
- try {
- System.err.println("Parsing one dimension interval element ...");
- DimensionIntervalElement elem = new DimensionIntervalElement(node, xq, info);
- node = elem.getNextNode();
- list.add(elem);
- } catch (WCPSException e) {
- System.err.println("Failed to parse this dimension interval element !");
- System.err.println("Current node: " + node);
- }
- }
- }
-
- public List getAxisList() {
- return list;
- }
-}
+package petascope.wcps.server.core; + +import petascope.exceptions.WCPSException; +import java.util.ArrayList; +import java.util.List; +import org.w3c.dom.*; + +public class DimensionIntervalList { + + private ArrayList<IRasNode> list; + + public DimensionIntervalList(Node node, XmlQuery xq, CoverageInfo info) + throws WCPSException { + System.err.println("Parsing a Dimension Interval List ..."); + + while (node != null) { + list = new ArrayList<IRasNode>(); + try { + System.err.println("Parsing one dimension interval element ..."); + DimensionIntervalElement elem = new DimensionIntervalElement(node, xq, info); + node = elem.getNextNode(); + list.add(elem); + } catch (WCPSException e) { + System.err.println("Failed to parse this dimension interval element !"); + System.err.println("Current node: " + node); + } + } + } + + public List getAxisList() { + return list; + } +} |