org.springframework.extensions.config
Interface Config

All Known Implementing Classes:
ConfigImpl

public interface Config

Definition of a object that represents the results of a lookup.

Author:
gavinc

Method Summary
 ConfigElement getConfigElement(String name)
          Returns the config element with the given name, if there is more than one with the given name the first one added is returned.
 Map<String,ConfigElement> getConfigElements()
          Returns all the config elements
 String getConfigElementValue(String name)
          Shortcut method to get the config element with the given name and return its value.
 boolean hasConfigElement(String name)
          Determines whether the given config element exists
 

Method Detail

getConfigElement

ConfigElement getConfigElement(String name)
Returns the config element with the given name, if there is more than one with the given name the first one added is returned.

Parameters:
name - Name of the config element to retrieve
Returns:
The ConfigElement object or null if it doesn't exist

getConfigElementValue

String getConfigElementValue(String name)
Shortcut method to get the config element with the given name and return its value. If the config element does not exist, null is returned. If there is more than one with the given name the first one added is returned.

Parameters:
name - Name of the config element value to retrieve
Returns:
The ConfigElement value or null if it doesn't exist

getConfigElements

Map<String,ConfigElement> getConfigElements()
Returns all the config elements

Returns:
All the config elements

hasConfigElement

boolean hasConfigElement(String name)
Determines whether the given config element exists

Parameters:
name - The name of the config element to look for
Returns:
true if the config element exists


Copyright © 2009 SpringSource, Inc. All Rights Reserved.