Package jetbrains.buildServer.serverSide
Class ReadOnlyAwareParameterType<T>
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ReadOnlyAwareParameterType<T>
-
- All Implemented Interfaces:
ParameterTypeBase<T>
- Direct Known Subclasses:
BooleanParameter
,NumberParameterType
,PasswordType
,TextParameter
public abstract class ReadOnlyAwareParameterType<T> extends Object implements ParameterTypeBase<T>
Created by Andrey Titov on 04.03.16.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PARAMETER_ARG
static String
READONLY_PARAMETER_ARG
-
Constructor Summary
Constructors Constructor Description ReadOnlyAwareParameterType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
describe(ControlDescription controlDescription)
static boolean
isReadOnlyParameter(ControlDescription controlDescription)
static boolean
isReadOnlyParameter(Parameter parameter)
String
validate(String value, ControlDescription controlDescription)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.ParameterTypeBase
getParameterType, getValue, getValue, isSecureParameter, isValid, isValid, isValid, toString, validate, validate
-
-
-
-
Field Detail
-
READONLY_PARAMETER_ARG
public static final String READONLY_PARAMETER_ARG
- See Also:
- Constant Field Values
-
DEFAULT_PARAMETER_ARG
public static final String DEFAULT_PARAMETER_ARG
- See Also:
- Constant Field Values
-
-
Method Detail
-
describe
@NotNull public String describe(@NotNull ControlDescription controlDescription)
- Specified by:
describe
in interfaceParameterTypeBase<T>
-
validate
@Nullable public String validate(@NotNull String value, @Nullable ControlDescription controlDescription)
- Specified by:
validate
in interfaceParameterTypeBase<T>
- Parameters:
value
- Value to validatecontrolDescription
- 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)
-
-