Hi, On Tue, 3 Sep 2002 23:59, Torsten Knodt wrote: > As no one else answered, it seems I have to do it myself. I've already > begun. For this, I have some questions: > - - I can get the Id of an CLOption. But how can I get the name? Do I need > CLOptionDescriptor[] for this?
yep. > - - Should it be a fromCLOption in Configuration or a toConfiguration in > CLArgsParser? I would create a new utility class completely. Currently cli is not tied to Avalon/Framework and Avalon/Framework is not tied to cli. I think it would be nice to keep them loosely coupled. So perhaps a CL2FrameworkUtil or something? > > For Parameters we have discussed creating a ParametersSchema. It would > > allow you to define required and optional parameters. Each parameter > > would have a type (ie Integer, String, Long, Boolean etc) that it must > > conform to. Alternatively it must match a regex expression. No one has > > actually implemented this yet. > > Apart from, that I need it for Configurations too, it wouldn't be powerful > enough for me. I have to check ranges of floats and things like that. kool. You may want to look at the way XML Schema validates attributes as that would probably hold everything you need ... maybe ;) > > Peter is also working on a Swing form application for this but I am not > > sure where its at. > > Could be interesting. Perhaps I can use it in the Swing based Browser of > Batik for creating configuration dialogs. kool - keep us informed ;) -- Cheers, Peter Donald *----------------------------------------------------------* The phrase "computer literate user" really means the person has been hurt so many times that the scar tissue is thick enough so he no longer feels the pain. -- Alan Cooper, The Inmates are Running the Asylum *----------------------------------------------------------* -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>