Exemple #1
0
            public PropertyInfo GetPropertyInfo(YqlPropertyNode node)
            {
                PropertyInfo propertyInfo;

                if (!InfosById.TryGetValue(node.AbstractPropertyId, out propertyInfo))
                {
                    node.ReportError("No mapping was defined for the property " + node.AbstractPropertyId);
                }
                return(propertyInfo);
            }
Exemple #2
0
        static YqlNode()
        {
            RegisterSingleXmlElement(typeof(YqlTextMatchNode), "TextMatch");
            RegisterSingleXmlElement(typeof(YqlListContainsNode), "ListContains");
            RegisterSingleXmlElement(typeof(YqlListNode), "List");
            RegisterSingleXmlElement(typeof(YqlMessagePropertyNode), "MessageProperty");
            RegisterSingleXmlElement(typeof(YqlThreadPropertyNode), "ThreadProperty");
            RegisterSingleXmlElement(typeof(YqlUserPropertyNode), "UserProperty");

            // Multi-element
            YqlOperationNode.RegisterXmlElements();
            YqlValueNode.RegisterXmlElements();
            YqlPropertyNode.RegisterXmlElements(YamsterModelType.User,
                                                typeof(YqlUserPropertyNode), typeof(YqlUserProperty));
            YqlPropertyNode.RegisterXmlElements(YamsterModelType.Message,
                                                typeof(YqlMessagePropertyNode), typeof(YqlMessageProperty));
            YqlPropertyNode.RegisterXmlElements(YamsterModelType.Thread,
                                                typeof(YqlThreadPropertyNode), typeof(YqlThreadProperty));
        }