org.topbraid.spin.system
Class SPINPreferences

java.lang.Object
  extended by org.topbraid.spin.system.SPINPreferences

public class SPINPreferences
extends java.lang.Object

A singleton that provides access to the current SPIN rendering settings. The singleton can be replaced to install different default settings. For example, TopBraid Composer stores these settings in the Eclipse preferences.

Author:
Holger Knublauch

Constructor Summary
SPINPreferences()
           
 
Method Summary
static SPINPreferences get()
          Gets the singleton instance of this class.
 boolean isCreateURIVariables()
          Indicates whether the SPIN generator shall convert variables into URI nodes, so that they can be shared between multiple queries.
static void set(SPINPreferences value)
          Changes the singleton to some subclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPINPreferences

public SPINPreferences()
Method Detail

get

public static SPINPreferences get()
Gets the singleton instance of this class.

Returns:
the singleton

set

public static void set(SPINPreferences value)
Changes the singleton to some subclass.

Parameters:
value - the new singleton (not null)

isCreateURIVariables

public boolean isCreateURIVariables()
Indicates whether the SPIN generator shall convert variables into URI nodes, so that they can be shared between multiple queries.

Returns:
true to create shared URI variables (default: false)