SIL.FieldWorks.Filters.DateTimeMatcher.InitXml C# (CSharp) Method

InitXml() public method

public InitXml ( System node ) : void
node System
return void
		public override void InitXml(System.Xml.XmlNode node)
		{
			base.InitXml(node);
			m_start = DateTime.Parse(XmlUtils.GetManditoryAttributeValue(node, "start"), DateTimeFormatInfo.InvariantInfo);
			m_end = DateTime.Parse(XmlUtils.GetManditoryAttributeValue(node, "end"), DateTimeFormatInfo.InvariantInfo);
			m_type = (DateMatchType)XmlUtils.GetMandatoryIntegerAttributeValue(node, "type");
			HandleGenDate = XmlUtils.GetOptionalBooleanAttributeValue(node, "genDate", false);
			IsStartAD = XmlUtils.GetOptionalBooleanAttributeValue(node, "startAD", true);
			IsEndAD = XmlUtils.GetOptionalBooleanAttributeValue(node, "endAD", true);
			UnspecificMatching = XmlUtils.GetOptionalBooleanAttributeValue(node, "unspecific", false);
		}