17 using System.ComponentModel;
19 using TraceLabSDK.Component.Config;
20 using TraceLabSDK.Types;
22 namespace TraceLab.Components.Library.Exporters.Artifacts
24 [Component(Name =
"Artifacts XML Exporter",
25 Description =
"Exports a TLArtifactsCollection to an XML file.",
28 ConfigurationType = typeof(ArtifactsSimpleExporterConfig))]
29 [IOSpec(IOSpecType.Input,
"Artifacts", typeof(TLArtifactsCollection))]
30 [Tag(
"Exporters.TLArtifactsCollection.To XML")]
39 Configuration = _config;
44 TLArtifactsCollection artifacts = (TLArtifactsCollection)Workspace.Load(
"Artifacts");
45 DevelopmentKit.IO.Artifacts.ExportXML(artifacts, _config.Path.Absolute, _config.CollectionId, _config.CollectionName, _config.CollectionVersion, _config.CollectionDescription);
51 [DisplayName(
"1. Collection Id")]
52 public string CollectionId {
get; set; }
54 [DisplayName(
"2. Collection Name")]
55 public string CollectionName {
get; set; }
57 [DisplayName(
"3. Collection Version")]
58 public string CollectionVersion {
get; set; }
60 [DisplayName(
"4. Collection Description")]
61 public string CollectionDescription {
get; set; }
63 [DisplayName(
"5. Output filepath")]
64 public FilePath Path {
get; set; }