-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8bcf0d
commit 7a7988a
Showing
8 changed files
with
686 additions
and
305 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using MTIP.Constants; | ||
using System.Xml; | ||
|
||
namespace MTIP.Translations | ||
{ | ||
internal static class MTIPCommon | ||
{ | ||
//DS: Not the way I would do this. | ||
|
||
public static RelationshipConstants relationshipConstants = new RelationshipConstants(); | ||
public static HUDSConstants hudsConstants =new HUDSConstants(); | ||
|
||
internal static XmlElement CreateIdElement(XmlDocument xmlDocument, string eaElementGuid) | ||
{ | ||
|
||
XmlElement idElement = xmlDocument.CreateElement(AttributeConstants.ID); | ||
idElement.SetAttribute(hudsConstants.dtype, hudsConstants.dict); | ||
|
||
//unified ID shall be the new Vendor independed ID field for cross tool roundtrips. | ||
XmlElement unifiedIdElement = xmlDocument.CreateElement(hudsConstants.unified); | ||
unifiedIdElement.SetAttribute(hudsConstants.dtype, hudsConstants.str); | ||
unifiedIdElement.InnerText = eaElementGuid.ToString(); | ||
|
||
idElement.AppendChild(unifiedIdElement); | ||
|
||
//unified ID shall be the new Vendor specific ID field for cross tool roundtrips, best case this is not required going forward | ||
XmlElement eaIdElement = xmlDocument.CreateElement(hudsConstants.ea); | ||
eaIdElement.SetAttribute(hudsConstants.dtype, hudsConstants.str); | ||
eaIdElement.InnerText = eaElementGuid.ToString(); | ||
|
||
idElement.AppendChild(eaIdElement); | ||
|
||
return idElement; | ||
} | ||
} | ||
} |
Oops, something went wrong.