/// <summary> /// Creates a new state variable description from an XML reader. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="reader">The XML text reader to create the description from.</param> public StateVariableDescription(Description parent, XmlTextReader reader) : base(parent) { if (IsStartNodeFor(reader)) { msSendEvents = reader.GetAttribute("sendEvents") ?? String.Empty; ProcessReader(reader); } else throw new InvalidOperationException( string.Format( "The node {0} is not a valid node for {1}", reader.Name, this.GetType().Name)); }
/// <summary> /// Creates a new service description. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="documentURL">The document URL for the service.</param> /// <param name="deviceUDN">The unique device number for the device.</param> /// <param name="serviceId">The service ID for the service.</param> /// <param name="reader">The reader to load the service description from.</param> public ServiceDescription(Description parent, string documentURL, string deviceUDN, string serviceId, XmlTextReader reader) : base(parent) { msDocumentURL = documentURL; if (IsStartNodeFor(reader)) { msDeviceUDN = deviceUDN; msServiceId = serviceId; msSchema = reader.GetAttribute("xmlns") ?? String.Empty; ProcessReader(reader); } else throw new InvalidOperationException( string.Format( "The node {0} is not a valid node for {1}", reader.Name, this.GetType().Name)); }
/// <summary> /// Creates the description for an argument description. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="reader">The XML reader to load the argument description.</param> public ArgumentDescription(Description parent, XmlTextReader reader) : base(parent, reader) { }
/// <summary> /// Creates a new allowed value range description from a reader. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="reader">The XML reader to get the information from.</param> public AllowedValueRangeDescription(Description parent, XmlTextReader reader) : base(parent, reader) { }
/// <summary> /// Creates a new allowed value range description. /// </summary> public AllowedValueRangeDescription(Description parent) : base(parent) { }
/// <summary> /// Creates a new spec version description from an XML reason. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="reader">The XML reader to get the spec version from.</param> public SpecVersionDescription(Description parent, XmlTextReader reader) : base(parent, reader) { }
/// <summary> /// Creates a new spec version description. /// </summary> public SpecVersionDescription(Description parent) : base(parent) { }
/// <summary> /// Creates a new description from an XML reader. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="reader">The XML reader to get the information from.</param> public Description(Description parent, XmlTextReader reader) : this(parent) { ProcessReader(reader); }
/// <summary> /// Creates a new description. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> public Description(Description parent) { mdParent = parent; Initialise(); }
/// <summary> /// Creates a new state variable description. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> public StateVariableDescription(Description parent) : base(parent) { }
/// <summary> /// Creates a new device description from a reader. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="reader">The XML text reader.</param> public DeviceDescription(Description parent, XmlTextReader reader) : base(parent) { base.ProcessReader(reader); }
/// <summary> /// Creates a new empty device description. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> public DeviceDescription(Description parent) : base(parent) { }
/// <summary> /// Creates a new icon description. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="reader">The reader to load the icon from.</param> public IconDescription(Description parent, XmlTextReader reader) : base(parent, reader) { }
/// <summary> /// Creates a new service description. /// </summary> /// <param name="parent">The parent description object, or null if root description.</param> /// <param name="device">The device description which owns the service.</param> /// <param name="reader">The XML reader to get the data for the service from.</param> public DeviceServiceDescription(Description parent, DeviceDescription device, XmlTextReader reader) : base(parent, reader) { mdDevice = device; }