Package gov.nih.mipav.model.file
Class MetadataExtractorTest.MockDirectory
java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.Directory
gov.nih.mipav.model.file.MetadataExtractorTest.MockDirectory
- Enclosing class:
MetadataExtractorTest
A mock implementation of Directory used in unit testing.
- Author:
- Drew Noakes https://drewnoakes.com
-
Field Summary
FieldsFields inherited from class gov.nih.mipav.model.file.MetadataExtractor.Directory
_definedTagList, _descriptor, _tagMap -
Constructor Summary
Constructors -
Method Summary
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, getTagName, getTags, hasErrors, hasTagName, isEmpty, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setDoubleArray, setFloat, setFloatArray, setInt, setIntArray, setLong, setObject, setObjectArray, setParent, setRational, setRationalArray, setString, setStringArray, setStringValue, setStringValueArray, toString
-
Field Details
-
_tagNameMap
-
-
Constructor Details
-
MockDirectory
public MockDirectory()
-
-
Method Details
-
getName
Description copied from class:MetadataExtractor.DirectoryProvides the name of the directory, for display purposes. E.g.Exif- Specified by:
getNamein classMetadataExtractor.Directory- Returns:
- the name of the directory
-
getTagNameMap
Description copied from class:MetadataExtractor.DirectoryProvides the map of tag names, hashed by tag type identifier.- Specified by:
getTagNameMapin classMetadataExtractor.Directory- Returns:
- the map of tag names
-