Class ApacheCommonsExifTagExists
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.exiftagoperation.AbstractExifTagOperation<I,O>
-
- adams.flow.transformer.exiftagoperation.AbstractApacheCommonsExifTagOperation<Object,Boolean>
-
- adams.flow.transformer.exiftagoperation.ApacheCommonsExifTagExists
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,ExifTagExistsOperation<Object>
,ExifTagOperation<Object,Boolean>
,Serializable
public class ApacheCommonsExifTagExists extends AbstractApacheCommonsExifTagOperation<Object,Boolean> implements ExifTagExistsOperation<Object>
Checks whether the specified tag is present in the the file.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.flow.transformer.exiftagoperation.AbstractApacheCommonsExifTagOperation
m_Tag
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ApacheCommonsExifTagExists()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
Returns the type of data that we can process.protected String
check(Object input)
Hook method for performing checks before processing the data.protected Boolean
doProcess(Object input, MessageCollection errors)
Processes the incoming data.Class[]
generates()
Returns the type of data that we generate.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.transformer.exiftagoperation.AbstractApacheCommonsExifTagOperation
defineOptions, getQuickInfo, getTag, setTag, tagTipText
-
Methods inherited from class adams.flow.transformer.exiftagoperation.AbstractExifTagOperation
process
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.flow.transformer.exiftagoperation.ExifTagOperation
process
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.core.QuickInfoSupporter
getQuickInfo
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
accepts
public Class[] accepts()
Returns the type of data that we can process.- Specified by:
accepts
in interfaceExifTagOperation<Object,Boolean>
- Specified by:
accepts
in classAbstractExifTagOperation<Object,Boolean>
- Returns:
- the type of data
-
generates
public Class[] generates()
Returns the type of data that we generate.- Specified by:
generates
in interfaceExifTagOperation<Object,Boolean>
- Specified by:
generates
in classAbstractExifTagOperation<Object,Boolean>
- Returns:
- the type of data
-
check
protected String check(Object input)
Hook method for performing checks before processing the data.- Overrides:
check
in classAbstractExifTagOperation<Object,Boolean>
- Parameters:
input
- the input to process- Returns:
- null if successful, otherwise error message
-
doProcess
protected Boolean doProcess(Object input, MessageCollection errors)
Processes the incoming data.- Specified by:
doProcess
in classAbstractExifTagOperation<Object,Boolean>
- Parameters:
input
- the input to processerrors
- for storing errors- Returns:
- the generated output
-
-