Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresCalculationConfigurationReader.cs
===================================================================
diff -u -r82db5c5ee21fae9e20fee1412dbb29b1c47b038a -r562b4d8e37190d011089b77ddb28912e004bfdd9
--- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresCalculationConfigurationReader.cs (.../HeightStructuresCalculationConfigurationReader.cs) (revision 82db5c5ee21fae9e20fee1412dbb29b1c47b038a)
+++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.IO/HeightStructuresCalculationConfigurationReader.cs (.../HeightStructuresCalculationConfigurationReader.cs) (revision 562b4d8e37190d011089b77ddb28912e004bfdd9)
@@ -19,9 +19,10 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using System.Collections.Generic;
using System.Xml.Linq;
-using Ringtoets.Common.IO;
+using Core.Common.Base.IO;
using Ringtoets.Common.IO.Configurations;
using Ringtoets.Common.IO.Configurations.Helpers;
using Ringtoets.Common.IO.Readers;
@@ -31,6 +32,10 @@
namespace Ringtoets.HeightStructures.IO
{
+ ///
+ /// Reader for reading a height structure calculation configuration from XML and creating a collection
+ /// of corresponding .
+ ///
public class HeightStructuresCalculationConfigurationReader : CalculationConfigurationReader
{
private const string hrLocatieSchemaName = "HrLocatieSchema.xsd";
@@ -42,6 +47,19 @@
private const string stochastVariatiecoefficientSchemaName = "StochastVariatiecoefficientSchema.xsd";
private const string structureBaseSchemaName = "KunstwerkenBasisSchema.xsd";
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The file path to the XML file.
+ /// Thrown when is invalid.
+ /// Thrown when:
+ ///
+ /// - points to a file that does not exist.
+ /// - points to a file that does not contain valid XML.
+ /// - points to a file that does not pass the schema validation.
+ /// - points to a file that does not contain configuration elements.
+ ///
+ ///
public HeightStructuresCalculationConfigurationReader(string filePath)
: base(filePath,
Resources.KunstwerkenHoogteSchema,
@@ -98,7 +116,7 @@
return configuration;
}
- private WaveReductionConfiguration GetWaveReductionParameters(XElement calculationElement)
+ private static WaveReductionConfiguration GetWaveReductionParameters(XElement calculationElement)
{
XElement waveReduction = calculationElement.GetDescendantElement(ConfigurationSchemaIdentifiers.WaveReduction);
if (waveReduction != null)