Class UnityFilePropertiesHelper
java.lang.Object
eu.unicore.util.configuration.PropertiesHelper
eu.unicore.util.configuration.FilePropertiesHelper
pl.edu.icm.unity.engine.api.config.UnityFilePropertiesHelper
- All Implemented Interfaces:
eu.unicore.util.configuration.PropertiesHelperAPI
,eu.unicore.util.configuration.UpdateableConfiguration
,Cloneable
,Runnable
- Direct Known Subclasses:
UnityServerConfiguration
public class UnityFilePropertiesHelper
extends eu.unicore.util.configuration.FilePropertiesHelper
Extends
FilePropertiesHelper
with Unity specific methods. Currently only one - returning localized strings.
Except of the base class the same as UnityPropertiesHelper
.- Author:
- K. Benedyczak
-
Field Summary
Fields inherited from class eu.unicore.util.configuration.FilePropertiesHelper
file, lastAccess
Fields inherited from class eu.unicore.util.configuration.PropertiesHelper
genericListeners, log, metadata, prefix, properties, propertyFocusedListeners, structuredPrefixes
-
Constructor Summary
ConstructorDescriptionUnityFilePropertiesHelper
(String prefix, File file, Map<String, eu.unicore.util.configuration.PropertyMD> meta, org.apache.logging.log4j.Logger log) UnityFilePropertiesHelper
(String prefix, String file, Map<String, eu.unicore.util.configuration.PropertyMD> meta, org.apache.logging.log4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionpl.edu.icm.unity.base.i18n.I18nString
getLocalizedString
(pl.edu.icm.unity.base.message.MessageSource msg, String baseKey) Methods inherited from class eu.unicore.util.configuration.FilePropertiesHelper
getFile, hasFileChanged, load, load, reload, reloadIfChanged, run
Methods inherited from class eu.unicore.util.configuration.PropertiesHelper
addPropertyChangeListener, canHaveSubkeys, checkBounds, checkConstraints, checkConstraints, checkDeprecated, checkPropertyConstraints, checkStructuredListConstraints, clone, cloneTo, filterChanged, findUnknown, getBooleanValue, getClassValue, getDoubleValue, getDoubleValueNoCheck, getEnumValue, getFileValue, getFileValueAsString, getIntValue, getIntValueNoCheck, getKeyDescription, getListOfValues, getLocalizedValue, getLongValue, getLongValueNoCheck, getMetadata, getMetadataKey, getRawProperty, getSortedNumKeys, getSortedStringKeys, getStructuredListKeys, getSubkeyBooleanValue, getSubkeyEnumValue, getSubkeyIntValue, getSubkeyLongValue, getSubkeyValue, getValue, isSet, logValue, notifyAllWithKey, notifyFocusedListeners, notifyGenericListeners, removePropertyChangeListener, setProperties, setProperty
-
Constructor Details
-
UnityFilePropertiesHelper
public UnityFilePropertiesHelper(String prefix, File file, Map<String, eu.unicore.util.configuration.PropertyMD> meta, org.apache.logging.log4j.Logger log) throws IOException- Throws:
IOException
-
UnityFilePropertiesHelper
public UnityFilePropertiesHelper(String prefix, String file, Map<String, eu.unicore.util.configuration.PropertyMD> meta, org.apache.logging.log4j.Logger log) throws IOException- Throws:
IOException
-
-
Method Details
-
getLocalizedString
public pl.edu.icm.unity.base.i18n.I18nString getLocalizedString(pl.edu.icm.unity.base.message.MessageSource msg, String baseKey) - Parameters:
msg
-baseKey
- Property name (without the prefix).- Returns:
- localized string of the given property. Default value is set to the regular value of the property. All sub values of the base key are used as localized values, assuming their subkey is equal to one of supported locales.
-