Class ReadOnlyAwareParameterType<T>

  • All Implemented Interfaces:
    ParameterTypeBase<T>

    public abstract class ReadOnlyAwareParameterType<T>
    extends java.lang.Object
    implements ParameterTypeBase<T>
    Created by Andrey Titov on 04.03.16.
    • Field Detail

      • READONLY_PARAMETER_ARG

        public static final java.lang.String READONLY_PARAMETER_ARG
        See Also:
        Constant Field Values
      • DEFAULT_PARAMETER_ARG

        public static final java.lang.String DEFAULT_PARAMETER_ARG
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReadOnlyAwareParameterType

        public ReadOnlyAwareParameterType()
    • Method Detail

      • validate

        @Nullable
        public java.lang.String validate​(@NotNull
                                         java.lang.String value,
                                         @Nullable
                                         ControlDescription controlDescription)
        Specified by:
        validate in interface ParameterTypeBase<T>
        Parameters:
        value - Value to validate
        controlDescription - Type Spec
        Returns:
        First found problem on validating value against provided Type Spec or null if the value is valid
      • isReadOnlyParameter

        public static boolean isReadOnlyParameter​(@Nullable
                                                  ControlDescription controlDescription)
      • isReadOnlyParameter

        public static boolean isReadOnlyParameter​(@NotNull
                                                  Parameter parameter)