@Equality public class Setting extends java.lang.Object
The equality constraint is required to aid factorisation.
Constructor and Description |
---|
Setting(java.lang.String key,
java.lang.String strValue,
java.lang.String strDflt)
Constructs a setting.
|
Modifier and Type | Method and Description |
---|---|
Setting |
appendSuffix(java.lang.String suffix)
Creates a new setting object which resembles this one,
but whose parameter name is modified by addition of a given
trailing string.
|
boolean |
equals(java.lang.Object o) |
Credibility |
getCredibility()
Returns the credibility of this setting.
|
java.lang.String |
getKey()
Returns this setting's parameter name.
|
java.lang.Object |
getObjectValue()
Returns the typed value for this setting, if known.
|
java.lang.String |
getStringDefault()
Returns the string representation of the default value for
this setting.
|
java.lang.String |
getStringValue()
Returns the string representation of this setting's value.
|
int |
hashCode() |
boolean |
isDefaultValue()
Indicates whether this setting's value is the same as the
default value.
|
Setting |
resetDefault(java.lang.String strDflt)
Creates a new setting object which resembles this one,
except it has a different default value.
|
void |
setCredibility(Credibility cred)
Sets the credibility of this setting.
|
void |
setObjectValue(java.lang.Object objValue)
Sets the typed value associated with this setting.
|
java.lang.String |
toString() |
public Setting(java.lang.String key, java.lang.String strValue, java.lang.String strDflt)
key
- stilts parameter namestrValue
- string representation of stilts parameter value;
corresponds to actual valuestrDflt
- string representation of stilts parameter defaultpublic java.lang.String getKey()
public java.lang.String getStringValue()
public java.lang.String getStringDefault()
public boolean isDefaultValue()
public void setObjectValue(java.lang.Object objValue)
objValue
- typed value for settingpublic java.lang.Object getObjectValue()
public void setCredibility(Credibility cred)
Credibility.YES
.cred
- credibility levelpublic Credibility getCredibility()
Credibility.YES
.public Setting appendSuffix(java.lang.String suffix)
suffix
- string to append to parameter namepublic Setting resetDefault(java.lang.String strDflt)
strDflt
- new default stringpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.