Esempio n. 1
0
        /// <summary>
        /// Obtém o StrVal da representação.
        /// </summary>
        /// <param name="pTerm">Termo de onde será obtido.</param>
        /// <returns></returns>
        /// <remarks>
        ///       <ItemProperties>
        ///        <GroupName>A. Representation</GroupName>
        ///        <ItemProperty ConceptID="2">
        ///          <Name>Synonym</Name>
        ///          <Value StrVal="company" PropertyValueID="2329">
        ///            <Text>company</Text>
        ///          </Value>
        ///          <SubProperty ConceptID="95">
        ///            <Name>WPAR</Name>
        ///            <Value />
        ///          </SubProperty>
        ///        </ItemProperty>
        ///      </ItemProperties>
        /// </remarks>
        private IXmiObject ReadText(Term pTerm, XmiDesignation designation)
        {
            foreach (ItemProperties itemProperty in pTerm.ItemProperties)
            {
                foreach (ItemPropertiesItemProperty itemPropertiesItemProperty in itemProperty.ItemProperty)
                {
                    if (itemPropertiesItemProperty.ConceptID.Equals("2")) // GroupName = 'A. Representation'
                    {
                        foreach (ItemPropertiesItemPropertyValue itemPropertiesItemPropertyValue in itemPropertiesItemProperty.Value)
                        {
                            string id = designation.Id + "-t";
                            designation.Signifier = id;
                            return new XmiText() { Id = id, Value = itemPropertiesItemPropertyValue.StrVal };
                        }
                    }
                }
            }

            return null;
        }
Esempio n. 2
0
 private IXmiObject ReadObjectType(Term pTerm, XmiDesignation designation)
 {
     string id = designation.Id + "-c";
     designation.Meaning = id;
     return new XmiObjectType() { Id = id };
 }