Exemple #1
0
            internal static Parser <char, IPxElement> Create(PxKey key)
            {
                switch (key.Identifier)
                {
                case "NOTEX":
                case "NOTE":
                case "TITLE":
                case "CONTACT":
                case "VALUENOTE":
                case "VALUENOTEX":


                    return(PxValueMultiline.Cast <IPxElement>());


                //return PxListOfValuesMultiline.Cast<IPxElement>();
                case "VALUES":
                case "CODES":
                case "HEADING":
                case "LANGUAGES":
                case "STUB":
                case "TIMEVAL":
                    return(PxListOfValues.Cast <IPxElement>());


                case "DATA":
                    return(PxDataValue.Cast <IPxElement>());

                default:
                    return(ASingleValue.Before(SemiColonLineBreak).Cast <IPxElement>());
                }
            }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="keywordIdentifier"></param>
        /// <returns></returns>
        public IList <dynamic> GetData(string keywordIdentifier)
        {
            IPxElement elem = GetAllKeywordElementsThatMatchTheIdentifier(this, keywordIdentifier).First().Element;

            PxDataValue lv = (PxDataValue)elem;

            IPxMultipleElements elems = lv;

            return(elems.Values);
        }