commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Vawter <...@vawter.com>
Subject Re: [configuration] newbie ?, empty config
Date Sun, 09 Jan 2005 17:43:59 GMT
got it. I have it working with the indices notation. As I suspected I 
misunderstood what the "keys" were. Thanks

Oliver Heger wrote:

> The getKeys() method returns all keys that are assigned at least one 
> value. In your case keys like buttons.button.name or 
> buttons.button.url appear only once in the iteration, but they have 
> multiple values. The call config.getProperty("buttons.button.name") 
> would indeed return a collection with all names defined for buttons.
>
> With the syntax config.getString("buttons.button(0).name") you can 
> directly query the name of the first button. So you can use numeric 
> indices to specify which value you want, but those indices do not 
> appear in the results of getKeys().
>
> HTH
> Oliver

<snip>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message