Class CmsVfsResourceBundle

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  CmsVfsResourceBundle.I_Loader
      Implementors of this interface are responsible for actually loading the data from the VFS.
      • Nested classes/interfaces inherited from class java.util.ResourceBundle

        java.util.ResourceBundle.Control
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CmsVfsResourceBundle getClone()
      Creates a clone of the resource bundle.
      protected java.lang.String getFilePath()
      Returns the path of the file to read the message data from.
      java.util.Enumeration<java.lang.String> getKeys()  
      java.util.Locale getLocale()  
      CmsVfsBundleParameters getParameters()
      Gets the bundle parameters.
      protected java.lang.Object handleGetObject​(java.lang.String key)  
      protected java.util.Set<java.lang.String> handleKeySet()  
      static void setCmsObject​(CmsObject cms)
      Sets the CMS context used by this class.
      void setLocale​(java.util.Locale locale)
      Sets the locale used for this resource bundle.
      void setParent​(java.util.ResourceBundle p)
      Sets the parent bundle.
      • Methods inherited from class java.util.ResourceBundle

        clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, keySet
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setCmsObject

        public static void setCmsObject​(CmsObject cms)
        Sets the CMS context used by this class.

        This can be never called more than once, and is usually called on startup.

        Parameters:
        cms - the CMS context to set
      • getKeys

        public java.util.Enumeration<java.lang.String> getKeys()
        Specified by:
        getKeys in class java.util.ResourceBundle
        See Also:
        ResourceBundle.getKeys()
      • getLocale

        public java.util.Locale getLocale()
        Overrides:
        getLocale in class java.util.ResourceBundle
        See Also:
        ResourceBundle.getLocale()
      • setParent

        public void setParent​(java.util.ResourceBundle p)
        Description copied from interface: I_CmsResourceBundle
        Sets the parent bundle.

        Specified by:
        setParent in interface I_CmsResourceBundle
        Overrides:
        setParent in class java.util.ResourceBundle
        Parameters:
        p - the parent bundle to set
        See Also:
        ResourceBundle.setParent(java.util.ResourceBundle)
      • getFilePath

        protected java.lang.String getFilePath()
        Returns the path of the file to read the message data from.

        Returns:
        the root path of the file containing the message data
      • handleGetObject

        protected java.lang.Object handleGetObject​(java.lang.String key)
        Specified by:
        handleGetObject in class java.util.ResourceBundle
        See Also:
        ResourceBundle.handleGetObject(java.lang.String)
      • handleKeySet

        protected java.util.Set<java.lang.String> handleKeySet()
        Overrides:
        handleKeySet in class java.util.ResourceBundle
        See Also:
        ResourceBundle.handleKeySet()