The NoticeRef element names an organization and identifies by numbers a group of textual statements prepared by that organization, so that the application could get the explicit notices from a notices file.
Ejemplo n.º 1
0
        /// <summary>
        /// Load state from an XML element
        /// </summary>
        /// <param name="xmlElement">XML element containing new state</param>
        public override void LoadXml(System.Xml.XmlElement xmlElement)
        {
            XmlNamespaceManager xmlNamespaceManager;
            XmlNodeList         xmlNodeList;

            if (xmlElement == null)
            {
                throw new ArgumentNullException("xmlElement");
            }

            xmlNamespaceManager = new XmlNamespaceManager(xmlElement.OwnerDocument.NameTable);
            xmlNamespaceManager.AddNamespace("xsd", XadesSignedXml.XadesNamespaceUri);

            xmlNodeList = xmlElement.SelectNodes("xsd:SPUserNotice/xsd:NoticeRef", xmlNamespaceManager);
            if (xmlNodeList.Count != 0)
            {
                this.noticeRef = new NoticeRef();
                this.noticeRef.LoadXml((XmlElement)xmlNodeList.Item(0));
            }

            xmlNodeList = xmlElement.SelectNodes("xsd:SPUserNotice/xsd:ExplicitText", xmlNamespaceManager);
            if (xmlNodeList.Count != 0)
            {
                this.explicitText = xmlNodeList.Item(0).InnerText;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SPUserNotice()
 {
     noticeRef = new NoticeRef();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SPUserNotice()
 {
     noticeRef = new NoticeRef();
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Load state from an XML element
        /// </summary>
        /// <param name="xmlElement">XML element containing new state</param>
        public override void LoadXml(System.Xml.XmlElement xmlElement)
        {
            XmlNamespaceManager xmlNamespaceManager;
            XmlNodeList xmlNodeList;

            if (xmlElement == null)
            {
                throw new ArgumentNullException("xmlElement");
            }

            xmlNamespaceManager = new XmlNamespaceManager(xmlElement.OwnerDocument.NameTable);
            xmlNamespaceManager.AddNamespace("xsd", XadesSignedXml.XadesNamespaceUri);

            xmlNodeList = xmlElement.SelectNodes("xsd:SPUserNotice/xsd:NoticeRef", xmlNamespaceManager);
            if (xmlNodeList.Count != 0)
            {
                this.noticeRef = new NoticeRef();
                this.noticeRef.LoadXml((XmlElement)xmlNodeList.Item(0));
            }

            xmlNodeList = xmlElement.SelectNodes("xsd:SPUserNotice/xsd:ExplicitText", xmlNamespaceManager);
            if (xmlNodeList.Count != 0)
            {
                this.explicitText = xmlNodeList.Item(0).InnerText;
            }
        }