@@ -26,46 +26,33 @@ namespace SysML2.NET.Serializer.Xmi
2626 using System . Threading . Tasks ;
2727
2828 using SysML2 . NET . Common ;
29+ using SysML2 . NET . Core . POCO . Root . Namespaces ;
2930
3031 /// <summary>
31- /// The purpose of the <see cref="ISerializer"/> is to write an <see cref="IData"/> and <see cref="IEnumerable{IData} "/>
32+ /// The purpose of the <see cref="ISerializer"/> is to write an <see cref="INamespace "/>
3233 /// as XMI to a <see cref="Stream"/>
3334 /// </summary>
3435 public interface ISerializer
3536 {
3637 /// <summary>
37- /// Serialize an <see cref="IEnumerable{IData} "/> as XMI to a target <see cref="Stream"/>
38+ /// Serialize an <see cref="INamespace "/> as XMI to a target <see cref="Stream"/>
3839 /// </summary>
39- /// <param name="dataItems ">
40- /// The <see cref="IEnumerable{IData} "/> that shall be serialized
40+ /// <param name="namespace ">
41+ /// The <see cref="INamespace "/> that shall be serialized
4142 /// </param>
4243 /// <param name="includeDerivedProperties">
4344 /// Asserts that derived properties should also be part of the serialization
4445 /// </param>
4546 /// <param name="stream">
4647 /// The target <see cref="Stream"/>
4748 /// </param>
48- void Serialize ( IEnumerable < IData > dataItems , bool includeDerivedProperties , Stream stream ) ;
49+ void Serialize ( INamespace @namespace , bool includeDerivedProperties , Stream stream ) ;
4950
5051 /// <summary>
51- /// Serialize an <see cref="IData "/> as XMI to a target <see cref="Stream"/>
52+ /// Asynchronously serialize an <see cref="INamespace "/> as XMI to a target <see cref="Stream"/>
5253 /// </summary>
53- /// <param name="dataItem">
54- /// The <see cref="IData"/> that shall be serialized
55- /// </param>
56- /// <param name="includeDerivedProperties">
57- /// Asserts that derived properties should also be part of the serialization
58- /// </param>
59- /// <param name="stream">
60- /// The target <see cref="Stream"/>
61- /// </param>
62- void Serialize ( IData dataItem , bool includeDerivedProperties , Stream stream ) ;
63-
64- /// <summary>
65- /// Asynchronously serialize an <see cref="IEnumerable{IData}"/> as XMI to a target <see cref="Stream"/>
66- /// </summary>
67- /// <param name="dataItems">
68- /// The <see cref="IEnumerable{IData}"/> that shall be serialized
54+ /// <param name="namespace">
55+ /// The <see cref="INamespace"/> that shall be serialized
6956 /// </param>
7057 /// <param name="stream">
7158 /// The target <see cref="Stream"/>
@@ -76,23 +63,6 @@ public interface ISerializer
7663 /// <param name="cancellationToken">
7764 /// The <see cref="CancellationToken"/> used to cancel the operation
7865 /// </param>
79- Task SerializeAsync ( IEnumerable < IData > dataItems , bool includeDerivedProperties , Stream stream , CancellationToken cancellationToken ) ;
80-
81- /// <summary>
82- /// Asynchronously serialize an <see cref="IData"/> as XMI to a target <see cref="Stream"/>
83- /// </summary>
84- /// <param name="dataItem">
85- /// The <see cref="IData"/> that shall be serialized
86- /// </param>
87- /// <param name="includeDerivedProperties">
88- /// Asserts that derived properties should also be part of the serialization
89- /// </param>
90- /// <param name="stream">
91- /// The target <see cref="Stream"/>
92- /// </param>
93- /// <param name="cancellationToken">
94- /// The <see cref="CancellationToken"/> used to cancel the operation
95- /// </param>
96- Task SerializeAsync ( IData dataItem , bool includeDerivedProperties , Stream stream , CancellationToken cancellationToken ) ;
66+ Task SerializeAsync ( INamespace @namespace , bool includeDerivedProperties , Stream stream , CancellationToken cancellationToken ) ;
9767 }
9868}
0 commit comments