Class SIS.Identifier
Object
Identifier
- All Implemented Interfaces:
Cloneable
- Enclosing class:
SIS
Builder for the "identifier" sub-command. This builder provides convenience methods
for setting options before to execute the command by a call to
run(Object...)
.- Since:
- 1.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncolors
(boolean enabled) Sets whether colorized output shall be enabled.debug()
Prints full stack trace in case of failure.Sets encoding to use for the command outputs.help()
Lists the options available for the sub-command.Sets the locale to use for the command output.void
Executes the command with the given arguments.Returns the command with all options that have been set.verbose()
Requests the output to contain more detailed information.
-
Method Details
-
locale
Sets the locale to use for the command output.- Parameters:
value
- the language and country code.- Returns:
- a new builder or
this
, for method call chaining.
-
encoding
Sets encoding to use for the command outputs. This option rarely needs to be specified.- Parameters:
value
- the character set name.- Returns:
- a new builder or
this
, for method call chaining.
-
colors
Sets whether colorized output shall be enabled.- Parameters:
enabled
- whether colors are enabled.- Returns:
- a new builder or
this
, for method call chaining.
-
verbose
Requests the output to contain more detailed information.- Returns:
- a new builder or
this
, for method call chaining.
-
debug
Prints full stack trace in case of failure.- Returns:
- a new builder or
this
, for method call chaining.
-
help
Lists the options available for the sub-command.- Returns:
- a new builder or
this
, for method call chaining.
-
run
Executes the command with the given arguments. The arguments are usuallyString
instances, but may also be instances ofFile
,Path
,URL
,URI
or other types accepted byStorageConnector
if the corresponding argument specifies an input or output.- Parameters:
args
- the arguments to pass to the sub-command.name
- name of the sub-command to execute.- Throws:
Exception
- if an error occurred while executing the command.
-
toString
-