Example #1
0
 public ImmutableModel ReadModelFromFile(string xmiFilePath, MofXmiReadOptions options = null)
 {
     if (xmiFilePath == null)
     {
         throw new ArgumentNullException(nameof(xmiFilePath));
     }
     return(_xmiSerializer.ReadModelFromFile(xmiFilePath, options ?? new MofXmiReadOptions()));
 }
Example #2
0
 public ImmutableModel ReadModel(string xmiCode, MofXmiReadOptions options = null)
 {
     if (xmiCode == null)
     {
         throw new ArgumentNullException(nameof(xmiCode));
     }
     return(_xmiSerializer.ReadModel(xmiCode, options ?? new MofXmiReadOptions()));
 }
Example #3
0
 public ImmutableModelGroup ReadModelGroupFromFile(string xmiFilePath, MofXmiReadOptions options = null)
 {
     return(this.ReadModelFromFile(xmiFilePath, options).ModelGroup);
 }
Example #4
0
 public ImmutableModelGroup ReadModelGroup(string xmiCode, MofXmiReadOptions options = null)
 {
     return(this.ReadModel(xmiCode, options).ModelGroup);
 }