1 /* 2 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package test.astro; 25 26 import static java.io.File.separator; 27 import static jaxp.library.JAXPTestUtilities.getPathByClassName; 28 29 public class AstroConstants { 30 // Query parameters : 31 32 public static final double RA_MIN = 0.0; // hours 33 public static final double RA_MAX = 24.0; // hours 34 public static final double DEC_MIN = -90.000; // degrees 35 public static final double DEC_MAX = 90.000; // degrees 36 37 // Stylesheet source paths: 38 39 public static final String XSLPATH = getPathByClassName(AstroConstants.class, "xmlfiles" + separator + "xsl"); 40 public static final String RAXSL = XSLPATH + "ra.xsl"; 41 public static final String DECXSL = XSLPATH + "dec.xsl"; 42 public static final String RADECXSL = XSLPATH + "radec.xsl"; 43 public static final String STYPEXSL = XSLPATH + "stellartype.xsl"; 44 public static final String HTMLXSL = XSLPATH + "html.xsl"; 45 46 public static final String RAENTXSL = XSLPATH + "ra-ent.xsl"; 47 public static final String DECENTXSL = XSLPATH + "dec-ent.xsl"; 48 public static final String RAURIXSL = XSLPATH + "ra-uri.xsl"; 49 public static final String TOPTEMPLXSL = XSLPATH + "toptemplate.xsl"; 50 public static final String TOPTEMPLINCXSL = XSLPATH + "toptemplateinc.xsl"; 51 52 // Catalog references 53 54 public static final String ASTROCAT = getPathByClassName(AstroConstants.class, "xmlfiles") + "catalog.xml"; 55 56 57 public static final String GOLDEN_DIR = getPathByClassName(AstroConstants.class, "xmlfiles" + separator + "gold"); 58 public static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; 59 public static final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource"; 60 }