示例#1
0
 /// <summary>
 /// Loads the key definition data
 /// </summary>
 private void LoadKeyDefs(IEnumerable <string> xmlDefs)
 {
     foreach (string keyDefXml in xmlDefs)
     {
         XmlKeyLoader loader  = new XmlKeyLoader(DtdLoader, _defClassFactory);
         var          loadKey = loader.LoadKey(keyDefXml, _propDefCol);
         if (loadKey != null)
         {
             _keyDefCol.Add(loadKey);
         }
     }
 }
示例#2
0
 protected void Initialise() {
     _xmlKeyLoader = new XmlKeyLoader(new DtdLoader(), GetDefClassFactory());
     _propDefCol = GetDefClassFactory().CreatePropDefCol();
     _propDefCol.Add(GetDefClassFactory().CreatePropDef("TestProp", "System", "String", PropReadWriteRule.ReadWrite, "TestProp", null, false, false, 255, null, null, false));
 }
示例#3
0
 /// <summary>
 /// Loads the key definition data
 /// </summary>
 private void LoadKeyDefs(IEnumerable<string> xmlDefs)
 {
     
     foreach (string keyDefXml in xmlDefs)
     {
         XmlKeyLoader loader = new XmlKeyLoader(DtdLoader, _defClassFactory);
         var loadKey = loader.LoadKey(keyDefXml, _propDefCol);
         if(loadKey != null) _keyDefCol.Add(loadKey);
     }
 }