Package com.example.common.input
Class InputPort
Class representing an input port value.
Extends Input class and specializes it for Integer type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValidatorInterface
getValidator
(String text) Retrieves and returns a ValidatorInterface object for validating the input value.getValue()
Retrieves and returns the validated Integer value from the input text.Methods inherited from class com.example.common.input.Input
getInputValue, getValueAfterValidation
-
Constructor Details
-
InputPort
public InputPort()
-
-
Method Details
-
getValidator
Retrieves and returns a ValidatorInterface object for validating the input value. Uses port validation rules and settings from Service class.- Specified by:
getValidator
in classInput<Integer>
- Parameters:
text
- The input text to be validated.- Returns:
- ValidatorInterface object for input validation.
-
getValue
Retrieves and returns the validated Integer value from the input text.
-