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

[API] Code Snippet II How to retrieve an enumerated property

From: JOSE MANUEL CANTERA FONSECA <jmcf@tid.es>
Date: Fri, 23 Nov 2007 17:12:12 +0100
To: public-ddwg@w3.org
Message-id: <f9afba53defb.defbf9afba53@tid.es>
Hi,

Here goes the next code snippet:

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

Best Regards

----
José Manuel Cantera Fonseca
Telefónica I+D

Received on Friday, 23 November 2007 16:12:24 GMT

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