org.im4java.core
Class ETOperation

java.lang.Object
  extended by org.im4java.core.Operation
      extended by org.im4java.core.ETOps
          extended by org.im4java.core.ETOperation

public class ETOperation
extends ETOps

This class models the command-line of exiftool. It extends the auto-generated class ETOps with a number of methods for tag retrival and tag manipulation. Since it is not efficient to translate the original exiftool commandline-options directly to java-methods, the methods of this class don't follow the usual 1:1 relationship between method-names and commandline option-names.

Version:
$Revision: 1.4 $
Author:
$Author: bablokb, Bruno Mascret (warnings) $

Field Summary
 
Fields inherited from class org.im4java.core.Operation
DOP_PLACEHOLDER, iCmdArgs, IMG_PLACEHOLDER
 
Constructor Summary
ETOperation()
           
 
Method Summary
 ETOperation delTags(java.lang.String... pTags)
          Delete all tags with the given tag-names.
 ETOperation getTags(java.lang.String... pTags)
          Query all tags with the given tag-names.
 ETOperation omitTags(java.lang.String... pTags)
          Omit all tags with the given tag-names.
 ETOperation setTag(java.lang.String pTag, java.lang.String pFilename)
          Set tag with the content read from a file.
 ETOperation setTags(java.lang.String... pTagExpressions)
          Set all tags with the given tag-names.
 
Methods inherited from class org.im4java.core.ETOps
allowDuplicates, binary, common_args, composite, coordFormat, dateFormat, decimal, escapeHTML, exclude, execute, extension, extractEmbedded, fast, fixBase, forcePrint, groupHeadings, groupNames, hex, htmlDump, htmlFormat, ifCondition, ignore, ignoreExtension, ignoreMinorErrors, latin, list, list, listd, listf, listf, listg, listg, listg, listw, listw, listwf, listwf, longOutputFormat, noPrintConv, out, overwrite_original_in_place, overwrite_original, pause, preserve, printConv, printFormat, quiet, readArguments, recurse, scanForXMP, separator, shortOutputFormat, srcfile, supressDuplicates, tab, table, tagsFromFile, textOut, unknown, unknown2, verbose, verbose, veryShortOutputFormat, xmlFormat, zip
 
Methods inherited from class org.im4java.core.Operation
addDynamicOperation, addImage, addImage, addImage, addOperation, addRawArgs, addRawArgs, cloneObject, getCmdArgs, getDynamicOperations, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ETOperation

public ETOperation()
Method Detail

getTags

public ETOperation getTags(java.lang.String... pTags)
Query all tags with the given tag-names. This method translates to the -TAG commandline options. See the exiftool documentation for details.

Parameters:
pTags - the given tag-names
Returns:
this ETOperation

omitTags

public ETOperation omitTags(java.lang.String... pTags)
Omit all tags with the given tag-names. This method translates to the --TAG commandline options. See the exiftool documentation for details.

Parameters:
pTags - tags to be omitted
Returns:
this ETOperation
See Also:
ExiftoolCmd

setTags

public ETOperation setTags(java.lang.String... pTagExpressions)
Set all tags with the given tag-names. This method translates to the -TAG[+-][<]=Value commandline options. See the exiftool documentation for details.

Parameters:
pTagExpressions - A list in the form Tag[+-]=[<][Value],...
Returns:
this ETOperation

setTag

public ETOperation setTag(java.lang.String pTag,
                          java.lang.String pFilename)
Set tag with the content read from a file. This method translates to the -TAG<=Filename commandline option. See the exiftool documentation for details.

Parameters:
pTag - A tag name
pFilename - A filename or filename-template
Returns:
this ETOperation

delTags

public ETOperation delTags(java.lang.String... pTags)
Delete all tags with the given tag-names. This method translates to the -TAG= commandline options. Using the setTags()-methods with omitted values has the same effect. See the exiftool documentation for details.

Parameters:
pTags - the tags
Returns:
this ETOperation