/** * Get a particular exif tag by name. This will retrieve the proper exif * tag based on the name. */ public ExifTag getExifTag(String exifName) { Collection<ExifTag> tags = getExifTags(); for (ExifTag tag : tags) { if (tag.getName().equals(exifName)) { return tag; } } return null; }
/** * Get a particular exif tag by name. This will retrieve the proper exif * tag based on the name. */ public ExifTag getExifTag(String exifName) { Collection<ExifTag> tags = getExifTags(); for (ExifTag tag : tags) { if (tag.getName().equals(exifName)) { return tag; } } return null; }
@Override public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException { w.startElement(Namespaces.EXIF_NAMESPACE, "tags", null, null); Collection<ExifTag> fields = getExifTags(); for (ExifTag field : fields) { field.generate(w, extProfile); } w.endElement(); }
@Override public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException { w.startElement(Namespaces.EXIF_NAMESPACE, "tags", null, null); Collection<ExifTag> fields = getExifTags(); for (ExifTag field : fields) { field.generate(w, extProfile); } w.endElement(); }