hoa-le / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
0 stars 0 forks source link

Use objects for tag identifiers instead of ints #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Assumption is that this would improve discoverability of API and type/value 
safety.

Would also need ability to pass int directly (for tag types at least, not 
format types etc) so that additional tags can be queried without resorting to 
recompiling library.

Original issue reported on code.google.com by drewnoakes on 24 Apr 2011 at 6:49

GoogleCodeExporter commented 9 years ago
Even if Java enums aren't used, it would be good to have some kind of 
strongly-typed access to directory/descriptor fields.

Something like:

  public class TagType<T extends Descriptor>
  {
      private final String _friendlyName;
      private final String _compactName;
      private final int _identifier;
      private final FormatType _expectedFormatType; // maybe
  }

Original comment by drewnoakes on 3 May 2011 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 13 Jun 2012 at 8:16

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 16 Oct 2012 at 4:03