coldbox.system.core.collections

Class ConfigBean

WEB-INF.cftags.component
        extended by coldbox.system.core.collections.ConfigBean
Class Attributes:
  • output : false
  •  
    Constructor Summary
    init([struct configStruct='[runtime expression]'])
          constructor.
    Method Summary
    any getConfigStruct()
         Get the memento of name-value pairs.
    any getKey(string key, [any defaultValue='_NONE_'])
    any keyExists(string key)
         Check if a key is in the structure.
    void setKey(string key, any value)
         Set a new value in the structure.
    void setconfigStruct(struct configStruct)
         Override the name-value pairs memento.
     
    Methods inherited from class WEB-INF.cftags.component
    None

    Constructor Detail

    init

    public init([struct configStruct='[runtime expression]'])

    constructor

    Parameters:
    configStruct - A memento of name-value pairs to init

    Method Detail

    getConfigStruct

    public any getConfigStruct()

    Get the memento of name-value pairs


    getKey

    public any getKey(string key, [any defaultValue='_NONE_'])

    Parameters:
    key - The named key to return.
    defaultValue - A default value to return

    keyExists

    public any keyExists(string key)

    Check if a key is in the structure.

    Parameters:
    key

    setKey

    public void setKey(string key, any value)

    Set a new value in the structure

    Parameters:
    key
    value

    setconfigStruct

    public void setconfigStruct(struct configStruct)

    Override the name-value pairs memento

    Parameters:
    configStruct