1 31 32 package com.hp.hpl.jena.rdf.model; 33 34 import org.apache.commons.logging.Log; 35 import org.apache.commons.logging.LogFactory; 36 37 import com.hp.hpl.jena.*; 38 39 57 public class JenaConfig { 58 59 60 private JenaConfig() { 61 } 62 63 protected static Log logger = LogFactory.getLog( JenaConfig.class ); 64 65 private static boolean oldLiteralCompare; 66 67 81 public static boolean setOldLiteralCompare(boolean b) { 82 boolean previous = oldLiteralCompare; 83 oldLiteralCompare = b; 84 return previous; 85 } 86 87 91 public static boolean getOldLiteralCompare() { 92 return oldLiteralCompare; 93 } 94 95 static { 96 try { 97 String str = 98 System.getProperty(Jena.PATH + ".oldLiteralCompare", "false"); 99 oldLiteralCompare = 100 (str.equalsIgnoreCase("true") || str.equals("1")); 101 } catch (SecurityException se) { 102 oldLiteralCompare = false; 105 } catch (Exception e) { 106 logger.warn("Unexpected Exception: JenaConfig.<Static Init>", e); 109 oldLiteralCompare = false; 110 } 111 } 112 } 113 | Popular Tags |