Esempio n. 1
0
        /// <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.Xml.Busdox.ds.Signature newObject = new Mx.Xml.Busdox.ds.Signature(_elementName);
            newObject.m_Id         = m_Id;
            newObject.m_SignedInfo = null;
            if (m_SignedInfo != null)
            {
                newObject.m_SignedInfo = (Mx.Xml.Busdox.ds.SignedInfo)m_SignedInfo.Clone();
            }
            newObject.m_SignatureValue = null;
            if (m_SignatureValue != null)
            {
                newObject.m_SignatureValue = (Mx.Xml.Busdox.ds.SignatureValue)m_SignatureValue.Clone();
            }
            newObject.m_KeyInfo = null;
            if (m_KeyInfo != null)
            {
                newObject.m_KeyInfo = (Mx.Xml.Busdox.ds.KeyInfo)m_KeyInfo.Clone();
            }
            foreach (Mx.Xml.Busdox.ds.object_ o in m_Object)
            {
                newObject.m_Object.Add((Mx.Xml.Busdox.ds.object_)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);
        }
Esempio n. 2
0
        /// <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.Xml.Busdox.Smp\ServiceMetadataPublishingTypes-1.0.xsd.
        /// </remarks>
        protected override void Init()
        {
            Mx.Xml.Busdox.Smp.Registration.iRegistrationIndicator = 0; // causes registration to take place
            m_ServiceMetadata = new Mx.Xml.Busdox.tns.ServiceMetadata("ServiceMetadata");
            m_Signature       = new Mx.Xml.Busdox.ds.Signature("Signature");

// ##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
        }