W3C home > Mailing lists > Public > public-xsd-databinding@w3.org > December 2005

Re: on databinding and programming languages

From: <Paul.V.Biron@kp.org>
Date: Thu, 29 Dec 2005 15:30:25 -0800
To: petexmldev@tech-know-ware.com
Cc: paul.downey@bt.com, public-xsd-databinding@w3.org, public-xsd-databinding-request@w3.org, ylafon@w3.org
Message-Id: <OF3F4E71F8.A2B38D51-ON882570E6.0080AFB0-882570E6.0080A61C@KP.ORG>

> >  type myInteger is range 10000 .. 99999;
> Even though these sorts of constraints are not natively supported by the 

> class based languages such as C++ and Java, they can be readily applied 
> through the use of accessor methods for get() and set().  They can also 
> applied during unmarshalling.  Even languages such as C, which can't 
> access to private variables in the same way that C++ and Java can, can 
> the constraints at marshalling time (possibly a case of better late than 

> never!).
> Hence for most languages such constraints should not be a problem.

+1. Don't forget constructors, as well.

Received on Thursday, 29 December 2005 23:51:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:12 UTC