Enum InteropTag

java.lang.Object
java.lang.Enum<InteropTag>
pixy.meta.exif.InteropTag
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<InteropTag>, java.lang.constant.Constable, Tag

public enum InteropTag
extends java.lang.Enum<InteropTag>
implements Tag
Defines Interoperability tags
Version:
1.0 03/26/2014
Author:
Wen Yu, yuwen_66@yahoo.com
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

  • Method Summary

    Modifier and Type Method Description
    static Tag fromShort​(short value)  
    java.lang.String getFieldAsString​(java.lang.Object value)
    Intended to be overridden by certain tags to provide meaningful string representation of the field value such as compression, photo metric interpretation etc.
    FieldType getFieldType()  
    java.lang.String getName()  
    short getValue()  
    boolean isCritical()  
    java.lang.String toString()  
    static InteropTag valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static InteropTag[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static InteropTag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static InteropTag valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface Tag
    • getValue

      public short getValue()
      Specified by:
      getValue in interface Tag
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Enum<InteropTag>
    • fromShort

      public static Tag fromShort​(short value)
    • getFieldAsString

      public java.lang.String getFieldAsString​(java.lang.Object value)
      Intended to be overridden by certain tags to provide meaningful string representation of the field value such as compression, photo metric interpretation etc.
      Specified by:
      getFieldAsString in interface Tag
      Parameters:
      value - field value to be mapped to a string
      Returns:
      a string representation of the field value or empty string if no meaningful string representation exists.
    • isCritical

      public boolean isCritical()
      Specified by:
      isCritical in interface Tag
    • getFieldType

      public FieldType getFieldType()
      Specified by:
      getFieldType in interface Tag