How do you find the TYPE of custom properties in Slides?
The following works for all types except date. Is there a better way to do this?
int custom_ct = document_properties.getCountOfCustomProperties();
for (int i=0; i<custom_ct; i++) {
String custom_name = document_properties.getCustomPropertyName(i);
Object obj = document_properties.get_Item(custom_name);
if (obj instanceof Boolean) {System.out.println(“Got boolean:”+custom_name+" value="+obj);}
else if (obj instanceof Date) {System.out.println(“Got Date:”+custom_name+" value="+obj);}
else if (obj instanceof String) {System.out.println(“Got String:”+custom_name+" value="+obj);}
else if (obj instanceof Integer) {System.out.println(“Got int:”+custom_name+" value="+obj);}
else {
System.out.println(“Type of “+custom_name+” is unknown”);
}
}