/*
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

package net.sourceforge.pmd.lang.xml;

import net.sourceforge.pmd.lang.ast.test.BaseParsingHelper;
import net.sourceforge.pmd.lang.pom.PomLanguageModule;
import net.sourceforge.pmd.lang.wsdl.WsdlLanguageModule;
import net.sourceforge.pmd.lang.xml.ast.internal.XmlParserImpl.RootXmlNode;

/**
 * @author Clément Fournier
 */
public final class XmlParsingHelper extends BaseParsingHelper<XmlParsingHelper, RootXmlNode> {

    public static final XmlParsingHelper XML = new XmlParsingHelper(XmlLanguageModule.NAME, Params.getDefault());
    public static final XmlParsingHelper WSDL = new XmlParsingHelper(WsdlLanguageModule.NAME, Params.getDefault());
    public static final XmlParsingHelper POM = new XmlParsingHelper(PomLanguageModule.NAME, Params.getDefault());


    private XmlParsingHelper(String langName, Params params) {
        super(langName, RootXmlNode.class, params);
    }

    @Override
    protected XmlParsingHelper clone(Params params) {
        return new XmlParsingHelper(this.getLangName(), params);
    }
}
