- From: JOSE MANUEL CANTERA FONSECA <jmcf@tid.es>
- Date: Mon, 26 May 2008 10:40:57 +0200
- To: "rotan.hanrahan@mobileaware.com" <rotan.hanrahan@mobileaware.com>
- Cc: "public-ddwg-comments@w3.org" <public-ddwg-comments@w3.org>
I accept this response -----Mensaje original----- De: rotan.hanrahan@mobileaware.com [mailto:rotan.hanrahan@mobileaware.com] Enviado el: domingo, 25 de mayo de 2008 22:22 Para: JOSE MANUEL CANTERA FONSECA CC: public-ddwg-comments@w3.org Asunto: Re: Your comments on Device Description Repository Simple API ( LC-1954) Dear José Manuel Cantera , The Mobile Web Initiative Device Description Working Group has reviewed the comments you sent [1] on the Last Call Working Draft [2] of the Device Description Repository Simple API published on 4 Apr 2008. Thank you for having taken the time to review the document and to send us comments! The Working Group's response to your comment is included below, and has been implemented in the new version of the document available at: http://www.w3.org/2005/MWI/DDWG/drafts/api/080525. Please review it carefully and let us know by email at public-ddwg-comments@w3.org if you agree with it or not before 5 June 2008. In case of disagreement, you are requested to provide a specific solution for or a path to a consensus with the Working Group. If such a consensus cannot be achieved, you will be given the opportunity to raise a formal objection which will then be reviewed by the Director during the transition of this document to the next stage in the W3C Recommendation Track. Thanks, For the Mobile Web Initiative Device Description Working Group, Matt Womer W3C Staff Contact 1. http://www.w3.org/mid/93AA9E47B82F684A868C217766F489050397FB9ECE@EXCLU2K7.hi.inet 2. http://www.w3.org/TR/2008/WD-DDR-Simple-API-20080404/ ===== Your comment on 4.3.2 Query Methods: > The PropertyValue interface publishes the method "getEnumeration()" to > deal with property values that are an enumeration of several values, > such as image formats. If a content adaptation solution needs to check > if a Delivery Context supports "gif" it will need to do the following: > > PropertyValue val = > service.getPropertyValue(evidence,"supportedImageFormats"); > > String[] imageFormats = val.getEnumeration(); > > gifSupported = false; > > for(int j = 0; j < imageFormats.length; j++) { > if(imageFormats[j].equals("gif")) { > gifSupported = true; > } > } > > As it is seen this is a very inconvenient way to do a more than common > operation. Also it will force develoeprs to copy & paste this code > over all the applications > > Proposed Amendment: > > + Add a contains method on the PropertyValue interface that returns > true or false depending on the values of the enumeration > > boolean gifSupported = > service.getPropertyValue(evidence,"supportedImageFormats").contains("gif"); > > José Manuel Cantera > Senior Technologist > Telefónica I+D Working Group Resolution (LC-1954): The DDR Simple API has been designed to be a fair balance between core/essential methods and common (convenience) methods, keeping in mind the power of established programming languages and libraries in which the implementations are expected to function. In many expected implementation languages, including Java, there are standard libraries to perform the contains() method as described, which will suffice for the purpose of the Simple API. More complex (and potentially more efficient) methods may be considered by individual implementers but such features would be exposed as custom extensions, which would be outside the scope of this specification. ----
Received on Monday, 26 May 2008 08:42:47 UTC