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

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

Public Methods

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

GetModPrerequisites ( ) : ICondition

Parses XmlScript.ModPrerequisites.

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

Reads the dependency information from the given node.

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

Reads a option's information from the script file.

Private Methods

Method Description
ReadConditionalFileInstallInfo ( IEnumerable p_xeeConditionalFileInstalls ) : List

Reads the conditional file install info from the given XML nodes.

ReadFlagInfo ( IEnumerable p_xeeFlags ) : List

Reads the condtition flag info from the given XML nodes.

Method Details

GetConditionallyInstalledFileSets() protected method

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

GetModPrerequisites() protected method

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

LoadCondition() protected method

Reads the dependency information 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 dependency information.
return ICondition

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

Parser20() public method

A simple constructor that initializes the object with the given values.
public Parser20 ( 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