Quintiq file version 2.0
|
#parent: #root
|
StaticMethod Construct (Type type) as owning DTO_Base
|
{
|
TextBody:
|
[*
|
nvt := NamedValueTree::Create();
|
handle := nvt.GetHandle( type.Name() );
|
|
sourcenode := nvt.Root().AddChild( handle );
|
|
dtowrapper := construct( DTO_Base, type );
|
dtowrapper.NVTValue( NamedValueTreeXMLStreamer::ToString( nvt, sourcenode ) );
|
|
// Update default values into DTO instance. Do not update NVTValue in UpdateNVT method calls.
|
dtowrapper.NeedUpdateNVTValue( false );
|
dtowrapper.PopulateDefaultValues();
|
dtowrapper.NeedUpdateNVTValue( true );
|
|
return &dtowrapper;
|
*]
|
}
|