All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itelg.spring.xom.unmarshaller.parser.ParserHolder Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.itelg.spring.xom.unmarshaller.parser;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ParserHolder
{
    private Parser parser;
    private Class returnType;
    private Set supportedRootTags = new HashSet<>();
    private String xpathExpression;
    private String xpathExpressionValue;

    public Parser getParser()
    {
        return parser;
    }

    public void setParser(Parser parser)
    {
        this.parser = parser;
    }

    public Class getReturnType()
    {
        return returnType;
    }

    public void setReturnType(Class returnType)
    {
        this.returnType = returnType;
    }

    public List getSupportedRootTags()
    {
        return new ArrayList<>(supportedRootTags);
    }

    public void addSupportedRootTag(String rootTag)
    {
        supportedRootTags.add(rootTag);
    }

    public String getXPathExpression()
    {
        return xpathExpression;
    }

    public void setXPathExpression(String xpathExpression)
    {
        this.xpathExpression = xpathExpression;
    }

    public String getXpathExpressionValue()
    {
        return xpathExpressionValue;
    }

    public void setXpathExpressionValue(String xpathExpressionValue)
    {
        this.xpathExpressionValue = xpathExpressionValue;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy