public static void WriteIntroductionForSchemaSet(this MamlWriter writer, Context context)
        {
            var documentationInfo = context.DocumentationManager.GetSchemaSetDocumentationInfo();

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            writer.EndIntroduction();
        }
        public static void WriteIntroductionForNamespace(this MamlWriter writer, Context context, string targetNamespace)
        {
            var documentationInfo = context.DocumentationManager.GetNamespaceDocumentationInfo(targetNamespace);

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            writer.WriteObsoleteInfo(context, targetNamespace);
            writer.EndIntroduction();
        }
        public static void WriteIntroductionForObject(this MamlWriter writer, Context context, XmlSchemaObject obj)
        {
            var documentationInfo = context.DocumentationManager.GetObjectDocumentationInfo(obj);

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            writer.WriteObsoleteInfo(context, obj);
            writer.WriteNamespaceAndSchemaInfo(context, obj);
            writer.EndIntroduction();
        }
        public static void WriteIntroductionForSchema(this MamlWriter writer, Context context, XmlSchema schema)
        {
            var documentationInfo = context.DocumentationManager.GetObjectDocumentationInfo(schema);

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            writer.WriteObsoleteInfo(context, schema);
            writer.WriteNamespaceInfo(context, schema.TargetNamespace);
            writer.EndIntroduction();
        }
 public static void WriteIntroductionForOverview(this MamlWriter writer, Context context, string namespaceUri)
 {
     writer.StartIntroduction();
     writer.StartParagraph();
     writer.WriteString("The ");
     writer.WriteNamespaceLink(context, namespaceUri);
     writer.WriteString(" namespace exposes the following members.");
     writer.EndParagraph();
     writer.EndIntroduction();
 }
Beispiel #6
0
        public static void WriteIntroductionForSchemaSet(this MamlWriter writer,
                                                         Context context)
        {
            var documentationInfo = context.DocumentationManager.GetSchemaSetDocumentationInfo();

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            //writer.StartParagraph();
            //writer.WriteToken("autoOutline");
            //writer.EndParagraph();
            writer.EndIntroduction();
        }
Beispiel #7
0
        public static void WriteIntroductionForNamespace(this MamlWriter writer,
                                                         Context context, string targetNamespace)
        {
            var documentationInfo =
                context.DocumentationManager.GetNamespaceDocumentationInfo(targetNamespace);

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            if (context.Configuration.IncludeAutoOutline)
            {
                writer.StartParagraph();
                writer.WriteToken("autoOutline");
                writer.EndParagraph();
            }
            writer.WriteObsoleteInfo(context, targetNamespace);
            writer.EndIntroduction();
        }
Beispiel #8
0
        public static void WriteIntroductionForSchema(this MamlWriter writer,
                                                      Context context, XmlSchema schema)
        {
            var documentationInfo =
                context.DocumentationManager.GetObjectDocumentationInfo(schema);

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            if (context.Configuration.IncludeAutoOutline)
            {
                writer.StartParagraph();
                writer.WriteToken("autoOutline");
                writer.EndParagraph();
            }
            writer.WriteObsoleteInfo(context, schema);
            writer.WriteNamespaceInfo(context, schema.TargetNamespace);
            writer.EndIntroduction();
        }
Beispiel #9
0
        public static void WriteIntroductionForObject(this MamlWriter writer,
                                                      Context context, XmlSchemaObject obj)
        {
            DocumentationInfo documentationInfo =
                context.DocumentationManager.GetObjectDocumentationInfo(obj);

            writer.StartIntroduction();
            writer.WriteSummary(documentationInfo);
            if (context.Configuration.IncludeAutoOutline)
            {
                XmlSchemaAttribute      attribute;
                XmlSchemaElement        element;
                XmlSchemaGroup          group;
                XmlSchemaAttributeGroup attributeGroup;
                XmlSchemaSimpleType     simpleType;
                XmlSchemaComplexType    complexType;

                if (Casting.TryCast(obj, out element))
                {
                    bool isSimpleType = element.ElementSchemaType is XmlSchemaSimpleType;
                    if (!isSimpleType)
                    {
                        writer.StartParagraph();
                        writer.WriteToken("autoOutline");
                        writer.EndParagraph();

                        context.MoveToTopLink = true;
                    }
                }
                else if (Casting.TryCast(obj, out attribute))
                {
                }
                else if (Casting.TryCast(obj, out group))
                {
                    XmlSchemaGroupBase compositor = group.Particle;
                    if (compositor != null)
                    {
                        XmlSchemaObjectCollection items = compositor.Items;
                        if (items != null && items.Count > 3)
                        {
                            writer.StartParagraph();
                            writer.WriteToken("autoOutline");
                            writer.EndParagraph();

                            context.MoveToTopLink = true;
                        }
                    }
                }
                else if (Casting.TryCast(obj, out attributeGroup))
                {
                }
                else if (Casting.TryCast(obj, out simpleType))
                {
                }
                else if (Casting.TryCast(obj, out complexType))
                {
                    if (complexType.ContentType != XmlSchemaContentType.Empty &&
                        complexType.ContentType != XmlSchemaContentType.TextOnly)
                    {
                        writer.StartParagraph();
                        writer.WriteToken("autoOutline");
                        writer.EndParagraph();

                        context.MoveToTopLink = true;
                    }
                }
            }
            writer.WriteObsoleteInfo(context, obj);
            writer.WriteNamespaceAndSchemaInfo(context, obj);
            writer.EndIntroduction();
        }