C# Class MohawkCollege.EHR.Util.XsdDiff.DiffBuilder

Build Diff trees
Show file Open project: MohawkMEDIC/schematool

Public Methods

Method Description
BuildTree ( XmlSchemaSet schemaA, XmlSchemaSet schemaB ) : MohawkCollege.EHR.Util.XsdDiff.DiffTree

Build a diff tree for the two schemas

BuildTree ( XmlSchemaObject obj ) : IDiffNode

Build a tree of only one schema

Private Methods

Method Description
CompareNodes ( List haystack, IDiffNode needle, IDiffNode parent ) : void
CompareNodes ( List haystack, List needles, IDiffNode parent ) : void

Compare a list of needles to a the haystack

CopyChildNodes ( XmlSchemaChoice choice, IDiffNode parent, Stack typeStack ) : void

Copy child nodes for a choice

CopyChildNodes ( XmlSchemaComplexType type, IDiffNode parent, Stack typeStack, bool quickSearch ) : void

Process a diff node of xmlschemaelement

CopyChildNodes ( XmlSchemaElement element, IDiffNode parent, Stack typeStack ) : void

Copy element data

CopyChildNodes ( XmlSchemaSequence sequence, IDiffNode parent, Stack typeStack ) : void
FindProbableCandidate ( IEnumerable haystackNeedleChoice, IDiffNode needle ) : DiffNode

Find a probable candidate for match

SwapContent ( IDiffNode node ) : void

Swap the content

Method Details

BuildTree() public method

Build a diff tree for the two schemas
public BuildTree ( XmlSchemaSet schemaA, XmlSchemaSet schemaB ) : MohawkCollege.EHR.Util.XsdDiff.DiffTree
schemaA XmlSchemaSet
schemaB XmlSchemaSet
return MohawkCollege.EHR.Util.XsdDiff.DiffTree

BuildTree() public method

Build a tree of only one schema
public BuildTree ( XmlSchemaObject obj ) : IDiffNode
obj XmlSchemaObject
return IDiffNode