org.aludratest.service.edifactfile
Interface EdifactFileCondition

All Superinterfaces:
Action, Condition
All Known Implementing Classes:
EdifattoFileAction

public interface EdifactFileCondition
extends Condition

Performs queries on EDIFACT or X12 interchanges and analyzes their differences.

Author:
Volker Bergmann

Method Summary
 org.databene.edifatto.compare.AggregateDiff diff(String elementType, String elementName, org.databene.edifatto.model.Interchange expected, org.databene.edifatto.model.Interchange actual, org.databene.edifatto.ComparisonSettings settings, org.databene.edifatto.compare.ComparisonModel<Element> model)
          Finds out the differences between two EDIFACT or X12 interchanges, ignoring elements that match the XPath exclusion paths.
 boolean exists(String elementType, String elementName, String filePath)
          Tells if a file exists at the given path.
 Object queryXML(String elementType, String elementName, org.databene.edifatto.model.Interchange interchange, String xpathQuery, QName returnType)
          Creates an XML representation of the interchange and performs an XPath query on it.
 
Methods inherited from interface org.aludratest.service.Action
createAttachments, createDebugAttachments, setSystemConnector
 

Method Detail

exists

boolean exists(String elementType,
               String elementName,
               String filePath)
Tells if a file exists at the given path.

Parameters:
elementType -
elementName -
filePath - the file path to query
Returns:
true if a file with the provided path exists, otherwise false

queryXML

Object queryXML(String elementType,
                String elementName,
                org.databene.edifatto.model.Interchange interchange,
                String xpathQuery,
                QName returnType)
Creates an XML representation of the interchange and performs an XPath query on it.

Parameters:
elementType -
elementName -
interchange - the interchange to query
xpathQuery - the XPath query to perform
returnType - determines the type of the returned object: XPathConstants.STRING for a single String, XPathConstants.NODE for a single Element, XPathConstants.NODESET for a NodeList
Returns:
the query result

diff

org.databene.edifatto.compare.AggregateDiff diff(String elementType,
                                                 String elementName,
                                                 org.databene.edifatto.model.Interchange expected,
                                                 org.databene.edifatto.model.Interchange actual,
                                                 org.databene.edifatto.ComparisonSettings settings,
                                                 org.databene.edifatto.compare.ComparisonModel<Element> model)
Finds out the differences between two EDIFACT or X12 interchanges, ignoring elements that match the XPath exclusion paths.

Parameters:
elementType -
elementName -
expected - the expected interchange data
actual - the actual interface data
settings - the ComparisonSettings to apply
model -
Returns:
an AggregateDiff that represent the differences between the interchanges


Copyright © 2015 aludratest.org. All rights reserved.