Beispiel #1
0
        /// <summary>
        /// This writes the current state or attributes of this object,
        /// in the <c>XML</c> format, to the media or storage accessible by the given writer.
        /// </summary>
        /// <param name="writer">
        /// The <c>XML</c> writer with which the <c>XML</c> format of this object's state
        /// is written.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// If the <paramref name="reader"/> is <see langword="null"/>.
        /// </exception>
        public override void WriteXml(XmlWriter writer)
        {
            BuildExceptions.NotNull(writer, "writer");

            writer.WriteStartElement(TagName);  // start - TagName
            writer.WriteAttributeString("name", ConfigurationName);

            // Write the general properties
            writer.WriteStartElement("propertyGroup"); // start - propertyGroup;
            writer.WriteAttributeString("name", "General");
            writer.WritePropertyElement("Enabled", this.Enabled);
            writer.WriteEndElement();                  // end - propertyGroup

            BuildDirectoryPath.WriteLocation(_workingDir, "workingDirectory",
                                             writer);

            // Write out the expressions
            writer.WriteStartElement("expressions"); // start - expressions
            WriteExpression(writer, "Root", _rootExpression);
            WriteExpression(writer, "Assembly", _assemblyExpression);
            WriteExpression(writer, "Summary", _summaryExpression);
            WriteExpression(writer, "Parameters", _parametersExpression);
            WriteExpression(writer, "ParameterContent", _parameterContentExpression);
            WriteExpression(writer, "Templates", _templatesExpression);
            WriteExpression(writer, "TemplateContent", _templateContentExpression);
            WriteExpression(writer, "Returns", _returnsExpression);
            WriteExpression(writer, "Exception", _exceptionExpression);
            WriteExpression(writer, "ExceptionCref", _exceptionCrefExpression);
            WriteExpression(writer, "Enumeration", _enumerationExpression);
            WriteExpression(writer, "EnumerationApi", _enumerationApiExpression);
            WriteExpression(writer, "MemberSummary", _memberSummaryExpression);
            writer.WriteEndElement();           // end - expressions

            writer.WriteEndElement();           // end - TagName
        }
Beispiel #2
0
        protected override void OnWriteXml(XmlWriter writer)
        {
            BuildFilePath.WriteLocation(_compilerFile,
                                        "compilerFile", writer);
            BuildDirectoryPath.WriteLocation(_compilerDir,
                                             "compilerDirectory", writer);

            writer.WriteStartElement("plugin");  // start - plugin
            writer.WriteAttributeString("flatToc", _pluginTocFlat.ToString());
            writer.WriteTextElement("title", _pluginTitle);
            writer.WriteStartElement("parents"); // start - parents
            if (_pluginParents != null && _pluginParents.Count != 0)
            {
                for (int i = 0; i < _pluginParents.Count; i++)
                {
                    writer.WriteTextElement("parent", _pluginParents[i]);
                }
            }
            writer.WriteEndElement();             // end - parents

            writer.WriteStartElement("children"); // start - children
            if (_pluginChildren != null && _pluginChildren.Count != 0)
            {
                for (int i = 0; i < _pluginChildren.Count; i++)
                {
                    writer.WriteTextElement("child", _pluginChildren[i]);
                }
            }
            writer.WriteEndElement();            // end - children

            writer.WriteEndElement();            // end - plugin
        }
Beispiel #3
0
        /// <summary>
        /// This writes the current state or attributes of this object,
        /// in the <c>XML</c> format, to the media or storage accessible by the given writer.
        /// </summary>
        /// <param name="writer">
        /// The <c>XML</c> writer with which the <c>XML</c> format of this object's state
        /// is written.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// If the <paramref name="reader"/> is <see langword="null"/>.
        /// </exception>
        public override void WriteXml(XmlWriter writer)
        {
            BuildExceptions.NotNull(writer, "writer");

            if (this.IsEmpty)
            {
                return;
            }

            writer.WriteStartElement(TagName);  // start - attribute
            BuildDirectoryPath.WriteLocation(_source, "source", writer);
            BuildDirectoryPath.WriteLocation(_destination, "destination", writer);
            writer.WriteEndElement();           // end - attribute
        }
Beispiel #4
0
        /// <summary>
        /// This writes the current state or attributes of this object,
        /// in the <c>XML</c> format, to the media or storage accessible by the given writer.
        /// </summary>
        /// <param name="writer">
        /// The <c>XML</c> writer with which the <c>XML</c> format of this object's state
        /// is written.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// If the <paramref name="reader"/> is <see langword="null"/>.
        /// </exception>
        public override void WriteXml(XmlWriter writer)
        {
            BuildExceptions.NotNull(writer, "writer");

            writer.WriteStartElement(TagName);  // start - TagName
            writer.WriteAttributeString("name", ConfigurationName);

            // Write the general properties
            writer.WriteStartElement("propertyGroup"); // start - propertyGroup;
            writer.WriteAttributeString("name", "General");
            writer.WritePropertyElement("Enabled", this.Enabled);
            writer.WriteEndElement();                  // end - propertyGroup

            BuildDirectoryPath.WriteLocation(_workingDir, "workingDirectory",
                                             writer);

            writer.WriteEndElement();           // end - TagName
        }