SIL.FieldWorks.Common.Controls.ObjectValuePartGenerator.ObjectValuePartGenerator C# (CSharp) Method

ObjectValuePartGenerator() public method

public ObjectValuePartGenerator ( SIL.FieldWorks.FDO.FdoCache cache, XmlNode input, XmlVc vc, int rootClassId ) : System
cache SIL.FieldWorks.FDO.FdoCache
input System.Xml.XmlNode
vc XmlVc
rootClassId int
return System
		public ObjectValuePartGenerator(FdoCache cache, XmlNode input, XmlVc vc, int rootClassId)
			: base(cache, input, vc, rootClassId)
		{
			m_objectPath = XmlUtils.GetAttributeValue(input, "objectPath");
			if (m_objectPath == null)
				throw new ArgumentException("ObjectValuePartGenerator expects input to have objectPath attribute.");
			// Enhance: generalize this
			if (m_objectPath == "PhFeatureSystem.Features")
			{
				m_collectionToGeneratePartsFrom = cache.LangProject.PhFeatureSystemOA.FeaturesOC;
				m_sortedCollection = from s in m_collectionToGeneratePartsFrom
								 orderby s.Abbreviation.BestAnalysisAlternative.Text
								 select s;
			}
		}
		/// <summary>
ObjectValuePartGenerator