mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
1. Beta-Version mit Korrekturanmerkungen
This commit is contained in:
@@ -4,6 +4,7 @@ using HaWeb.XMLParser;
|
||||
public class XMLTestService : IXMLTestService {
|
||||
private IXMLService _XMLService;
|
||||
public Dictionary<string, INodeRule>? Ruleset { get; private set; }
|
||||
public Dictionary<string, ICollectionRule>? CollectionRuleset { get; private set; }
|
||||
public XMLTestService(IXMLService xmlService) {
|
||||
_XMLService = xmlService;
|
||||
|
||||
@@ -13,6 +14,13 @@ public class XMLTestService : IXMLTestService {
|
||||
var instance = (INodeRule)Activator.CreateInstance(x)!;
|
||||
if (instance != null) this.Ruleset.Add(instance.Name, instance);
|
||||
});
|
||||
|
||||
var collectionruleset = _GetAllTypesThatImplementInterface<ICollectionRule>().ToList();
|
||||
collectionruleset.ForEach( x => {
|
||||
if (this.CollectionRuleset == null) this.CollectionRuleset = new Dictionary<string, ICollectionRule>();
|
||||
var instance = (ICollectionRule)Activator.CreateInstance(x)!;
|
||||
if (instance != null) this.CollectionRuleset.Add(instance.Name, instance);
|
||||
});
|
||||
}
|
||||
|
||||
public void Test() {
|
||||
|
||||
Reference in New Issue
Block a user