public abstract class BaseParameter extends java.lang.Object implements Parameter
| Modifier and Type | Field and Description |
|---|---|
protected ControlDescription |
myDescription |
protected java.lang.String |
myName |
protected java.lang.String |
myValue |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseParameter(java.lang.String name,
java.lang.String value,
ControlDescription description) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Parameter o) |
boolean |
equals(java.lang.Object o) |
protected abstract java.lang.String |
getCompareValue() |
ControlDescription |
getControlDescription() |
java.lang.String |
getName() |
java.lang.String |
getValue() |
int |
hashCode() |
static boolean |
isConfigParameter(java.lang.String parameterName) |
boolean |
isEnvironmentVariable()
Returns true if this parameter is an environment variable
|
static boolean |
isEnvironmentVariable(java.lang.String parameterName) |
boolean |
isSystemProperty()
Returns true if this parameter is a system property
|
static boolean |
isSystemProperty(java.lang.String parameterName) |
java.lang.String |
toString() |
protected final java.lang.String myName
protected final java.lang.String myValue
protected final ControlDescription myDescription
protected BaseParameter(@NotNull
java.lang.String name,
@NotNull
java.lang.String value,
@Nullable
ControlDescription description)
public static boolean isConfigParameter(java.lang.String parameterName)
public static boolean isSystemProperty(java.lang.String parameterName)
public static boolean isEnvironmentVariable(java.lang.String parameterName)
@NotNull public final java.lang.String getName()
@NotNull public java.lang.String getValue()
public final boolean isSystemProperty()
ParameterisSystemProperty in interface Parameterpublic final boolean isEnvironmentVariable()
ParameterisEnvironmentVariable in interface Parameter@Nullable public final ControlDescription getControlDescription()
getControlDescription in interface Parameter@NotNull protected abstract java.lang.String getCompareValue()
public final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final int compareTo(@NotNull
Parameter o)
compareTo in interface java.lang.Comparable<Parameter>public java.lang.String toString()
toString in class java.lang.Object