C# Class XSpect.Yacq.SystemObjects.DocumentSet

Represents a XML document file to search by its name, member, or expression.
Datei anzeigen Open project: takeshik/yacq

Public Methods

Method Description
DocumentSet ( FileInfo xmlFile ) : System

Initializes a new instance of the DocumentSet class.

DocumentSet ( Stream stream ) : System

Initializes a new instance of the DocumentSet class.

DocumentSet ( String xml ) : System

Initializes a new instance of the DocumentSet class.

GetDocument ( MemberInfo member ) : System.Xml.Linq.XElement[]

Gets the document which is related with specified member.

GetDocument ( String name ) : System.Xml.Linq.XElement[]

Gets the document which has specified name.

GetXmlDocumentName ( MemberInfo member ) : String

Gets the formatted string which represents specified member in name attribute of XML code documents.

GetXmlDocumentName ( SymbolEntry key ) : String

Gets the formatted string which represents specified symbol entry in name attribute of XML code documents.

Private Methods

Method Description
Format ( Type type, System.Boolean getDefinition ) : String

Method Details

DocumentSet() public method

Initializes a new instance of the DocumentSet class.
public DocumentSet ( FileInfo xmlFile ) : System
xmlFile System.IO.FileInfo The XML file to read.
return System

DocumentSet() public method

Initializes a new instance of the DocumentSet class.
public DocumentSet ( Stream stream ) : System
stream Stream The stream to read the XML file.
return System

DocumentSet() public method

Initializes a new instance of the DocumentSet class.
public DocumentSet ( String xml ) : System
xml String The XML string to read.
return System

GetDocument() public method

Gets the document which is related with specified member.
public GetDocument ( MemberInfo member ) : System.Xml.Linq.XElement[]
member System.Reflection.MemberInfo The member to get the related document.
return System.Xml.Linq.XElement[]

GetDocument() public method

Gets the document which has specified name.
public GetDocument ( String name ) : System.Xml.Linq.XElement[]
name String The document name to search.
return System.Xml.Linq.XElement[]

GetXmlDocumentName() public static method

Gets the formatted string which represents specified member in name attribute of XML code documents.
public static GetXmlDocumentName ( MemberInfo member ) : String
member System.Reflection.MemberInfo Member to get the name.
return String

GetXmlDocumentName() public static method

Gets the formatted string which represents specified symbol entry in name attribute of XML code documents.
public static GetXmlDocumentName ( SymbolEntry key ) : String
key SymbolEntry Symbol entry to get the name.
return String