public static final class ExternalFinderItemCommand.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ExternalFinderItemCommand |
build() |
static ExternalFinderItemCommand.Builder |
from(ExternalFinderItemCommand item) |
java.lang.String[] |
generateSampleCommand() |
java.lang.String |
getCommand() |
java.lang.String |
getDelimiter() |
ExternalFinderItem.ENCODING |
getEncoding() |
ExternalFinderItem.TARGET |
getTarget() |
ExternalFinderItemCommand.Builder |
setCommand(java.lang.String command) |
ExternalFinderItemCommand.Builder |
setDelimiter(java.lang.String delimiter) |
ExternalFinderItemCommand.Builder |
setEncoding(ExternalFinderItem.ENCODING encoding) |
ExternalFinderItemCommand.Builder |
setTarget(ExternalFinderItem.TARGET target) |
java.lang.String[] |
validate()
Check the current builder parameters to see if they constitute a valid command.
|
public static ExternalFinderItemCommand.Builder from(ExternalFinderItemCommand item)
public ExternalFinderItemCommand.Builder setCommand(java.lang.String command)
public java.lang.String getCommand()
public ExternalFinderItemCommand.Builder setTarget(ExternalFinderItem.TARGET target)
public ExternalFinderItem.TARGET getTarget()
public ExternalFinderItemCommand.Builder setEncoding(ExternalFinderItem.ENCODING encoding)
public ExternalFinderItem.ENCODING getEncoding()
public ExternalFinderItemCommand.Builder setDelimiter(java.lang.String delimiter)
public java.lang.String getDelimiter()
public ExternalFinderItemCommand build() throws ExternalFinderValidationException
public java.lang.String[] validate() throws ExternalFinderValidationException
ExternalFinderValidationException
- If any parameter is not validpublic java.lang.String[] generateSampleCommand() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException