A Conversion instance encapsulates the knowledge of how to transform an XML document from one Release of a Specification to another.
It is expected that most conversions will be between different releases of the same specification but the code allows for the discovery of inter-specification conversions.
Example #1
0
 /// <summary>
 /// Adds the indicated <see cref="Conversion"/> to the set of conversions
 /// that take this <b>Release</b> as the source format.
 /// </summary>
 /// <param name="conversion">The <see cref="Conversion"/> to be added.</param>
 protected internal void AddSourceConversion(Conversion conversion)
 {
     sourceConversions.Add (conversion);
 }
Example #2
0
 /// <summary>
 /// Adds the indicated <see cref="Conversion"/> to the set of conversions
 /// that take this <b>Release</b> as the target format.
 /// </summary>
 /// <param name="conversion">The <see cref="Conversion"/> to be added.</param>
 protected internal void AddTargetConversion(Conversion conversion)
 {
     targetConversions.Add (conversion);
 }
 /// <summary>
 /// Constructs a <b>IndirectConversion</b> instance that connects
 /// two other <see cref="Conversion"/> instances.
 /// </summary>
 /// <param name="first">The first <see cref="Conversion"/> to apply.</param>
 /// <param name="second">The second <see cref="Conversion"/> to apply.</param>
 public IndirectConversion(Conversion first, Conversion second)
 {
     this.first  = first;
     this.second = second;
 }