Logo Search packages:      
Sourcecode: ndoc version File versions  Download package

void NDoc::Documenter::LinearHtml::LinearHtmlDocumenter::MakeHtmlForNamespace ( XPathNavigator  nav,
string  assemblyName,
string  assemblyVersion 
) [inline, private]

Do the build operations given that the specified XPathNavigator is pointing to a namespace node.

Parameters:
nav The XPathNavigator pointing to a node of a type that's appropriate for this method.
assemblyName The name of the assembly containing this namespace.
assemblyVersion The version of the assembly containing this namespace.

Definition at line 1024 of file LinearHtmlDocumenter.cs.

            {
                  string namespaceName = nav.GetAttribute("name", "");

                  // skip this namespace based on regex
                  if ((MyConfig.NamespaceExcludeRegexp != null) 
                        && (MyConfig.NamespaceExcludeRegexp.Length > 0))
                  {
                        Regex nsReject = new Regex(MyConfig.NamespaceExcludeRegexp);

                        if (nsReject.IsMatch(namespaceName))
                        {
                              Console.WriteLine("Rejecting namespace {0} by regexp", namespaceName);
                              return;
                        }
                  }

                  Console.WriteLine("Namespace: {0}", namespaceName);

                  //
                  // this goes in list of namespaces
                  //
                  string assemblyString = assemblyName;
                  if ((assemblyVersion != null) && (assemblyVersion.Length > 0))
                  {
                        Version v = new Version(assemblyVersion);
                        string vString = String.Format("{0}.{1}.{2}.*", v.Major, v.Minor, v.Build);
                        assemblyString = assemblyName + " Version " + vString;
                  }

                  // get summary
                  XPathNavigator documentationNav = GetChildNodeWithName(nav, "documentation");
                  XPathNavigator summaryNav = null;
                  if (documentationNav != null)
                  {
                        summaryNav = GetChildNodeWithName(documentationNav, "summary");
                  }
                  string namespaceSummary = string.Empty;
                  if (summaryNav != null) namespaceSummary = summaryNav.Value;

                  if (MyConfig.UseNamespaceDocSummaries)
                  {
                        AddTableEntryRaw(namespaceListWriter, NamespaceLinkReferenceWrap(namespaceName), 
                              assemblyString, namespaceSummary);
                  }
                  else
                  {
                        AddTableEntryRaw(namespaceListWriter, NamespaceLinkReferenceWrap(namespaceName), 
                              assemblyString);
                  }

                  //
                  // write a list of types in this namespace
                  //
                  MakeHtmlTypeList(nav, namespaceName);

                  //
                  // Types in namespace
                  //
                  nav.MoveToFirstChild(); // move into namespace children

                  // foreach Type (class, delegate, interface)...
                  do 
                  {
                        if (TypeMatchesIncludeRegexp(nav)) MakeHtmlForType(nav, namespaceName);
                  } while(nav.MoveToNext());

                  nav.MoveToParent();
            }


Generated by  Doxygen 1.6.0   Back to index