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 
be 
> applied during unmarshalling.  Even languages such as C, which can't 
control 
> access to private variables in the same way that C++ and Java can, can 
apply 
> 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.

pvb
Received on Thursday, 29 December 2005 23:51:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 18:20:36 GMT