| java.lang.Object com.metaboss.sdlctools.applications.systemtester.SpecimenComparator
SpecimenComparator | public class SpecimenComparator (Code) | | Utilities used to ease some org.w3c.dom related programming tasks
|
Method Summary | |
public static String[] | compareAgainstSpecimen(Document pSpecimenDocument, Document pSampleDocument, boolean pAbortOnFirstError, boolean pTestForRegularExpressions) Ensures that each and every element present in specimen document is present in
the sample document with all attributes.
Parameters: pSpecimenDocument - - the document we want to test against Parameters: pSampleDocument - - the document being tested Parameters: pAbortOnFirstError - - if this flag is set to true - the first comparison error will stop comparison and this method willreturn with only first error text populated. | public static String[] | compareAgainstSpecimen(Node pSpecimenNode, Node pSampleNode, boolean pAbortOnFirstError, boolean pTestForRegularExpressions) Ensures that content of speciment element matches sample element. |
compareAgainstSpecimen | public static String[] compareAgainstSpecimen(Document pSpecimenDocument, Document pSampleDocument, boolean pAbortOnFirstError, boolean pTestForRegularExpressions)(Code) | | Ensures that each and every element present in specimen document is present in
the sample document with all attributes.
Parameters: pSpecimenDocument - - the document we want to test against Parameters: pSampleDocument - - the document being tested Parameters: pAbortOnFirstError - - if this flag is set to true - the first comparison error will stop comparison and this method willreturn with only first error text populated. If this flag is false - comparison will run till the very end and allcomparison errors will be reported Parameters: pTestForRegularExpressions - - if equals true - this comparison will atempt to use values of attributes and text fields in the specimen as regular expressions to match sample value with. This is only done after straight comparison fails. null if comparison completed successfully or array of strings with error messages if comparison completed with error. Note that this array may not contain full list of errors if pAbortOnFirstError parameter has beenset to true |
compareAgainstSpecimen | public static String[] compareAgainstSpecimen(Node pSpecimenNode, Node pSampleNode, boolean pAbortOnFirstError, boolean pTestForRegularExpressions)(Code) | | Ensures that content of speciment element matches sample element. This includes
element tag name, attributes and sub elements.
Parameters: pSpecimenNode - - the element we want to test against Parameters: pSampleNode - - the element being tested Parameters: pAbortOnFirstError - - if this flag is set to true - the first comparison error will stop comparison and this method willreturn with only first error text populated. If this flag is false - comparison will run till the very end and allcomparison errors will be reported Parameters: pTestForRegularExpressions - - if equals true - this comparison will atempt to use values of attributes and text fields in the specimen as regular expressions to match sample value with. This is only done after straight comparison fails. null if comparison completed successfully or array of strings with error messages if comparison completed with error. Note that this array may not contain full list of errors if pAbortOnFirstError parameter has beenset to true |
|
|