W3C home > Mailing lists > Public > public-ddwg@w3.org > December 2007

[API] Resuming API Work : DDRPropertyValue (including enumerations)

From: Josť Manuel Cantera Fonseca <jmcf@tid.es>
Date: Mon, 10 Dec 2007 14:39:14 +0100
To: public-ddwg@w3.org
Message-id: <475D4182.3090004@tid.es>


The discussion now need to turn on the DDRPropertyValue object and its 

Please take a look at the current version of this class in [1]. The 
DDRPropertyValue class is a subclass of DDRValue [2] which actually has 
all the methods needed to retrieve a property value. It is important to 
note that a DDRPropertyValue references the aspect / component to which 
the property value applies, which is useful in those cases where 
multiple DDRPropertyValues are obtained

Also it is important to have a look at the way that enumerated values 
are treated and how this would be used to query about thinks like image 

DDRPropertyValue value =
DDREnumeration enumeration = value.getEnumeration();
if(enumeration.contains("cv:gif")) {
    System.out.println("GIF format is supported for images");

Please have a look at this proposal and send comments, it is very 
important to make progress in the API

Best Regards

Received on Monday, 10 December 2007 13:45:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:00:15 UTC