C# Class Nexus.Client.ModManagement.Scripting.XmlScript.Parsers.Parser

Provides a contract and base functionality for XML configuration file parsers.
Inheritance: IParser
ファイルを表示 Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
Parse ( ) : XmlScript

Parses the Script from an XML document.

ParseSortOrder ( string p_strOrder ) : SortOrder

Parser the given string into a SortOrder

ParseVersion ( string p_strVersion ) : System.Version

Parser the given string into a Version.

Parser ( System.Xml.Linq.XElement p_xelScript, XmlScriptType p_xstXmlScriptType ) : System

A simple constructor that initializes the object with the given values.

Protected Methods

Method Description
GetConditionallyInstalledFileSets ( ) : List

Parses XmlScript.ConditionallyInstalledFileSets.

GetHeaderInfo ( ) : HeaderInfo

Parses XmlScript.HeaderInfo.

GetInstallStepSortOrder ( ) : SortOrder

Parses the order of the XmlScript.InstallSteps.

GetInstallSteps ( ) : List

Parses XmlScript.InstallSteps.

GetModPrerequisites ( ) : ICondition

Parses XmlScript.ModPrerequisites.

GetRequiredInstallFiles ( ) : List

Parses XmlScript.RequiredInstallFiles.

Method Details

GetConditionallyInstalledFileSets() protected abstract method

Parses XmlScript.ConditionallyInstalledFileSets.
protected abstract GetConditionallyInstalledFileSets ( ) : List
return List

GetHeaderInfo() protected abstract method

Parses XmlScript.HeaderInfo.
protected abstract GetHeaderInfo ( ) : HeaderInfo
return HeaderInfo

GetInstallStepSortOrder() protected abstract method

Parses the order of the XmlScript.InstallSteps.
protected abstract GetInstallStepSortOrder ( ) : SortOrder
return SortOrder

GetInstallSteps() protected abstract method

Parses XmlScript.InstallSteps.
protected abstract GetInstallSteps ( ) : List
return List

GetModPrerequisites() protected abstract method

Parses XmlScript.ModPrerequisites.
protected abstract GetModPrerequisites ( ) : ICondition
return ICondition

GetRequiredInstallFiles() protected abstract method

Parses XmlScript.RequiredInstallFiles.
protected abstract GetRequiredInstallFiles ( ) : List
return List

Parse() public method

Parses the Script from an XML document.
public Parse ( ) : XmlScript
return XmlScript

ParseSortOrder() public static method

Parser the given string into a SortOrder
public static ParseSortOrder ( string p_strOrder ) : SortOrder
p_strOrder string The string representation of the .
return SortOrder

ParseVersion() public static method

Parser the given string into a Version.
public static ParseVersion ( string p_strVersion ) : System.Version
p_strVersion string The string representation of the .
return System.Version

Parser() public method

A simple constructor that initializes the object with the given values.
public Parser ( System.Xml.Linq.XElement p_xelScript, XmlScriptType p_xstXmlScriptType ) : System
p_xelScript System.Xml.Linq.XElement The xml script file.
p_xstXmlScriptType XmlScriptType The that describes /// XML script type metadata.
return System