Changeset 1511
- Timestamp:
- 19/08/10 15:26:00 (18 months ago)
- Location:
- trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate
- Files:
-
- 6 edited
- 1 moved
-
FileLoadingActions.java (modified) (3 diffs)
-
NXconvert.java (modified) (3 diffs)
-
NXproperties.java (modified) (2 diffs)
-
SVRLNodeFilter.java (modified) (5 diffs)
-
UserSettings.java (modified) (2 diffs)
-
ValidatorUtils.java (modified) (4 diffs)
-
exceptions/NXvalidateException.java (moved) (moved from trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/exceptions/NXConvertpyException.java) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/FileLoadingActions.java
r1510 r1511 38 38 import javax.xml.parsers.DocumentBuilder; 39 39 import javax.xml.parsers.DocumentBuilderFactory; 40 import org.nexusformat.nxvalidate.exceptions.NX ConvertpyException;40 import org.nexusformat.nxvalidate.exceptions.NXvalidateException; 41 41 42 42 /** … … 188 188 bundle.getString("validationCompleteMessage")); 189 189 } 190 } catch (NX ConvertpyException ex) {190 } catch (NXvalidateException ex) { 191 191 Logger.getLogger(NXvalidateFrame.class.getName()).log( 192 192 Level.SEVERE, null, ex); … … 224 224 //domTree.updateTree(); 225 225 226 } catch (NX ConvertpyException ex) {226 } catch (NXvalidateException ex) { 227 227 conversionFail = true; 228 228 badDataFileList.add(nxsFile.getAbsolutePath()); -
trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/NXconvert.java
r1507 r1511 30 30 import java.util.logging.Level; 31 31 import java.util.logging.Logger; 32 import org.nexusformat.nxvalidate.exceptions.NX ConvertpyException;32 import org.nexusformat.nxvalidate.exceptions.NXvalidateException; 33 33 34 34 public class NXconvert { … … 67 67 } 68 68 69 public File convert() throws IOException, InterruptedException, NX ConvertpyException {69 public File convert() throws IOException, InterruptedException, NXvalidateException { 70 70 71 71 Logger.getLogger(NXconvert.class.getName()).log( … … 99 99 buffer.append("\" failed. Returned "); 100 100 buffer.append(exitValue); 101 throw new NX ConvertpyException(buffer.toString());101 throw new NXvalidateException(buffer.toString()); 102 102 } 103 103 return redfile; -
trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/NXproperties.java
r1507 r1511 57 57 58 58 String propsFileName = 59 userHome + File.pathSeparator + ".NX Convertpy.properties";59 userHome + File.pathSeparator + ".NXvalidate.properties"; 60 60 61 61 File propsFile = new File(propsFileName); … … 77 77 new URLClassLoader(new java.net.URL[]{resourceURL}); 78 78 79 userProps = ResourceBundle.getBundle(".NX Convertpy.properties",79 userProps = ResourceBundle.getBundle(".NXvalidate.properties", 80 80 java.util.Locale.getDefault(), urlLoader ); 81 81 -
trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/SVRLNodeFilter.java
r1507 r1511 34 34 import javax.xml.xpath.XPathExpressionException; 35 35 import javax.xml.xpath.XPathFactory; 36 import org.nexusformat.nxvalidate.exceptions.NX ConvertpyException;36 import org.nexusformat.nxvalidate.exceptions.NXvalidateException; 37 37 import org.w3c.dom.Document; 38 38 import org.w3c.dom.Element; … … 86 86 getXPathList(); 87 87 88 } catch (NX ConvertpyException ex) {88 } catch (NXvalidateException ex) { 89 89 Logger.getLogger(SVRLNodeFilter.class.getName()).log( 90 90 Level.SEVERE, null, ex); … … 105 105 resetNodes(); 106 106 107 } catch (NX ConvertpyException ex) {107 } catch (NXvalidateException ex) { 108 108 Logger.getLogger(SVRLNodeFilter.class.getName()).log( 109 109 Level.SEVERE, null, ex); … … 115 115 } 116 116 117 private void resetNodes() throws NX ConvertpyException,117 private void resetNodes() throws NXvalidateException, 118 118 XPathExpressionException { 119 119 … … 180 180 } 181 181 182 private void getXPathList() throws NX ConvertpyException,182 private void getXPathList() throws NXvalidateException, 183 183 XPathExpressionException { 184 184 -
trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/UserSettings.java
r1507 r1511 67 67 File settings = new File(System.getProperty("user.home") 68 68 + System.getProperty("file.separator") 69 + ".nx convertpy.properties");69 + ".nxvalidate.properties"); 70 70 71 71 if (settings.exists()) { … … 92 92 93 93 File settings = new File(System.getProperty("user.home") 94 + System.getProperty("file.separator") + ".nx convertpy.properties");94 + System.getProperty("file.separator") + ".nxvalidate.properties"); 95 95 try { 96 96 if (settings.exists()) { 97 97 98 98 props.setProperty("nxconvert", nxconvertFile.getAbsolutePath()); 99 props.store(new FileOutputStream(settings), "ISIS NX Convertpy");99 props.store(new FileOutputStream(settings), "ISIS NXvalidate"); 100 100 101 101 } else { 102 102 settings.createNewFile(); 103 103 props.setProperty("nxconvert", nxconvertFile.getAbsolutePath()); 104 props.store(new FileOutputStream(settings), "ISIS NX Convertpy");104 props.store(new FileOutputStream(settings), "ISIS NXvalidate"); 105 105 106 106 } -
trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/ValidatorUtils.java
r1507 r1511 27 27 28 28 import java.io.File; 29 import org.nexusformat.nxvalidate.exceptions.NX ConvertpyException;29 import org.nexusformat.nxvalidate.exceptions.NXvalidateException; 30 30 import java.util.logging.Level; 31 31 import java.util.logging.Logger; … … 133 133 * and the Schematron file. The returned file is the results file. 134 134 * @return the results file as a File object. 135 * @throws NX ConvertpyException135 * @throws NXvalidateException 136 136 */ 137 public File validate() throws NX ConvertpyException {137 public File validate() throws NXvalidateException { 138 138 139 139 File result = null; … … 148 148 "While converting \"" + nxsFile 149 149 + "\" to reduced xml format"); 150 throw new NX ConvertpyException("While converting \"" + nxsFile150 throw new NXvalidateException("While converting \"" + nxsFile 151 151 + "\" to reduced xml format"); 152 152 } … … 165 165 Logger.getLogger(ValidatorUtils.class.getName()).log(Level.SEVERE, 166 166 "While creating validation report"); 167 throw new NX ConvertpyException("While creating validation report");167 throw new NXvalidateException("While creating validation report"); 168 168 } 169 169 } -
trunk/applications/NXvalidate/src/org/nexusformat/nxvalidate/exceptions/NXvalidateException.java
r1507 r1511 31 31 * @author Stephen Rankin 32 32 */ 33 public class NX ConvertpyException extends Exception {33 public class NXvalidateException extends Exception { 34 34 35 35 /** 36 * Creates a new instance of <code>NX ConvertpyException</code> without detail message.36 * Creates a new instance of <code>NXvalidateException</code> without detail message. 37 37 */ 38 public NX ConvertpyException() {38 public NXvalidateException() { 39 39 } 40 40 41 41 42 42 /** 43 * Constructs an instance of <code>NX ConvertpyException</code> with the specified detail message.43 * Constructs an instance of <code>NXvalidateException</code> with the specified detail message. 44 44 * @param msg the detail message. 45 45 */ 46 public NX ConvertpyException(String msg) {46 public NXvalidateException(String msg) { 47 47 super(msg); 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.
