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

RE: New simple API version with aspect support

From: Rodrigo Garcia Acevedo <rodrigo.garcia@fundacionctic.org>
Date: Tue, 12 Feb 2008 11:33:25 +0100
Message-ID: <09700B613C4DD84FA9F2FEA52188281902F405F4@ayalga.fundacionctic.org>
To: José Manuel Cantera Fonseca <jmcf@tid.es>
Cc: <public-ddwg@w3.org>

Hi all.

I support Jose's point about dropping the string methods to work with more specific types as it makes the API more robust and flexible (later on those classes could be easily extended through inheritance, etc). 
I also like the idea of adding the factory methods like newPropertyName and newAspectName and the cataloguing functions. I don't think they are neither cumbersome nor difficult to use.

Just two comments:
- To be totally consistent throughout the API, the vocabularyIRI string should be wrapped in a specific type with its own factory method too, shouldn't it?
- The listProperties(string vocabularyIRI) should throw a NameException too.

Best regards,
Rodrigo.

Btw, I uploaded the IDL for the current Simple API to the Morfeo's repository.

svn: https://svn.morfeo-project.org/svn/ddr-ri/trunk/Simple/API/idl
http: https://forge.morfeo-project.org/plugins/scmsvn/viewcvs.php/trunk/Simple/API/idl/?root=ddr-ri

_________________________________________________________
Rodrigo García Acevedo - rodrigo.garcia@fundacionctic.org
Departamento I+D+i
Fundación CTIC - www.fundacionctic.org
Parque Científico Tecnológico de Gijón
Edificio Centros Tecnológicos
33203 Cabueñes - Gijón - Asturias - Spain
Phone:  +34 984 29 12 12
Fax:    +34 984 39 06 12
_________________________________________________________

-----Mensaje original-----
De: public-ddwg-request@w3.org [mailto:public-ddwg-request@w3.org] En nombre de José Manuel Cantera Fonseca
Enviado el: lunes, 11 de febrero de 2008 18:07
Para: José Manuel Cantera Fonseca
CC: public-ddwg@w3.org
Asunto: Re: New simple API version with aspect support


The new version can be downloaded from SVN at

https://svn.morfeo-project.org/svn/ddr-ri/trunk/Simple/API/java/DevInfo-Simple-API

The code can be browsed in

https://forge.morfeo-project.org/plugins/scmsvn/viewcvs.php/trunk/Simple/API/java/DevInfo-Simple-API/?root=ddr-ri

Best Regards

José Manuel Cantera Fonseca escribió:
>
> Hi all,
>
> As agreed I have just uploaded a new version of the Java simple API 
> for DD. The new version includes aspect support and the cataloguing 
> functions supported by Jo. Also it includes the new newProperty 
> factory methods that avoid dealing directly with Strings in the 
> getProperty methods.
>
> Please note that the getPropertyValue methods do not deal with Strings 
> and I think this is part of the beauty of this API compared to WURFL's 
> (btw Luca has just announced a new version of the WURFL API :) ).
>
> IMHO saying that something is String is saying nothing, but using 
> something more specifically typed is good for our interface and for 
> standardization purposes.
>
> That's all for now
>
> Best Regards
>
>
Received on Tuesday, 12 February 2008 10:32:54 GMT

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