|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.core.options.ConfigOption<Set<String>>
org.dllearner.core.options.StringSetConfigOption
public class StringSetConfigOption
A set of strings.
| Constructor Summary | |
|---|---|
StringSetConfigOption(String name,
String description)
|
|
StringSetConfigOption(String name,
String description,
Set<String> defaultValue)
|
|
StringSetConfigOption(String name,
String description,
Set<String> 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(Set<String> value)
Get a formatted value to put into configuration file. |
String |
getValueTypeAsJavaString()
|
boolean |
isValidValue(Set<String> 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 StringSetConfigOption(String name,
String description)
public StringSetConfigOption(String name,
String description,
Set<String> defaultValue)
public StringSetConfigOption(String name,
String description,
Set<String> defaultValue,
boolean mandatory,
boolean requiresInit)
| Method Detail |
|---|
public String getValueTypeAsJavaString()
getValueTypeAsJavaString in class ConfigOption<Set<String>>public SortedSet<String> getJavaImports()
ConfigOption
getJavaImports in class ConfigOption<Set<String>>public boolean isValidValue(Set<String> value)
ConfigOption
isValidValue in class ConfigOption<Set<String>>value - A value for the option.
public boolean checkType(Object object)
ConfigOption
checkType in class ConfigOption<Set<String>>object - The object to check.
public String getValueFormatting(Set<String> value)
ConfigOption
getValueFormatting in class ConfigOption<Set<String>>value - Option value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||