Class AbstractProcessingStepParameter
java.lang.Object
es.uvigo.esei.sing.textproc.step.xml.definition.AbstractProcessingStepParameter
- All Implemented Interfaces:
ProcessingStepParameter
- Direct Known Subclasses:
BatchSizeProcessingStepParameter
,PageSizeProcessingStepParameter
,PrimaryKeyColumnProcessingStepParameter
,TextColumnProcessingStepParameter
,TextDocumentTableNameProcessingStepParameter
,TextDocumentWithTitleTableNameProcessingStepParameter
,TitleColumnProcessingStepParameter
public abstract class AbstractProcessingStepParameter extends java.lang.Object implements ProcessingStepParameter
Contains common logic to all processing step parameters, keeping their code
DRY.
- Author:
- Alejandro González García
- See Also:
ProcessingStepParameter
-
Constructor Summary
Constructors Constructor Description AbstractProcessingStepParameter()
-
Method Summary
Modifier and Type Method Description static boolean
convertValueToBoolean(java.lang.String value)
Converts the value of a parameter to a boolean value.java.lang.String
getName()
Retrieves the name of the processing step parameter.java.lang.String
getValue()
Returns the value of the processing step parameter.
-
Constructor Details
-
Method Details
-
getValue
Description copied from interface:ProcessingStepParameter
Returns the value of the processing step parameter.- Specified by:
getValue
in interfaceProcessingStepParameter
- Returns:
- The value of the processing step parameter. It never is
null
.
-
getName
Description copied from interface:ProcessingStepParameter
Retrieves the name of the processing step parameter.- Specified by:
getName
in interfaceProcessingStepParameter
- Returns:
- The name of the processing step parameter. It never is
null
.
-
convertValueToBoolean
Converts the value of a parameter to a boolean value. Currently, the value is assumed to betrue
if and only if it equals the strings "true" or "1", ignoring case differences. Therefore, anull
value is treated asfalse
.- Parameters:
value
- The value for the processing step parameter.- Returns:
- The value of the processing step parameter, converted to a boolean value.
-