Package pixy.meta.exif
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
-
Enum Constant Summary
Enum Constants Enum Constant Description INTEROPERABILITY_INDEX
INTEROPERABILITY_VERSION
RELATED_IMAGE_FILE_FORMAT
RELATED_IMAGE_LENGTH
RELATED_IMAGE_WIDTH
UNKNOWN
-
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.
-
Enum Constant Details
-
Method Details
-
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
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 namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName() -
getValue
public short getValue() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<InteropTag>
-
fromShort
-
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 interfaceTag
- 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 interfaceTag
-
getFieldType
- Specified by:
getFieldType
in interfaceTag
-