SDO data digging concept (
http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg11291.html)
also applys to the Java counterpart.

There're two different SDO use cases:
2-1. access specific Property data
2-2. browse/dig data

Current spec has taken care of 2-1.
2-2 users have to be familiar with internal data structure and write very
complicated code which is error-prone.

Something like the following may help browsing SDO data:

interface Property.Setting
{
   Property getProperty();
   Object getValue();
}
interface DataObject
{
   Iterator<Property.Setting> getPropertySettings();
   ...
}

SDO implementations can also benefit from the support of 2-2 use case,
such as exposing DataObject as StAX Reader, DataObject Copy Helper,
DataObject Equality Helper, DataObject Serializer,
and the DO print util mentioned by Pete.

--

Yang ZHONG

Reply via email to