Class InputPort

java.lang.Object
com.example.common.input.Input<Integer>
com.example.common.input.InputPort

public class InputPort extends Input<Integer>
Class representing an input port value. Extends Input class and specializes it for Integer type.
  • Constructor Details

    • InputPort

      public InputPort()
  • Method Details

    • getValidator

      protected ValidatorInterface getValidator(String text)
      Retrieves and returns a ValidatorInterface object for validating the input value. Uses port validation rules and settings from Service class.
      Specified by:
      getValidator in class Input<Integer>
      Parameters:
      text - The input text to be validated.
      Returns:
      ValidatorInterface object for input validation.
    • getValue

      public Integer getValue()
      Retrieves and returns the validated Integer value from the input text.
      Specified by:
      getValue in class Input<Integer>
      Returns:
      The validated Integer value from the input text.