Package eu.europa.ec.taxud.dac8.vm.utils
Class FileUtils
java.lang.Object
eu.europa.ec.taxud.dac8.vm.utils.FileUtils
The type File utils.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPropertiesToContext(eu.europa.ec.taxud.validation.ValidationContext validationContext, Properties properties) Add properties to context.static voidaddXpathsPropertiesInContext(eu.europa.ec.taxud.validation.ValidationContext context, Properties properties) Add xpaths properties in context.static voidloadAndCompile(eu.europa.ec.taxud.validation.ValidationContext context, InputStream xpathPropertiesInputStream, XPath xPath) Load and compile.
-
Method Details
-
addPropertiesToContext
public static void addPropertiesToContext(eu.europa.ec.taxud.validation.ValidationContext validationContext, Properties properties) Add properties to context.- Parameters:
validationContext- the validation contextproperties- the properties
-
addXpathsPropertiesInContext
public static void addXpathsPropertiesInContext(eu.europa.ec.taxud.validation.ValidationContext context, Properties properties) Add xpaths properties in context.- Parameters:
context- the contextproperties- the properties
-
loadAndCompile
public static void loadAndCompile(eu.europa.ec.taxud.validation.ValidationContext context, InputStream xpathPropertiesInputStream, XPath xPath) throws XPathExpressionException, IOException Load and compile.- Parameters:
context- the contextxpathPropertiesInputStream- the xpath properties input streamxPath- the x path- Throws:
XPathExpressionException- the x path expression exceptionIOException- the io exception
-