Package org.omegat.externalfinder.item
Class ExternalFinderItemCommand.Builder
- java.lang.Object
-
- org.omegat.externalfinder.item.ExternalFinderItemCommand.Builder
-
- Enclosing class:
- ExternalFinderItemCommand
public static final class ExternalFinderItemCommand.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
from
public static ExternalFinderItemCommand.Builder from(ExternalFinderItemCommand item)
-
setCommand
public ExternalFinderItemCommand.Builder setCommand(java.lang.String command)
-
getCommand
public java.lang.String getCommand()
-
setTarget
public ExternalFinderItemCommand.Builder setTarget(ExternalFinderItem.TARGET target)
-
getTarget
public ExternalFinderItem.TARGET getTarget()
-
setEncoding
public ExternalFinderItemCommand.Builder setEncoding(ExternalFinderItem.ENCODING encoding)
-
getEncoding
public ExternalFinderItem.ENCODING getEncoding()
-
setDelimiter
public ExternalFinderItemCommand.Builder setDelimiter(java.lang.String delimiter)
-
getDelimiter
public java.lang.String getDelimiter()
-
build
public ExternalFinderItemCommand build() throws ExternalFinderValidationException
-
validate
public java.lang.String[] validate() throws ExternalFinderValidationException
Check the current builder parameters to see if they constitute a valid command.- Returns:
- A sample array of arguments illustrating what the output will look like
- Throws:
ExternalFinderValidationException
- If any parameter is not valid
-
generateSampleCommand
public java.lang.String[] generateSampleCommand() throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
-