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

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 UTC