public class XMLConfigurationReader extends AConfigurationReader
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACCEPTANCE |
protected static String |
AS |
protected static String |
ENDPOINT |
protected static String |
ENGINE |
protected static String |
EXECUTION |
protected static String |
EXPECTED_SELECTIVITY |
protected static String |
FILE |
protected static String |
FUNCTION |
protected static String |
GRANULARITY |
protected static String |
GRAPH |
protected static String |
ID |
protected static String |
LABEL |
protected static String |
MAXOFFSET |
protected static String |
METRIC |
protected static String |
MINOFFSET |
protected static String |
MLALGORITHM |
protected static String |
NAME |
protected static String |
NAMESPACE |
protected static String |
OPTIMIZATION_TIME |
protected static String |
OPTIONAL_PROPERTY |
protected static String |
OUTPUT |
protected static String |
PAGESIZE |
protected static String |
PARAMETER |
protected static String |
PLANNER |
protected static String |
PREFIX |
protected static String |
PROPERTY |
protected static String |
RELATION |
protected static String |
RENAME |
protected static String |
RESTRICTION |
protected static String |
REVIEW |
protected static String |
REWRITER |
protected static String |
SOURCE |
protected static String |
TARGET |
protected static String |
THRESHOLD |
protected static String |
TRAINING |
protected static String |
TYPE |
protected static String |
VALUE |
protected static String |
VAR |
configuration, fileNameOrUri| Constructor and Description |
|---|
XMLConfigurationReader(String xmlFile)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet(Configuration configuration) |
static String |
getText(Node node)
Returns the content of a node
|
void |
modifyMetricExpression(LinkSpecification spec) |
void |
processKBDescription(String kb,
NodeList children) |
static void |
processOptionalProperty(KBInfo kbinfo,
String property) |
static void |
processProperty(KBInfo kbinfo,
String property) |
Configuration |
read()
Returns a filled out configuration object if the input complies to the
LIMES DTD and contains everything needed.
|
static void |
setComplexFunction(KBInfo info,
String function) |
Configuration |
validateAndRead(InputStream input,
String filePath)
Returns true if the input complies to the LIMES DTD and contains
everything needed.
|
getConfiguration, setConfigurationprotected static final String FILE
protected static final String GRANULARITY
protected static final String TARGET
protected static final String LABEL
protected static final String RELATION
protected static final String THRESHOLD
protected static final String REVIEW
protected static final String ACCEPTANCE
protected static final String EXECUTION
protected static final String OUTPUT
protected static final String TYPE
protected static final String VAR
protected static final String ID
protected static final String SOURCE
protected static final String PREFIX
protected static final String PAGESIZE
protected static final String ENDPOINT
protected static final String GRAPH
protected static final String RESTRICTION
protected static final String PROPERTY
protected static final String OPTIONAL_PROPERTY
protected static final String AS
protected static final String RENAME
protected static final String METRIC
protected static final String NAMESPACE
protected static final String REWRITER
protected static final String PLANNER
protected static final String ENGINE
protected static final String MLALGORITHM
protected static final String NAME
protected static final String TRAINING
protected static final String VALUE
protected static final String PARAMETER
protected static final String MAXOFFSET
protected static final String MINOFFSET
protected static final String FUNCTION
protected static final String OPTIMIZATION_TIME
protected static final String EXPECTED_SELECTIVITY
public XMLConfigurationReader(String xmlFile)
xmlFile - The input XML filepublic static String getText(Node node)
node - NODE tag with textpublic Configuration read()
read in class AConfigurationReaderpublic void afterPropertiesSet(Configuration configuration)
public Configuration validateAndRead(InputStream input, String filePath)
input - The input XML file as StreamfilePath - path of the XML filepublic void modifyMetricExpression(LinkSpecification spec)
Copyright © 2020. All rights reserved.