public class IsCmd extends Object
An Inkscape command object creating a command line with entries for string substitution.
| Modifier and Type | Field and Description |
|---|---|
protected StrBuilder |
cmd
The command as string builder.
|
static String |
SUBS_FIN
Substitution string for input file.
|
static String |
SUBS_FOUT
Substitution string for output file.
|
| Constructor and Description |
|---|
IsCmd(IsCmd command)
Creates a new command copying the given command.
|
IsCmd(String isExec,
SvgTargets target,
AppProperties<?> properties)
Creates a new command with default entries.
|
| Modifier and Type | Method and Description |
|---|---|
IsCmd |
appendSelectedNode(String nodeId)
Appends all required CLI options for a node that is selected.
|
IsCmd |
appendTargetSettings(SvgTargets target,
IsTargetOption... options)
Appends target specific settings read from application properties.
|
String |
substitute(String fin,
String fout)
Substitutes input and output file name in the command with given values
|
String |
toString() |
public static String SUBS_FIN
Substitution string for input file.
public static String SUBS_FOUT
Substitution string for output file.
protected final StrBuilder cmd
The command as string builder.
public IsCmd(IsCmd command)
Creates a new command copying the given command.
command - command to copy values from, must not be nullNullPointerException - if command was nullpublic IsCmd(String isExec, SvgTargets target, AppProperties<?> properties)
Creates a new command with default entries. This will add the executable, no GUI, export area as page, text to path if set in properties, substituter for input file, and target.
isExec - Inkscape executable file name, must not be blanktarget - the target, must not be nullproperties - application properties, must not be nullNullPointerException - if any argument was nullpublic IsCmd appendTargetSettings(SvgTargets target, IsTargetOption... options)
Appends target specific settings read from application properties.
target - the target, must not be nulloptions - application options, must not be null and have no null elementsNullPointerException - if any argument was nullIllegalArgumentException - if any option was nullpublic String substitute(String fin, String fout)
Substitutes input and output file name in the command with given values
fin - input file, must not be blankfout - output file, must not be blankNullPointerException - if any argument was nullIllegalArgumentException - if any argument was blankpublic IsCmd appendSelectedNode(String nodeId)
Appends all required CLI options for a node that is selected.
nodeId - the node identifier, must not be blankNullPointerException - if nodeId was nullIllegalArgumentException - if nodeId was blankCopyright © 2012–2017. All rights reserved.