|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.options.ConfigOption<URL>
org.dllearner.core.options.URLConfigOption
public class URLConfigOption
Option which has an URL as value.
| Constructor Summary | |
|---|---|
URLConfigOption(String name,
String description)
|
|
URLConfigOption(String name,
String description,
URL defaultValue)
|
|
URLConfigOption(String name,
String description,
URL 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(URL value)
Get a formatted value to put into configuration file. |
String |
getValueTypeAsJavaString()
|
boolean |
isValidValue(URL 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. |
boolean |
refersToFile()
Returns whether the URI can refer to a file or not, e.g. the URL of an OWL knowledge source does refer to a file whereas the URL of a SPARQL endpoint cannot refer to a file. |
boolean |
refersToOWLClass()
Returns whether the URI can refer to a class in a loaded ontology. |
void |
setRefersToFile(boolean refersToFile)
|
void |
setRefersToOWLClass(boolean refersToOWLClass)
|
| 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 URLConfigOption(String name,
String description)
public URLConfigOption(String name,
String description,
URL defaultValue)
public URLConfigOption(String name,
String description,
URL defaultValue,
boolean mandatory,
boolean requiresInit)
| Method Detail |
|---|
public boolean refersToFile()
public void setRefersToFile(boolean refersToFile)
refersToFile - Set whether this option can refer to a file.public boolean refersToOWLClass()
public void setRefersToOWLClass(boolean refersToOWLClass)
refersToFile - Set whether this option refers to an OWL class in the
loaded ontology.public boolean checkType(Object object)
ConfigOption
checkType in class ConfigOption<URL>object - The object to check.
public String getValueFormatting(URL value)
ConfigOption
getValueFormatting in class ConfigOption<URL>value - Option value.
public String getValueTypeAsJavaString()
getValueTypeAsJavaString in class ConfigOption<URL>public boolean isValidValue(URL value)
ConfigOption
isValidValue in class ConfigOption<URL>value - A value for the option.
public SortedSet<String> getJavaImports()
ConfigOption
getJavaImports in class ConfigOption<URL>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||