Package com.igormaznitsa.jcp.cmdline
Class CompareDestinationContentHandler
java.lang.Object
com.igormaznitsa.jcp.cmdline.CompareDestinationContentHandler
- All Implemented Interfaces:
CommandLineHandler
the Handler processes command to disable overriding of existing file if content the same.
- Since:
- 6.0.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description of the key (it will be printed into the help text)Get the key name for the handlerbooleanprocessCommandLineKey(String key, PreprocessorContext context) Process a command line key
-
Field Details
-
ARG_NAME
- See Also:
-
-
Constructor Details
-
CompareDestinationContentHandler
public CompareDestinationContentHandler()
-
-
Method Details
-
getKeyName
Description copied from interface:CommandLineHandlerGet the key name for the handler- Specified by:
getKeyNamein interfaceCommandLineHandler- Returns:
- the key name as a String, must not be null
-
getDescription
Description copied from interface:CommandLineHandlerGet the description of the key (it will be printed into the help text)- Specified by:
getDescriptionin interfaceCommandLineHandler- Returns:
- the description as a String
-
processCommandLineKey
Description copied from interface:CommandLineHandlerProcess a command line key- Specified by:
processCommandLineKeyin interfaceCommandLineHandler- Parameters:
key- the command line key to be processed, must not be nullcontext- the preprocessor context, must not be null- Returns:
- true if the key has been recognized and processed else false
-