/// <summary> /// Initializes the class /// </summary> /// <remarks> /// This creates all the mandatory fields (populated with the default data) /// All Collection object are created. /// However any 1-n relationships (these are represented as collections) are /// empty. To comply with the schema these must be populated before the xml /// obtained from ToXml is valid against the schema C:\src\massivex\hyperway\Mx.Peppol.Lookup\Reader\bdx-smp-201605.xsd. /// </remarks> protected override void Init() { Mx.Peppol.Lookup.Reader.BdxSmp201605.Registration.iRegistrationIndicator = 0; // causes registration to take place m_ParticipantIdentifier = new Mx.Peppol.Lookup.Reader.tns.ParticipantIdentifier("ParticipantIdentifier"); m_ServiceMetadataReferenceCollection = new Mx.Peppol.Lookup.Reader.tns.ServiceMetadataReferenceCollectionType("ServiceMetadataReferenceCollection"); m_Extension = new Mx.Peppol.Lookup.Reader.BdxSmp201605.XmlObjectCollection <Mx.Peppol.Lookup.Reader.tns.ExtensionType>("Extension", "http://docs.oasis-open.org/bdxr/ns/SMP/2016/05", 0, -1, false); // ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional initialization code here... // ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS }
/// <summary> /// Allows the class to be copied /// </summary> /// <remarks> /// Performs a 'deep copy' of all the data in the class (and its children) /// </remarks> public override object Clone() { Mx.Peppol.Lookup.Reader.tns.ServiceMetadataReferenceCollectionType newObject = new Mx.Peppol.Lookup.Reader.tns.ServiceMetadataReferenceCollectionType(_elementName); foreach (Mx.Peppol.Lookup.Reader.tns.ServiceMetadataReferenceType o in m_ServiceMetadataReference) { newObject.m_ServiceMetadataReference.Add((Mx.Peppol.Lookup.Reader.tns.ServiceMetadataReferenceType)o.Clone()); } // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional clone code here... // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS return(newObject); }