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
,java.lang.Cloneable
,java.lang.Runnable
- Direct Known Subclasses:
UnityServerConfiguration
public class UnityFilePropertiesHelper extends eu.unicore.util.configuration.FilePropertiesHelper
ExtendsFilePropertiesHelper
with Unity specific methods. Currently only one - returning localized strings. Except of the base class the same asUnityPropertiesHelper
.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description UnityFilePropertiesHelper(java.lang.String prefix, java.io.File file, java.util.Map<java.lang.String,eu.unicore.util.configuration.PropertyMD> meta, org.apache.log4j.Logger log)
UnityFilePropertiesHelper(java.lang.String prefix, java.lang.String file, java.util.Map<java.lang.String,eu.unicore.util.configuration.PropertyMD> meta, org.apache.log4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.edu.icm.unity.types.I18nString
getLocalizedString(pl.edu.icm.unity.MessageSource msg, java.lang.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 Detail
-
UnityFilePropertiesHelper
public UnityFilePropertiesHelper(java.lang.String prefix, java.io.File file, java.util.Map<java.lang.String,eu.unicore.util.configuration.PropertyMD> meta, org.apache.log4j.Logger log) throws java.io.IOException
- Throws:
java.io.IOException
-
UnityFilePropertiesHelper
public UnityFilePropertiesHelper(java.lang.String prefix, java.lang.String file, java.util.Map<java.lang.String,eu.unicore.util.configuration.PropertyMD> meta, org.apache.log4j.Logger log) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getLocalizedString
public pl.edu.icm.unity.types.I18nString getLocalizedString(pl.edu.icm.unity.MessageSource msg, java.lang.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.
-
-