mura.resourceBundle

Class resourceBundle

lucee.Component
    extended by mura.cfobject
      extended by mura.resourceBundle.resourceBundle

This provides access to locale resource bundle keys

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(string locale, string resourceDirectory='')
    Method Summary
    any convertToUTF([any rbfile])
         reads and parses java resource bundle per locale.
    any getKeyStructure([any key])
    any getKeyValue([any key], boolean useMuraDefault='false')
    any getResourceBundle()
    any getUtils()
    any LoadResourceBundle()
         reads and parses java resource bundle per locale.
    any LoadResourceBundleLegacy([any rbFile])
         reads and parses java resource bundle per locale.
    any messageFormat(string thisPattern, any args)
         performs messageFormat on compound rb string.
    boolean verifyPattern(string pattern)
         performs verification on MessageFormat pattern.
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getQueryAttrs, getQueryService, getServiceFactory, getSession, getValue, hasCustomDatasource, initTracePoint, inject, injectMethod, invokeMethod, mixin, parseDateArg, removeValue, set, setValue, valueExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(string locale, string resourceDirectory='')

    Parameters:
    locale
    resourceDirectory

    Method Detail

    convertToUTF

    public any convertToUTF([any rbfile])

    reads and parses java resource bundle per locale

    Parameters:
    rbfile

    getKeyStructure

    public any getKeyStructure([any key])

    Parameters:
    key

    getKeyValue

    public any getKeyValue([any key], boolean useMuraDefault='false')

    Parameters:
    key
    useMuraDefault

    getResourceBundle

    public any getResourceBundle()


    getUtils

    public any getUtils()


    LoadResourceBundle

    public any LoadResourceBundle()

    reads and parses java resource bundle per locale


    LoadResourceBundleLegacy

    public any LoadResourceBundleLegacy([any rbFile])

    reads and parses java resource bundle per locale

    Parameters:
    rbFile

    messageFormat

    public any messageFormat(string thisPattern, any args)

    performs messageFormat on compound rb string

    Parameters:
    thisPattern - pattern to use in formatting
    args - substitution values

    verifyPattern

    public boolean verifyPattern(string pattern)

    performs verification on MessageFormat pattern

    Parameters:
    pattern - format pattern to test