C# Class Nexus.Client.ModManagement.Scripting.XmlScript.Unparsers.Unparser

The base class for unparsers that create an XML representation of an XmlScript.
Inheritance: IUnparser
ファイルを表示 Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
Unparse ( ) : System.Xml.Linq.XElement

Unparses the Script into an XML document.

Unparser ( XmlScript p_xscScript ) : System

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

Protected Methods

Method Description
UnparseBoolean ( bool p_booValue ) : string

Translates the given bool into the string representation used in the XML.

UnparseConditionOperator ( ConditionOperator p_copOperator ) : string

Translates the given ConditionOperator into the string representation used in the XML.

UnparseConditionallyInstalledFileSets ( ) : System.Xml.Linq.XElement

Unparses XmlScript.ConditionallyInstalledFileSets.

UnparseHeaderInfo ( ) : List

Unparses XmlScript.HeaderInfo.

UnparseInstallSteps ( ) : System.Xml.Linq.XElement

Unparses XmlScript.InstallSteps.

UnparseModPrerequisites ( ) : System.Xml.Linq.XElement

Unparses XmlScript.ModPrerequisites.

UnparseOptionGroupType ( OptionGroupType p_gtpType ) : string

Translates the given OptionGroupType into the string representation used in the XML.

UnparseOptionType ( OptionType p_otpType ) : string

Translates the given OptionType into the string representation used in the XML.

UnparsePluginState ( PluginState p_pstState ) : string

Translates the given PluginState into the string representation used in the XML.

UnparseRequiredInstallFiles ( ) : System.Xml.Linq.XElement

Unparses XmlScript.RequiredInstallFiles.

Method Details

Unparse() public method

Unparses the Script into an XML document.
public Unparse ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

UnparseBoolean() protected method

Translates the given bool into the string representation used in the XML.
protected UnparseBoolean ( bool p_booValue ) : string
p_booValue bool
return string

UnparseConditionOperator() protected method

Translates the given ConditionOperator into the string representation used in the XML.
protected UnparseConditionOperator ( ConditionOperator p_copOperator ) : string
p_copOperator ConditionOperator The to unparse.
return string

UnparseConditionallyInstalledFileSets() protected abstract method

Unparses XmlScript.ConditionallyInstalledFileSets.
protected abstract UnparseConditionallyInstalledFileSets ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

UnparseHeaderInfo() protected abstract method

Unparses XmlScript.HeaderInfo.
protected abstract UnparseHeaderInfo ( ) : List
return List

UnparseInstallSteps() protected abstract method

Unparses XmlScript.InstallSteps.
protected abstract UnparseInstallSteps ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

UnparseModPrerequisites() protected abstract method

Unparses XmlScript.ModPrerequisites.
protected abstract UnparseModPrerequisites ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

UnparseOptionGroupType() protected method

Translates the given OptionGroupType into the string representation used in the XML.
protected UnparseOptionGroupType ( OptionGroupType p_gtpType ) : string
p_gtpType OptionGroupType The to unparse.
return string

UnparseOptionType() protected method

Translates the given OptionType into the string representation used in the XML.
protected UnparseOptionType ( OptionType p_otpType ) : string
p_otpType OptionType The to unparse.
return string

UnparsePluginState() protected method

Translates the given PluginState into the string representation used in the XML.
protected UnparsePluginState ( PluginState p_pstState ) : string
p_pstState PluginState The to unparse.
return string

UnparseRequiredInstallFiles() protected abstract method

Unparses XmlScript.RequiredInstallFiles.
protected abstract UnparseRequiredInstallFiles ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

Unparser() public method

A simple constructor that initializes the object with the given values.
public Unparser ( XmlScript p_xscScript ) : System
p_xscScript XmlScript The script to unparse.
return System