public class CommandTemplate extends Object
command skeleton
.Modifier and Type | Field and Description |
---|---|
private String |
className
Command class name
|
private ArrayList<Integer> |
inputChoices
Input choices
|
private ArrayList<String> |
inputConstants
Input constants as strings
|
private ArrayList<Integer> |
outputChoices
Output choices
|
private ArrayList<String> |
outputDirs
Output directories
|
private ArrayList<String> |
outputExts
Output file extensions
|
private ArrayList<String> |
outputPres
Output file prefixes
|
private ArrayList<Integer> |
parentFields
Parent fields to copy
|
Constructor and Description |
---|
CommandTemplate() |
CommandTemplate(XMLStreamReader xsr) |
Modifier and Type | Method and Description |
---|---|
String |
getCommandClass()
Get the command class name
|
void |
getInputChoices(ArrayList<Integer> ics,
ArrayList<Object> cs)
Get the command input choice parameters.
|
void |
getOutputChoices(ArrayList<Integer> ocs,
ArrayList<Integer> spfs,
ArrayList<String> lds,
ArrayList<String> lps,
ArrayList<String> les)
Set the command output choices.
|
void |
readXML(XMLStreamReader xsr)
Populate these properties from an XML stream.
|
void |
setCommandClass(String cn)
Set the command class name
|
void |
setInputChoices(ArrayList<Integer> ics,
ArrayList<Object> cs)
Set the command input choice parameters.
|
void |
setOutputChoices(ArrayList<Integer> ocs,
ArrayList<Integer> spfs,
ArrayList<String> lds,
ArrayList<String> lps,
ArrayList<String> les)
Set the command output choices.
|
void |
writeXML(XMLStreamWriter xsw,
String indent)
Write these properties to an XML stream.
|
private String className
public CommandTemplate()
public CommandTemplate(XMLStreamReader xsr) throws SlideSetException, XMLStreamException
SlideSetException
XMLStreamException
public void setCommandClass(String cn)
public String getCommandClass()
public void setInputChoices(ArrayList<Integer> ics, ArrayList<Object> cs) throws SlideSetException
ics
- Input choice indecescs
- Input constantsSlideSetException
public void getInputChoices(ArrayList<Integer> ics, ArrayList<Object> cs)
ics
- ArrayList
to be filled with input choice indecescs
- ArrayList
to be filled with input constantspublic void setOutputChoices(ArrayList<Integer> ocs, ArrayList<Integer> spfs, ArrayList<String> lds, ArrayList<String> lps, ArrayList<String> les) throws SlideSetException
ocs
- Output selection indecesspfs
- Selected parent field indeceslds
- Link directorieslps
- Link prefixesles
- Link extensionsSlideSetException
public void getOutputChoices(ArrayList<Integer> ocs, ArrayList<Integer> spfs, ArrayList<String> lds, ArrayList<String> lps, ArrayList<String> les)
ocs
- ArrayList
to be filled with output selection indecesspfs
- ArrayList
to be filled with selected parent field indeceslds
- ArrayList
to be filled with link directorieslps
- ArrayList
to be filled with link prefixesles
- ArrayList
to be filled with link extensionspublic void writeXML(XMLStreamWriter xsw, String indent) throws XMLStreamException
xsw
- The XMLStreamWriter
indent
- White space to put at the beginning of each lineXMLStreamException
public final void readXML(XMLStreamReader xsr) throws SlideSetException, XMLStreamException
xsr
- The XMLStreamReader
SlideSetException
XMLStreamException
Copyright © 2023. All rights reserved.