|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.options.ConfigOption<List<StringTuple>>
org.dllearner.core.options.StringTupleListConfigOption
public class StringTupleListConfigOption
A list if string tuples, for instance for specifying several parameters or replacement rules.
| Constructor Summary | |
|---|---|
StringTupleListConfigOption(String name,
String description)
|
|
StringTupleListConfigOption(String name,
String description,
List<StringTuple> defaultValue)
|
|
StringTupleListConfigOption(String name,
String description,
List<StringTuple> defaultValue,
boolean mandatory,
boolean requiresInit)
|
|
| Method Summary | |
|---|---|
boolean |
checkType(Object object)
Checks whether the object has the correct type to be used as a value for this option (this method is necessary, because generic information is erased at runtime in Java). |
SortedSet<String> |
getJavaImports()
TODO Method should be removed and a mapping table in ConfigJavaGenerator created instead. |
String |
getValueFormatting(List<StringTuple> value)
Get a formatted value to put into configuration file. |
String |
getValueTypeAsJavaString()
|
boolean |
isValidValue(List<StringTuple> value)
Checks whether the value is valid, e.g. passing 1985 as integer value for an option, which requires values between 0 and 1, is not valid. |
| Methods inherited from class org.dllearner.core.options.ConfigOption |
|---|
getAllowedValuesDescription, getDefaultValue, getDefaultValueInJava, getDescription, getJavaDocString, getName, isMandatory, requiresInit, setDefaultValue, setMandatory, setRequiresInit, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringTupleListConfigOption(String name,
String description,
List<StringTuple> defaultValue,
boolean mandatory,
boolean requiresInit)
public StringTupleListConfigOption(String name,
String description,
List<StringTuple> defaultValue)
public StringTupleListConfigOption(String name,
String description)
| Method Detail |
|---|
public String getValueTypeAsJavaString()
getValueTypeAsJavaString in class ConfigOption<List<StringTuple>>public SortedSet<String> getJavaImports()
ConfigOption
getJavaImports in class ConfigOption<List<StringTuple>>public boolean checkType(Object object)
ConfigOption
checkType in class ConfigOption<List<StringTuple>>object - The object to check.
public boolean isValidValue(List<StringTuple> value)
ConfigOption
isValidValue in class ConfigOption<List<StringTuple>>value - A value for the option.
public String getValueFormatting(List<StringTuple> value)
ConfigOption
getValueFormatting in class ConfigOption<List<StringTuple>>value - Option value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||