using System.Collections.Generic;
using System.Xml.Serialization;
namespace ScriptNET.Runtime.Configuration
{
///
/// Xml Serializable configuration data class
///
[XmlRoot(ConfigSchema.Configuration)]
public class ScriptConfiguration
{
///
/// References section in config xml
///
[XmlArray(ConfigSchema.References)]
[XmlArrayItem(ConfigSchema.Assembly)]
public List References { get; set; }
///
/// Types section in config xml
///
[XmlArray(ConfigSchema.Types)]
[XmlArrayItem(ConfigSchema.Type)]
public List Types { get; set; }
///
/// Scopes section in config xml
///
[XmlArray(ConfigSchema.Scopes)]
[XmlArrayItem(ConfigSchema.Scope)]
public List Scopes { get; set; }
///
/// Settings section in config xml
///
[XmlArray(ConfigSchema.Settings)]
[XmlArrayItem(ConfigSchema.Item)]
public List SettingXml { get; set; }
///
/// Operators section in config xml
///
[XmlArray(ConfigSchema.Operators)]
[XmlArrayItem(ConfigSchema.Operator)]
public List Operators { get; set; }
///
/// Initialization script
///
[XmlElement(ConfigSchema.Initialization)]
[XmlText]
public string Initialization { get; set; }
///
/// Creates empty configuration
///
public ScriptConfiguration()
{
References = new List();
Types = new List();
SettingXml = new List();
Initialization = string.Empty;
}
}
}