Package org.basex.util
Class Prop
java.lang.Object
org.basex.util.Prop
This class contains constants and system properties which are used all around the project.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanRespect lower/upper case when doing file comparisons.static final StringPrefix for project specific options.static booleanDebug mode.static final StringReturns the system's default encoding.static booleanGUI mode.static final StringProject home directory.static final StringJava version.static final booleanJDK version is Java 1.8.static booleanFlag for prefixing texts with their keys (helps while translating texts).static booleanRendering orientation (right vs.static StringLanguage (applied after restart).static final URLApplication URL.static final booleanFlag denoting if OS belongs to Mac family.static final StringProject name.static final StringSystem-specific newline string.static final StringSystem property for specifying database home directory.static final StringProject name.static final StringSystem's temporary directory.static final StringCode version (may contain major, minor and optional patch number).static final booleanFlag denoting if OS belongs to Windows family. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Removes all global options.entries()Returns all global options and system properties.static StringReturns a system property or global option.static voidSets a global option.static voidSets a global option.static voidSets a system property if it has not been set before.
-
Field Details
-
NAME
Project name.- See Also:
-
VERSION
Code version (may contain major, minor and optional patch number). -
PROJECT
Project name. -
NL
System-specific newline string. -
ENCODING
Returns the system's default encoding. -
MAC
public static final boolean MACFlag denoting if OS belongs to Mac family. -
WIN
public static final boolean WINFlag denoting if OS belongs to Windows family. -
CASE
public static final boolean CASERespect lower/upper case when doing file comparisons. -
JAVA
Java version. -
JAVA8
public static final boolean JAVA8JDK version is Java 1.8. -
DBPREFIX
Prefix for project specific options.- See Also:
-
PATH
System property for specifying database home directory.- See Also:
-
LOCATION
Application URL. -
TEMPDIR
System's temporary directory. -
HOMEDIR
Project home directory. -
language
Language (applied after restart). -
langkeys
public static boolean langkeysFlag for prefixing texts with their keys (helps while translating texts). -
langright
public static boolean langrightRendering orientation (right vs. left). -
debug
public static boolean debugDebug mode. -
gui
public static boolean guiGUI mode.
-
-
Method Details
-
put
Sets a global option.- Parameters:
option- optionvalue- value
-
put
Sets a global option.- Parameters:
name- name of the optionvalue- value
-
clear
public static void clear()Removes all global options. -
get
Returns a system property or global option. System properties override global options.- Parameters:
name- name of the option- Returns:
- global option
-
entries
Returns all global options and system properties. System properties override global options.- Returns:
- entry set
-
setSystem
Sets a system property if it has not been set before.- Parameters:
name- name of the propertyvalue- value
-