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

Parses version 1.0 xml script files.
Inheritance: Parser
Datei anzeigen Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
Parser10 ( 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.

LoadCondition ( System.Xml.Linq.XElement p_xelCondition ) : ICondition

Reads the condition from the given node.

ParseGroup ( System.Xml.Linq.XElement p_xelGroup ) : OptionGroup

Creates a option group based on the given info.

ParseOption ( System.Xml.Linq.XElement p_xelOption ) : Option

Reads a option's information from the script file.

ReadFileInfo ( IEnumerable p_xeeFiles ) : List

Reads the file info from the given XML nodes.

Method Details

GetConditionallyInstalledFileSets() protected method

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

GetHeaderInfo() protected method

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

GetInstallStepSortOrder() protected method

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

GetInstallSteps() protected method

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

GetModPrerequisites() protected method

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

GetRequiredInstallFiles() protected method

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

LoadCondition() protected method

Reads the condition from the given node.
protected LoadCondition ( System.Xml.Linq.XElement p_xelCondition ) : ICondition
p_xelCondition System.Xml.Linq.XElement The node from which to load the condition.
return ICondition

ParseGroup() protected method

Creates a option group based on the given info.
protected ParseGroup ( System.Xml.Linq.XElement p_xelGroup ) : OptionGroup
p_xelGroup System.Xml.Linq.XElement The script file node corresponding to the group to add.
return OptionGroup

ParseOption() protected method

Reads a option's information from the script file.
protected ParseOption ( System.Xml.Linq.XElement p_xelOption ) : Option
p_xelOption System.Xml.Linq.XElement The script file node corresponding to the option to read.
return Option

Parser10() public method

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

ReadFileInfo() protected method

Reads the file info from the given XML nodes.
protected ReadFileInfo ( IEnumerable p_xeeFiles ) : List
p_xeeFiles IEnumerable The list of XML nodes containing the file info to read.
return List