W3C home > Mailing lists > Public > public-ddwg@w3.org > February 2008

RE: getSimplePropertyValue

From: Rotan Hanrahan <rotan.hanrahan@mobileaware.com>
Date: Tue, 26 Feb 2008 10:04:26 -0500
Message-ID: <D5306DC72D165F488F56A9E43F2045D3017E2D63@FTO.mobileaware.com>
To: "Jo Rabin" <jrabin@mtld.mobi>, <public-ddwg@w3.org>
Stick with getSimplePropertyValues. It wouldn't make any sense to say
getUnknownSimplePropertyValues, so the "Known" is redundant.

 

Plus people don't always have the luxury of programming in widescreen.

 

As the semantics of the 4th method are subtly different, perhaps calling
it getPropertyValues would be enough, because the second parameter
clearly indicates that it is Simple Properties being requested, and the
same method could later be overloaded in an advanced API by passing an
array of PropertyRef objects instead of SimplePropertyRef objects.

 

It's just a thought. I don't really mind one way or the other.

 

---R

 

From: public-ddwg-request@w3.org [mailto:public-ddwg-request@w3.org] On
Behalf Of Jo Rabin
Sent: 26 February 2008 14:52
To: public-ddwg@w3.org
Subject: getSimplePropertyValue

 

At the moment we have 4 overloaded calls:

 

      public SimplePropertyValues getSimplePropertyValues(SimpleEvidence
evidence)

                  throws SystemException;

 

      public SimplePropertyValues getSimplePropertyValues(SimpleEvidence
evidence,

                  String aspectIRI, String aspectName) throws
NameException,

                  SystemException;

 

      public SimplePropertyValues getSimplePropertyValues(SimpleEvidence
evidence,

                  String aspectName) throws NameException,
SystemException;

      

      public SimplePropertyValues getSimplePropertyValues(SimpleEvidence
evidence,

                  SimplePropertyRef[] properties) throws NameException,

                  SystemException;

 

 

 

I think it would be better if the first 3 were called
getKnownSimplePropertyValues  since the semantic is different from the
following which returns values for all specified propoerties?

 

Any views before I post an updated interface definition?

 

Jo

 
Received on Tuesday, 26 February 2008 15:04:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 12:13:53 GMT