Class ApacheCommonsExifTagWrite
- 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,Object>
-
- adams.flow.transformer.exiftagoperation.ApacheCommonsExifTagWrite
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,ExifTagOperation<Object,Object>,ExifTagWriteOperation<Object,Object>,Serializable
public class ApacheCommonsExifTagWrite extends AbstractApacheCommonsExifTagOperation<Object,Object> implements ExifTagWriteOperation<Object,Object>
Sets the specified tag value in the file.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringm_Valuethe value to write.-
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 ApacheCommonsExifTagWrite()
-
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 Stringcheck(Object input)Hook method for performing checks before processing the data.voiddefineOptions()Adds options to the internal list of options.protected ObjectdoProcess(Object input, MessageCollection errors)Processes the incoming data.Class[]generates()Returns the type of data that we generate.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.StringgetValue()Returns the value to store.StringglobalInfo()Returns a string describing the object.voidsetValue(String value)Sets the value to store.StringvalueTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.exiftagoperation.AbstractApacheCommonsExifTagOperation
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, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_Value
protected String m_Value
the value to write.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractApacheCommonsExifTagOperation<Object,Object>
-
setValue
public void setValue(String value)
Sets the value to store.- Parameters:
value- the value
-
getValue
public String getValue()
Returns the value to store.- Returns:
- the value
-
valueTipText
public String valueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfoin interfaceQuickInfoSupporter- Overrides:
getQuickInfoin classAbstractApacheCommonsExifTagOperation<Object,Object>- Returns:
- null if no info available, otherwise short string
-
accepts
public Class[] accepts()
Returns the type of data that we can process.- Specified by:
acceptsin interfaceExifTagOperation<Object,Object>- Specified by:
acceptsin classAbstractExifTagOperation<Object,Object>- Returns:
- the type of data
-
generates
public Class[] generates()
Returns the type of data that we generate.- Specified by:
generatesin interfaceExifTagOperation<Object,Object>- Specified by:
generatesin classAbstractExifTagOperation<Object,Object>- Returns:
- the type of data
-
check
protected String check(Object input)
Hook method for performing checks before processing the data.- Overrides:
checkin classAbstractExifTagOperation<Object,Object>- Parameters:
input- the input to process- Returns:
- null if successful, otherwise error message
-
doProcess
protected Object doProcess(Object input, MessageCollection errors)
Processes the incoming data.- Specified by:
doProcessin classAbstractExifTagOperation<Object,Object>- Parameters:
input- the input to processerrors- for storing errors- Returns:
- the generated output
-
-