//
for ( Iterator<Map.Entry<Integer,ImageMetaValue>> i = iterator();
i.hasNext(); ) {
final Map.Entry<Integer,ImageMetaValue> me = i.next();
final int tagID = me.getKey();
ImageMetaValue value = me.getValue();
//
// Only these tags are encoded as part of IPTC for XMP Core.
//
switch ( tagID ) {
case IPTC_COUNTRY_CODE:
case IPTC_INTELLECTUAL_GENRE:
case IPTC_LOCATION:
case IPTC_SCENE:
case IPTC_SUBJECT_CODE:
break;
default:
if ( !tagIsCreatorContactInfo( tagID ) )
continue;
}
/*
//
// In XMP, IPTC time fields are merged into the corresponding date
// field.
//
switch ( tagID ) {
case IPTC_DATE_CREATED:
value = mergeDateTime( value, IPTC_TIME_CREATED );
break;
case IPTC_DATE_SENT:
value = mergeDateTime( value, IPTC_TIME_SENT );
break;
case IPTC_DIGITAL_CREATION_DATE:
value = mergeDateTime( value, IPTC_DIGITAL_CREATION_TIME );
break;
case IPTC_EXPIRATION_DATE:
value = mergeDateTime( value, IPTC_EXPIRATION_TIME );
break;
case IPTC_RELEASE_DATE:
value = mergeDateTime( value, IPTC_RELEASE_TIME );
break;
case IPTC_DIGITAL_CREATION_TIME:
case IPTC_EXPIRATION_TIME:
case IPTC_RELEASE_TIME:
case IPTC_TIME_CREATED:
case IPTC_TIME_SENT:
continue;
}
*/
final Element valueElement = value.toXMP( xmpDoc, nsURI, prefix );
if ( valueElement != null ) {
final Element parent;
if ( tagIsCreatorContactInfo( tagID ) )
parent = cciElement;
else {