com.itelg.spring.xom.unmarshaller.parser.ParserHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-xom-unmarshaller Show documentation
Show all versions of spring-xom-unmarshaller Show documentation
Spring XML Unmarshalling with XOM
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