Class Command
java.lang.Object
org.qubership.atp.mia.model.impl.executable.GeneralModel
org.qubership.atp.mia.model.impl.executable.Command
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class org.qubership.atp.mia.model.impl.executable.GeneralModel
value -
Constructor Summary
ConstructorsConstructorDescriptionCommand()CreatesCommandinstance without parameters.CreatesCommandinstance for simple command.CreatesCommandinstance with parameters.CreatesCommandcopy. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones Command object.Get charset for generated file.booleanGets ATP values.booleangetRest()Gets rest value.Gets saveGeneratedFilesToParameter.getSoap()Gets soap value.Gets testDataParams value.Gets toExecute.getValue()Gets values as string.inthashCode()setAtpValues(LinkedHashMap<String, String> atpValues) Sets ATP values.setCharsetForGeneratedFile(String charsetForGeneratedFile) Sets charsetForGeneratedFile.setDelayForGeneration(String delayForGeneration) Sets delayForGeneration.voidsetDescription(String description) Sets description.setDisplayDownloadedFileContent(boolean displayDownloadedFileContent) setEthalonFilesForGeneration(List<String> ethalonFilesForGeneration) Sets ethalonFilesForGeneration.setFileExtension(String fileExtension) Sets fileExtension.voidsetFileMarkers(List<FileMarker> fileMarkers) setFilesForUpload(List<String> filesForUpload) setLogFileNameFormat(String logFileNameFormat) Sets fileExtension.Sets marker.setNamesOfFilesForGeneration(List<String> namesOfFilesForGeneration) Sets namesOfFilesForGeneration.setPathForUpload(String pathForUpload) Sets pathForUpload.setPathsForDownload(List<String> pathsForDownload) Sets pathsForDownload.setRegexpForFileRetrieve(String regexpForFileRetrieve) Sets regexpForFileRetrieve.voidSets rest value.setSaveGeneratedFilesToParameter(String saveGeneratedFilesToParameter) Sets saveGeneratedFilesToParameter.voidSets soap value.voidsetTestDataParams(TestDataParams testDataParams) Sets testDataParams value.setToExecute(String toExecute) Sets toExecute.voidSets value.voidsetValues(LinkedHashSet<String> values) Sets values.setVariablesToExtractFromLog(LinkedHashMap<String, String> variablesToExtractFromLog) Sets variablesToExtractFromLog.voidsetWarningDescription(String warningDescription) Sets warningDescription.toString()Methods inherited from class org.qubership.atp.mia.model.impl.executable.GeneralModel
addValue, cloneValues, getName, getSystem, getType, getValues, setName, setSystem, setSystemIfNull, setType
-
Constructor Details
-
Command
CreatesCommandcopy.- Parameters:
command- original command
-
Command
public Command()CreatesCommandinstance without parameters. -
Command
CreatesCommandinstance for simple command.- Parameters:
toExecute- toExecute
-
Command
public Command(@Nonnull String name, @Nonnull String type, @Nonnull String system, @Nonnull LinkedHashSet<String> values) CreatesCommandinstance with parameters.- Parameters:
name- nametype- typesystem- systemvalues- values
-
-
Method Details
-
clone
Clones Command object. -
setValue
Sets value. Do not call! Used during parsing config.- Overrides:
setValuein classGeneralModel- Parameters:
value- value
-
getValue
Description copied from class:GeneralModelGets values as string.- Overrides:
getValuein classGeneralModel- Returns:
- value
-
setValues
Sets values. Do not call! Used during parsing config.- Overrides:
setValuesin classGeneralModel- Parameters:
values- values
-
getAtpValues
Gets ATP values. -
definedCharsetForGeneratedFile
Get charset for generated file.- Returns:
- Charset
-
getToExecute
Gets toExecute.- Returns:
- toExecute
-
setToExecute
Sets toExecute.- Parameters:
toExecute- toExecute- Returns:
Commandinstance
-
getFileExtension
-
setFileExtension
Sets fileExtension.- Parameters:
fileExtension- fileExtension- Returns:
Commandinstance
-
getPathForUpload
-
setPathForUpload
Sets pathForUpload.- Parameters:
pathForUpload- pathForUpload- Returns:
Commandinstance
-
getNamesOfFilesForGeneration
-
setNamesOfFilesForGeneration
Sets namesOfFilesForGeneration.- Parameters:
namesOfFilesForGeneration- namesOfFilesForGeneration- Returns:
Commandinstance
-
getEthalonFilesForGeneration
-
setEthalonFilesForGeneration
Sets ethalonFilesForGeneration.- Parameters:
ethalonFilesForGeneration- ethalonFilesForGeneration- Returns:
Commandinstance
-
getRegexpForFileRetrieve
-
setRegexpForFileRetrieve
Sets regexpForFileRetrieve.- Parameters:
regexpForFileRetrieve- regexpForFileRetrieve- Returns:
Commandinstance
-
getDelayForGeneration
-
setDelayForGeneration
Sets delayForGeneration.- Parameters:
delayForGeneration- delayForGeneration- Returns:
Commandinstance
-
getPathsForDownload
-
setPathsForDownload
Sets pathsForDownload.- Parameters:
pathsForDownload- pathsForDownload- Returns:
Commandinstance
-
getMarker
-
setMarker
Sets marker.- Parameters:
marker- marker- Returns:
Commandinstance
-
getSaveGeneratedFilesToParameter
Gets saveGeneratedFilesToParameter.- Returns:
- saveGeneratedFilesToParameter value
-
setSaveGeneratedFilesToParameter
Sets saveGeneratedFilesToParameter.- Parameters:
saveGeneratedFilesToParameter- saveGeneratedFilesToParameter- Returns:
Commandinstance
-
getDescription
-
setDescription
Sets description.- Parameters:
description- description
-
getWarningDescription
-
setWarningDescription
Sets warningDescription.- Parameters:
warningDescription- warningDescription
-
getLogFileNameFormat
-
setLogFileNameFormat
Sets fileExtension.- Parameters:
logFileNameFormat- logFileNameFormat- Returns:
Commandinstance
-
getVariablesToExtractFromLog
-
setVariablesToExtractFromLog
public Command setVariablesToExtractFromLog(@Nullable LinkedHashMap<String, String> variablesToExtractFromLog) Sets variablesToExtractFromLog.- Parameters:
variablesToExtractFromLog- variablesToExtractFromLog- Returns:
Commandinstance
-
getCharsetForGeneratedFile
-
setCharsetForGeneratedFile
Sets charsetForGeneratedFile.- Parameters:
charsetForGeneratedFile- charsetForGeneratedFile- Returns:
Commandinstance
-
setAtpValues
Sets ATP values. Do not call! Used during parsing config. -
getDisplayDownloadedFileContent
public boolean getDisplayDownloadedFileContent() -
setDisplayDownloadedFileContent
-
getFilesForUpload
-
setFilesForUpload
-
getFileMarkers
-
setFileMarkers
-
getTestDataParams
Gets testDataParams value.- Returns:
- testDataParams
-
setTestDataParams
Sets testDataParams value.- Parameters:
testDataParams- testDataParams value
-
getRest
Gets rest value.- Returns:
- rest
-
setRest
Sets rest value.- Parameters:
rest- rest value
-
getSoap
Gets soap value.- Returns:
- soap
-
setSoap
Sets soap value.- Parameters:
soap- soap value
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classGeneralModel
-