/// <summary> /// Constructs a node that extends the specified parent node with an additional level of depth. /// </summary> /// <param name="parent">The parent node to encapsulate.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="parent"/> is null.</exception> protected XmlPathLooseClosed(IXmlPathLooseClosed parent) { if (parent == null) throw new ArgumentNullException("parent"); this.parent = parent; }
/// <summary> /// Constructs a node that extends the specified parent node with an additional level of depth. /// </summary> /// <param name="parent">The parent node to encapsulate.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="parent"/> is null.</exception> protected XmlPathLooseClosed(IXmlPathLooseClosed parent) { if (parent == null) { throw new ArgumentNullException("parent"); } this.parent = parent; }
/// <summary> /// Constructs a node that extends the specified parent node by targetting an inner attribute by its name. /// </summary> /// <param name="parent">The parent node to encapsulate.</param> /// <param name="name">The name of the inner attribute.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="parent"/> or <paramref name="name"/> is null.</exception> /// <exception cref="ArgumentException">Thrown if <paramref name="name"/> is empty.</exception> public XmlPathLooseClosedAttribute(IXmlPathLooseClosed parent, string name) : base(parent) { if (name == null) throw new ArgumentNullException("name"); if (name.Length == 0) throw new ArgumentException("Cannot be empty.", "name"); this.name = name; }
/// <summary> /// Constructs a node that extends the specified parent node by targetting an inner attribute by its name. /// </summary> /// <param name="parent">The parent node to encapsulate.</param> /// <param name="name">The name of the inner attribute.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="parent"/> or <paramref name="name"/> is null.</exception> /// <exception cref="ArgumentException">Thrown if <paramref name="name"/> is empty.</exception> public XmlPathLooseClosedAttribute(IXmlPathLooseClosed parent, string name) : base(parent) { if (name == null) { throw new ArgumentNullException("name"); } if (name.Length == 0) { throw new ArgumentException("Cannot be empty.", "name"); } this.name = name; }