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 isCreateText()
          Indicates whether the system shall create sp:text properties when it converts a SPARQL query into a SPIN query object.
 boolean isCreateTextPrefixes()
          Indicates whether - if isCreateText() is true - the system shall also put all prefix declarations into the generated sp:text values.
 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)

isCreateText

public boolean isCreateText()
Indicates whether the system shall create sp:text properties when it converts a SPARQL query into a SPIN query object.

Returns:
true to also create text (default: true)

isCreateTextPrefixes

public boolean isCreateTextPrefixes()
Indicates whether - if isCreateText() is true - the system shall also put all prefix declarations into the generated sp:text values.

Returns:
true to also create prefixes (default: false)

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)