Package jetbrains.buildServer.serverSide
Class BaseParameter
- java.lang.Object
-
- jetbrains.buildServer.serverSide.BaseParameter
-
- All Implemented Interfaces:
Comparable<Parameter>,Parameter
- Direct Known Subclasses:
MockParameter,SimpleParameter
public abstract class BaseParameter extends Object implements Parameter
Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 26.01.12 13:07
-
-
Field Summary
Fields Modifier and Type Field Description protected ControlDescriptionmyDescriptionprotected StringmyNameprotected StringmyValue
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseParameter(String name, String value, ControlDescription description)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(Parameter o)booleanequals(Object o)protected abstract StringgetCompareValue()ControlDescriptiongetControlDescription()StringgetName()StringgetValue()inthashCode()static booleanisConfigParameter(String parameterName)booleanisEnvironmentVariable()Returns true if this parameter is an environment variablestatic booleanisEnvironmentVariable(String parameterName)booleanisSystemProperty()Returns true if this parameter is a system propertystatic booleanisSystemProperty(String parameterName)StringtoString()
-
-
-
Field Detail
-
myName
protected final String myName
-
myValue
protected final String myValue
-
myDescription
protected final ControlDescription myDescription
-
-
Constructor Detail
-
BaseParameter
protected BaseParameter(@NotNull String name, @NotNull String value, @Nullable ControlDescription description)
-
-
Method Detail
-
isConfigParameter
public static boolean isConfigParameter(String parameterName)
-
isSystemProperty
public static boolean isSystemProperty(String parameterName)
-
isEnvironmentVariable
public static boolean isEnvironmentVariable(String parameterName)
-
getName
@NotNull public final String getName()
-
getValue
@NotNull public String getValue()
-
isSystemProperty
public final boolean isSystemProperty()
Description copied from interface:ParameterReturns true if this parameter is a system property- Specified by:
isSystemPropertyin interfaceParameter- Returns:
- see above
-
isEnvironmentVariable
public final boolean isEnvironmentVariable()
Description copied from interface:ParameterReturns true if this parameter is an environment variable- Specified by:
isEnvironmentVariablein interfaceParameter- Returns:
- see above
-
getControlDescription
@Nullable public final ControlDescription getControlDescription()
- Specified by:
getControlDescriptionin interfaceParameter- Returns:
- parameter description
-
getCompareValue
@NotNull protected abstract String getCompareValue()
- Returns:
- internal value used to check parameter equality
- Since:
- 7.0
-
compareTo
public final int compareTo(@NotNull Parameter o)- Specified by:
compareToin interfaceComparable<Parameter>
-
-