1 26 27 package org.webdocwf.util.loader; 28 29 33 public class ReturnCode { 34 35 private static int returnError=1; 36 private static int defaultReturnError=1; 37 private static int returnOK=0; 38 public static boolean isParameter=false; 39 40 41 45 public static int getOKReturnCode() { 46 return returnOK; 47 } 48 49 50 54 public static void setOKReturnCode(int code) { 55 returnOK=code; 56 } 57 58 59 63 public static int getErrorReturnCode() { 64 return returnError; 65 } 66 67 68 72 public static void setErrorReturnCode(int code) { 73 returnError=code; 74 } 75 76 77 81 public static int getDefaultErrorReturnCode() { 82 return defaultReturnError; 83 } 84 85 86 90 public static void setDefaultErrorReturnCode(int code) { 91 defaultReturnError=code; 92 } 93 94 } | Popular Tags |