public class Tag
extends java.lang.Object
Directory
and provides methods for obtaining its value.
Immutable.Modifier and Type | Field and Description |
---|---|
private Directory |
_directory |
private int |
_tagType |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get a description of the tag's value, considering enumerated values
and units.
|
java.lang.String |
getDirectoryName()
|
java.lang.String |
getTagName()
Get the name of the tag, such as
Aperture , or
InteropVersion . |
int |
getTagType()
Gets the tag type as an int
|
java.lang.String |
getTagTypeHex()
Gets the tag type in hex notation as a String with padded leading
zeroes if necessary (i.e.
|
boolean |
hasTagName()
Get whether this tag has a name.
|
java.lang.String |
toString()
A basic representation of the tag's type and value.
|
private final int _tagType
private final Directory _directory
public Tag(int tagType, Directory directory)
public int getTagType()
public java.lang.String getTagTypeHex()
0x100e
).public java.lang.String getDescription()
public boolean hasTagName()
true
, it may be accessed via getTagName()
.
If false
, getTagName()
will return a string resembling "Unknown tag (0x1234)"
.public java.lang.String getTagName()
Aperture
, or
InteropVersion
.public java.lang.String getDirectoryName()
Directory
in which this tag existspublic java.lang.String toString()
[Exif IFD0] FNumber - f/2.8
.toString
in class java.lang.Object