| Quintiq file version 2.0 | 
| #parent: #root | 
| Method GetDMSetTypesFromNVT (NamedValueTree nvt_i) as owning LibDMF_SetTypes | 
| { | 
|   Description: 'Get the instances of Set Types from the NVT.' | 
|   TextBody: | 
|   [* | 
|     objects    := construct( LibDMF_SetTypes ); | 
|     objectType := typeof( LibDMF_SetType ); | 
|     batchBody  := LibInt_NvtAccessor::FirstChildNamed( nvt_i, nvt_i.Root(), 'Body' ); | 
|      | 
|     traverse( batchBody.Children(), Elements, child ) | 
|     { | 
|       childBody := LibInt_NvtAccessor::FirstChildNamed( nvt_i, child, 'Body' ); | 
|       children  := childBody.Children(); | 
|      | 
|       traverse( children, Elements, objectNode ) | 
|       { | 
|         object := NamedValueTreeIO::ImportObject( nvt_i, objectNode, objectType ).astype( LibDMF_SetType ); | 
|         objects.Add( object ); | 
|      | 
|         this.DMSetTypeTransformFromGeneric( &object ); | 
|       } | 
|     } | 
|      | 
|     return &objects; | 
|   *] | 
| } |