aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at
diff options
context:
space:
mode:
authorThomas <>2023-06-27 07:05:11 +0200
committerThomas <>2023-06-27 07:05:11 +0200
commit1a46583236b58a77b11abc91681f697c4cb7e46e (patch)
tree7654b0564151b9e566dcdbe90ba35c7a8e77494e /pdf-as-common/src/main/java/at
parent8c0dbe2fe66df35108c0d5ef137465779d55ad11 (diff)
downloadpdf-as-4-1a46583236b58a77b11abc91681f697c4cb7e46e.tar.gz
pdf-as-4-1a46583236b58a77b11abc91681f697c4cb7e46e.tar.bz2
pdf-as-4-1a46583236b58a77b11abc91681f697c4cb7e46e.zip
chore(core): add methods to get boolean configuration-values into configuration class
Diffstat (limited to 'pdf-as-common/src/main/java/at')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/ISettings.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/ISettings.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/ISettings.java
index 42cdb8ab..43139966 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/ISettings.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/ISettings.java
@@ -29,6 +29,22 @@ import java.util.Vector;
public interface ISettings {
public String getValue(String key);
public boolean hasValue(String key);
+
+ /**
+ * Get boolean configuration value.
+ * @param key Configuration key
+ * @return <code>true</code> if configuration exists and has value <code>true</code>, otherwise <code>false</code>
+ */
+ public boolean isValue(String key);
+
+ /**
+ * Get boolean configuration value.
+ * @param key Configuration key
+ * @param defaultValue Value if configuration does not exist
+ * @return <code>true</code> if configuration exists and has value <code>true</code>, otherwise default value
+ */
+ public boolean isValue(String key, boolean defaultValue);
+
public boolean hasPrefix(String prefix);
public Map<String, String> getValuesPrefix(String prefix);
public Vector<String> getFirstLevelKeys(String prefix);