Class 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
    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

      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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.