You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Peter Royal <pr...@apache.org> on 2002/07/01 03:27:40 UTC
[framework] AbstractConfiguration.get*AsBoolean
Any opposition to modifying AbstractConfiguration.get*AsBoolean methods to
recognize any valid XML Schema Boolean datatype?
(http://www.w3.org/TR/xmlschema-2/#boolean)
What's the impact?
Recognizing the literals 1 as true and 0 as false.
If no objections I will patch, but I wanted to check before modifying
framework.
-peter
--
peter royal -> proyal@apache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [framework] AbstractConfiguration.get*AsBoolean
Posted by Peter Donald <pe...@apache.org>.
On Mon, 1 Jul 2002 11:27, Peter Royal wrote:
> Any opposition to modifying AbstractConfiguration.get*AsBoolean methods to
> recognize any valid XML Schema Boolean datatype?
> (http://www.w3.org/TR/xmlschema-2/#boolean)
>
> What's the impact?
>
> Recognizing the literals 1 as true and 0 as false.
+1
--
Cheers,
Peter Donald
------------------------------------------------
| We shall not cease from exploration, and the |
| end of all our exploring will be to arrive |
| where we started and know the place for the |
| first time -- T.S. Eliot |
------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [framework] AbstractConfiguration.get*AsBoolean
Posted by Stephen McConnell <mc...@osm.net>.
Peter Royal wrote:
>On Sunday 30 June 2002 09:40 pm, Stephen McConnell wrote:
>
>
>>Could I suggest extending this to any of the followging values converted
>>to either uper or lowercase
>>
>>for true:
>>
>> "true"
>> "yes"
>> "on"
>> "1"
>>
>>for false:
>>
>> "false"
>> "no"
>> "off"
>> "0"
>>
>>
>
>Thats fine. I just wanted to make sure we at least included the XML Schema
>datatypes, so I can use them as shortcuts for config schemas.
>-pete
>
>
>
Cool - here is my +1 for the XML Schema datatypes and another +1 for the
logical variants.
Steve.
--
Stephen J. McConnell
OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [framework] AbstractConfiguration.get*AsBoolean
Posted by Peter Royal <pr...@apache.org>.
On Sunday 30 June 2002 09:40 pm, Stephen McConnell wrote:
> Could I suggest extending this to any of the followging values converted
> to either uper or lowercase
>
> for true:
>
> "true"
> "yes"
> "on"
> "1"
>
> for false:
>
> "false"
> "no"
> "off"
> "0"
Thats fine. I just wanted to make sure we at least included the XML Schema
datatypes, so I can use them as shortcuts for config schemas.
-pete
--
peter royal -> proyal@apache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [framework] AbstractConfiguration.get*AsBoolean
Posted by Stephen McConnell <mc...@osm.net>.
Peter Royal wrote:
>Any opposition to modifying AbstractConfiguration.get*AsBoolean methods to
>recognize any valid XML Schema Boolean datatype?
>(http://www.w3.org/TR/xmlschema-2/#boolean)
>
>What's the impact?
>
>Recognizing the literals 1 as true and 0 as false.
>
>If no objections I will patch, but I wanted to check before modifying
>framework.
>-peter
>
>
>
Could I suggest extending this to any of the followging values converted
to either uper or lowercase
for true:
"true"
"yes"
"on"
"1"
for false:
"false"
"no"
"off"
"0"
Cheers, Steve.
--
Stephen J. McConnell
OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: [framework] AbstractConfiguration.get*AsBoolean
Posted by Berin Loritsch <bl...@apache.org>.
As long as we don't lose what we already have, +1
> -----Original Message-----
> From: Peter Royal [mailto:proyal@apache.org]
> Sent: Sunday, June 30, 2002 9:28 PM
> To: avalon-dev@jakarta.apache.org
> Subject: [framework] AbstractConfiguration.get*AsBoolean
>
>
> Any opposition to modifying
> AbstractConfiguration.get*AsBoolean methods to
> recognize any valid XML Schema Boolean datatype?
> (http://www.w3.org/TR/xmlschema-2/#boolean)
>
> What's the impact?
>
> Recognizing the literals 1 as true and 0 as false.
>
> If no objections I will patch, but I wanted to check before modifying
> framework.
> -peter
>
> --
> peter royal -> proyal@apache.org
>
> --
> To unsubscribe, e-mail:
> <mailto:avalon-dev-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>