C# Class SDKDocGenerator.NDocUtilities

Afficher le fichier Open project: aws/aws-sdk-net Class Usage Examples

Méthodes publiques

Méthode Description
DetermineNDocNameLookupSignature ( MethodInfo info, string docId ) : string
DetermineNDocNameLookupSignature ( MethodInfoWrapper info ) : string
FindDocumentation ( AbstractWrapper wrapper ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, AbstractWrapper wrapper ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, ConstructorInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, EventInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, FieldInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, PropertyInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type ) : System.Xml.Linq.XElement
FindDocumentationPCLAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the PCL/.Net45 Async pattern.

FindDocumentationUnityAsync ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement

For methods that end in "Async", checks for the method with a similar signature, but following the Unity Async pattern.

FindDocumentationUnityAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the Unity Async pattern.

FindFieldDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
FindFieldDocumentation ( TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
FindParameterDocumentation ( System.Xml.Linq.XElement ndoc, string name ) : string
FindReturnDocumentation ( System.Xml.Linq.XElement ndoc ) : string
GenerateDocId ( string serviceName, string platform ) : string
GetDocumentationInstance ( string docId ) : XElement>.IDictionary
GetDocumentationInstance ( string serviceName, string platform ) : XElement>.IDictionary
LoadAssemblyDocumentationWithSamples ( string filePath, string samplesDir, string serviceName ) : System.Xml.Linq.XDocument
LoadDocumentation ( string assemblyName, string serviceName, string platform, SDKDocGenerator.GeneratorOptions options ) : void
PreprocessCodeBlocksToPreTags ( SDKDocGenerator.GeneratorOptions options, System.Xml.Linq.XDocument doc ) : void
TransformDocumentationToHTML ( System.Xml.Linq.XElement element, string rootNodeName, AbstractTypeProvider typeProvider, SDKDocGenerator.FrameworkVersion version ) : string

Private Methods

Méthode Description
BuildExamplesMap ( List docNodes ) : string>.IDictionary
CreateNDocTable ( string filePath, string serviceName, SDKDocGenerator.GeneratorOptions options ) : XElement>.IDictionary
DetermineParameterName ( TypeWrapper parameterTypeInfo, StringBuilder parameters ) : void
ExtractCrefAttributeContent ( string nodeText, int crefAttrStart, int &crossRefTagEndIndex ) : string
ExtractHrefAttributeContent ( string nodeText, int hrefAttrStart, int &crossRefTagEndIndex ) : string
FindFirstNoWhitePosition ( string line ) : int
FindSampleCodePath ( string codeSampleRootDirectory, string relativePath ) : string
LeftJustifyCodeBlocks ( string codeBlock ) : string
ProcessExtraDoc ( XmlDocument sdkDocument, string>.IDictionary examplesMap ) : void

Method Details

DetermineNDocNameLookupSignature() public static méthode

public static DetermineNDocNameLookupSignature ( MethodInfo info, string docId ) : string
info System.Reflection.MethodInfo
docId string
Résultat string

DetermineNDocNameLookupSignature() public static méthode

public static DetermineNDocNameLookupSignature ( MethodInfoWrapper info ) : string
info MethodInfoWrapper
Résultat string

FindDocumentation() public static méthode

public static FindDocumentation ( AbstractWrapper wrapper ) : System.Xml.Linq.XElement
wrapper AbstractWrapper
Résultat System.Xml.Linq.XElement

FindDocumentation() public static méthode

public static FindDocumentation ( XElement>.IDictionary ndoc, AbstractWrapper wrapper ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
wrapper AbstractWrapper
Résultat System.Xml.Linq.XElement

FindDocumentation() public static méthode

public static FindDocumentation ( XElement>.IDictionary ndoc, ConstructorInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info ConstructorInfoWrapper
Résultat System.Xml.Linq.XElement

FindDocumentation() public static méthode

public static FindDocumentation ( XElement>.IDictionary ndoc, EventInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info EventInfoWrapper
Résultat System.Xml.Linq.XElement

FindDocumentation() public static méthode

public static FindDocumentation ( XElement>.IDictionary ndoc, FieldInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info FieldInfoWrapper
Résultat System.Xml.Linq.XElement

FindDocumentation() public static méthode

public static FindDocumentation ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Résultat System.Xml.Linq.XElement

FindDocumentation() public static méthode

public static FindDocumentation ( XElement>.IDictionary ndoc, PropertyInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info PropertyInfoWrapper
Résultat System.Xml.Linq.XElement

FindDocumentation() public static méthode

public static FindDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
type TypeWrapper
Résultat System.Xml.Linq.XElement

FindDocumentationPCLAsyncAlternative() public static méthode

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the PCL/.Net45 Async pattern.
public static FindDocumentationPCLAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Résultat System.Xml.Linq.XElement

FindDocumentationUnityAsync() public static méthode

For methods that end in "Async", checks for the method with a similar signature, but following the Unity Async pattern.
public static FindDocumentationUnityAsync ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Résultat System.Xml.Linq.XElement

FindDocumentationUnityAsyncAlternative() public static méthode

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the Unity Async pattern.
public static FindDocumentationUnityAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Résultat System.Xml.Linq.XElement

FindFieldDocumentation() public static méthode

public static FindFieldDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
type TypeWrapper
fieldName string
Résultat System.Xml.Linq.XElement

FindFieldDocumentation() public static méthode

public static FindFieldDocumentation ( TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
type TypeWrapper
fieldName string
Résultat System.Xml.Linq.XElement

FindParameterDocumentation() public static méthode

public static FindParameterDocumentation ( System.Xml.Linq.XElement ndoc, string name ) : string
ndoc System.Xml.Linq.XElement
name string
Résultat string

FindReturnDocumentation() public static méthode

public static FindReturnDocumentation ( System.Xml.Linq.XElement ndoc ) : string
ndoc System.Xml.Linq.XElement
Résultat string

GenerateDocId() public static méthode

public static GenerateDocId ( string serviceName, string platform ) : string
serviceName string
platform string
Résultat string

GetDocumentationInstance() public static méthode

public static GetDocumentationInstance ( string docId ) : XElement>.IDictionary
docId string
Résultat XElement>.IDictionary

GetDocumentationInstance() public static méthode

public static GetDocumentationInstance ( string serviceName, string platform ) : XElement>.IDictionary
serviceName string
platform string
Résultat XElement>.IDictionary

LoadAssemblyDocumentationWithSamples() public static méthode

public static LoadAssemblyDocumentationWithSamples ( string filePath, string samplesDir, string serviceName ) : System.Xml.Linq.XDocument
filePath string
samplesDir string
serviceName string
Résultat System.Xml.Linq.XDocument

LoadDocumentation() public static méthode

public static LoadDocumentation ( string assemblyName, string serviceName, string platform, SDKDocGenerator.GeneratorOptions options ) : void
assemblyName string
serviceName string
platform string
options SDKDocGenerator.GeneratorOptions
Résultat void

PreprocessCodeBlocksToPreTags() public static méthode

public static PreprocessCodeBlocksToPreTags ( SDKDocGenerator.GeneratorOptions options, System.Xml.Linq.XDocument doc ) : void
options SDKDocGenerator.GeneratorOptions
doc System.Xml.Linq.XDocument
Résultat void

TransformDocumentationToHTML() public static méthode

public static TransformDocumentationToHTML ( System.Xml.Linq.XElement element, string rootNodeName, AbstractTypeProvider typeProvider, SDKDocGenerator.FrameworkVersion version ) : string
element System.Xml.Linq.XElement
rootNodeName string
typeProvider AbstractTypeProvider
version SDKDocGenerator.FrameworkVersion
Résultat string