Package gov.nih.mipav.model.file
Class MetadataExtractor.ErrorDirectory
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.Directory
-
- gov.nih.mipav.model.file.MetadataExtractor.ErrorDirectory
-
- Enclosing class:
- MetadataExtractor
public final class MetadataExtractor.ErrorDirectory extends MetadataExtractor.Directory
A directory to use for the reporting of errors. No values may be added to this directory, only warnings and errors.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Field Summary
-
Fields inherited from class gov.nih.mipav.model.file.MetadataExtractor.Directory
_definedTagList, _descriptor, _tagMap
-
-
Constructor Summary
Constructors Constructor Description ErrorDirectory()
ErrorDirectory(java.lang.String error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Provides the name of the directory, for display purposes.java.lang.String
getTagName(int tagType)
Returns the name of a specified tag as a String.protected java.util.HashMap<java.lang.Integer,java.lang.String>
getTagNameMap()
Provides the map of tag names, hashed by tag type identifier.boolean
hasTagName(int tagType)
Gets whether the specified tag is known by the directory and has a name.void
setObject(int tagType, java.lang.Object value)
Sets aObject
for the specified tag.-
Methods inherited from class gov.nih.mipav.model.file.MetadataExtractor.Directory
addError, containsTag, getBoolean, getBooleanObject, getByteArray, getDate, getDate, getDate, getDescription, getDouble, getDoubleObject, getErrorCount, getErrors, getFloat, getFloatObject, getInt, getIntArray, getInteger, getLong, getLongObject, getObject, getParent, getRational, getRationalArray, getString, getString, getStringArray, getStringValue, getStringValueArray, getTagCount, getTags, hasErrors, isEmpty, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setDoubleArray, setFloat, setFloatArray, setInt, setIntArray, setLong, setObjectArray, setParent, setRational, setRationalArray, setString, setStringArray, setStringValue, setStringValueArray, toString
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:MetadataExtractor.Directory
Provides the name of the directory, for display purposes. E.g.Exif
- Specified by:
getName
in classMetadataExtractor.Directory
- Returns:
- the name of the directory
-
getTagNameMap
protected java.util.HashMap<java.lang.Integer,java.lang.String> getTagNameMap()
Description copied from class:MetadataExtractor.Directory
Provides the map of tag names, hashed by tag type identifier.- Specified by:
getTagNameMap
in classMetadataExtractor.Directory
- Returns:
- the map of tag names
-
getTagName
public java.lang.String getTagName(int tagType)
Description copied from class:MetadataExtractor.Directory
Returns the name of a specified tag as a String.- Overrides:
getTagName
in classMetadataExtractor.Directory
- Parameters:
tagType
- the tag type identifier- Returns:
- the tag's name as a String
-
hasTagName
public boolean hasTagName(int tagType)
Description copied from class:MetadataExtractor.Directory
Gets whether the specified tag is known by the directory and has a name.- Overrides:
hasTagName
in classMetadataExtractor.Directory
- Parameters:
tagType
- the tag type identifier- Returns:
- whether this directory has a name for the specified tag
-
setObject
public void setObject(int tagType, java.lang.Object value)
Description copied from class:MetadataExtractor.Directory
Sets aObject
for the specified tag.- Overrides:
setObject
in classMetadataExtractor.Directory
- Parameters:
tagType
- the tag's value as an intvalue
- the value for the specified tag
-
-