Search in sources :

Example 1 with ParserConfig

use of org.walkmod.conf.entities.ParserConfig in project walkmod-core by walkmod.

the class XMLConfigurationProvider method loadParserConfig.

public void loadParserConfig(Element element, WalkerConfig wc) {
    final String nodeName = element.getNodeName();
    if ("parser".equals(nodeName)) {
        ParserConfig pc = new ParserConfigImpl();
        if ("".equals(element.getAttribute("type"))) {
            pc.setType(null);
        } else {
            pc.setType(element.getAttribute("type"));
        }
        pc.setParameters(getParams(element));
    }
}
Also used : ParserConfigImpl(org.walkmod.conf.entities.impl.ParserConfigImpl) ParserConfig(org.walkmod.conf.entities.ParserConfig)

Aggregations

ParserConfig (org.walkmod.conf.entities.ParserConfig)1 ParserConfigImpl (org.walkmod.conf.entities.impl.ParserConfigImpl)1