Package jetbrains.buildServer.serverSide
Class ReadOnlyAwareParameterType<T>
- java.lang.Object
-
- jetbrains.buildServer.serverSide.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 Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_PARAMETER_ARG
static java.lang.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 java.lang.String
describe(ControlDescription controlDescription)
static boolean
isReadOnlyParameter(ControlDescription controlDescription)
static boolean
isReadOnlyParameter(Parameter parameter)
java.lang.String
validate(java.lang.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 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
-
-
Method Detail
-
describe
@NotNull public java.lang.String describe(@NotNull ControlDescription controlDescription)
- Specified by:
describe
in interfaceParameterTypeBase<T>
-
validate
@Nullable public java.lang.String validate(@NotNull java.lang.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)
-
-