public class SemanticExtractorBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MOTPipeInterface |
pipe |
Constructor and Description |
---|
SemanticExtractorBuilder(MOTPipeInterface p)
Initialize a new SemanticExtractorBuilder with a MOT pipe
|
Modifier and Type | Method and Description |
---|---|
protected Features |
buildFeatures(SemanticExtractorConfig config) |
protected SemanticInterpreterConfig |
buildRules(SemanticExtractorConfig config) |
boolean |
compileFromRAM(SemanticExtractorConfig config,
java.lang.String binPath)
Compile a set of rules stored in RAM
|
boolean |
compileFromSource(java.lang.String srcPath,
java.lang.String binPath)
Compile a set of rules from a source file
|
protected static javax.xml.bind.JAXBContext |
getContext() |
protected void |
handleIncludes(SemanticExtractorConfig config,
java.util.List<Include> includes) |
protected void |
handleIncludes(SemanticExtractorConfig config,
java.util.List<Include> includes,
java.util.HashSet<java.lang.String> dejavu) |
protected MOTPipeInterface pipe
public SemanticExtractorBuilder(MOTPipeInterface p)
p
- the pipe used during rule compilationprotected static javax.xml.bind.JAXBContext getContext() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public boolean compileFromSource(java.lang.String srcPath, java.lang.String binPath) throws java.lang.Exception
srcPath
- path to the source file containing the XML representation of
rulesbinPath
- path to the target directory for binariesjava.lang.Exception
public boolean compileFromRAM(SemanticExtractorConfig config, java.lang.String binPath) throws java.lang.Exception
config
- the object containing the rule definitionsbinPath
- path to the target directory for binariesjava.lang.Exception
protected Features buildFeatures(SemanticExtractorConfig config) throws java.lang.Exception
java.lang.Exception
protected SemanticInterpreterConfig buildRules(SemanticExtractorConfig config)
protected void handleIncludes(SemanticExtractorConfig config, java.util.List<Include> includes) throws com.exalead.xml.InvalidXMLException, java.io.FileNotFoundException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.bind.JAXBException
com.exalead.xml.InvalidXMLException
java.io.FileNotFoundException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.bind.JAXBException
protected void handleIncludes(SemanticExtractorConfig config, java.util.List<Include> includes, java.util.HashSet<java.lang.String> dejavu) throws com.exalead.xml.InvalidXMLException, java.io.FileNotFoundException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, javax.xml.bind.JAXBException
com.exalead.xml.InvalidXMLException
java.io.FileNotFoundException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.bind.JAXBException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.