Package org.omegat.externalfinder.item
Class ExternalFinderItemCommand
- java.lang.Object
-
- org.omegat.externalfinder.item.ExternalFinderItemCommand
-
public class ExternalFinderItemCommand extends java.lang.Object
A data class representing an ExternalFinder "command". Immutable. Optionally useExternalFinderItemCommand.Builder
to construct.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExternalFinderItemCommand.Builder
-
Constructor Summary
Constructors Constructor Description ExternalFinderItemCommand(java.lang.String command, ExternalFinderItem.TARGET target, ExternalFinderItem.ENCODING encoding, java.lang.String delimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String[]
generateCommand(java.lang.String findingWords)
java.lang.String
getCommand()
java.lang.String
getDelimiter()
ExternalFinderItem.ENCODING
getEncoding()
ExternalFinderItem.TARGET
getTarget()
int
hashCode()
-
-
-
Constructor Detail
-
ExternalFinderItemCommand
public ExternalFinderItemCommand(java.lang.String command, ExternalFinderItem.TARGET target, ExternalFinderItem.ENCODING encoding, java.lang.String delimiter)
-
-
Method Detail
-
getCommand
public java.lang.String getCommand()
-
getTarget
public ExternalFinderItem.TARGET getTarget()
-
getEncoding
public ExternalFinderItem.ENCODING getEncoding()
-
getDelimiter
public java.lang.String getDelimiter()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
generateCommand
public final java.lang.String[] generateCommand(java.lang.String findingWords) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
-