Example #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.wsa.EndpointReference newObject = new Mx.Xml.Busdox.wsa.EndpointReference(_elementName);
            newObject.m_Address = null;
            if (m_Address != null)
            {
                newObject.m_Address = (Mx.Xml.Busdox.wsa.AttributedURIType)m_Address.Clone();
            }
            newObject.m_ReferenceParameters = null;
            if (m_ReferenceParameters != null)
            {
                newObject.m_ReferenceParameters = (Mx.Xml.Busdox.wsa.ReferenceParameters)m_ReferenceParameters.Clone();
            }
            newObject.m_Metadata = null;
            if (m_Metadata != null)
            {
                newObject.m_Metadata = (Mx.Xml.Busdox.wsa.Metadata)m_Metadata.Clone();
            }
            foreach (LiquidTechnologies.Runtime.Standard20.Element o in m_AnyElement)
            {
                newObject.m_AnyElement.Add((LiquidTechnologies.Runtime.Standard20.Element)o.Clone());
            }

            newObject._anyAttributes = (LiquidTechnologies.Runtime.Standard20.AttributeCol)_anyAttributes.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);
        }
Example #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_TransportProfile              = null;
            m_EndpointReference             = new Mx.Xml.Busdox.wsa.EndpointReference("EndpointReference");
            m_RequireBusinessLevelSignature = false;
            m_MinimumAuthenticationLevel    = null;
            m_ServiceActivationDate         = null;
            m_ServiceExpirationDate         = null;
            m_Certificate             = "";
            m_ServiceDescription      = "";
            m_TechnicalContactUrl     = "";
            m_TechnicalInformationUrl = null;
            m_Extension = null;

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