Last change
on this file since 17280 was
17280,
checked in by dpiringe, 5 years ago
|
#3026
- renamed CustomWriter to CustomJsonWriter and extracted it into a separate file
- removed property ParameterizedItems from Component
- added helper methods for path generation in Component
- reverted the single parameter array idea back to the FreeParameters and StaticParameters idea
- now there hidden parameters are also handled
|
File size:
930 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 | using HeuristicLab.Core;
|
---|
7 | using Newtonsoft.Json.Linq;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.Manufacture {
|
---|
10 | public interface ITypeTransformer {
|
---|
11 | /// <summary>
|
---|
12 | /// Extracts all infos out of an IItem to create a Component.
|
---|
13 | /// (For template generation.)
|
---|
14 | /// </summary>
|
---|
15 | /// <param name="value">The IItem to extract infos.</param>
|
---|
16 | /// <returns>Component with infos to reinitialise the IItem.</returns>
|
---|
17 | Component Extract(IItem value);
|
---|
18 |
|
---|
19 | /// <summary>
|
---|
20 | /// Injects the saved infos from the Component into the IItem.
|
---|
21 | /// (Sets the necessary values.)
|
---|
22 | /// </summary>
|
---|
23 | /// <param name="item">The IItem which get the data injected.</param>
|
---|
24 | /// <param name="data">The Component with the saved values.</param>
|
---|
25 | void Inject(IItem item, Component data);
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.