//────────────────────────────────────────
        public static XmlToConfigurationtree_C15_Elm GetTranslatorByNodeName(string sName_Node, Log_Reports log_Reports)
        {
            if (null == XmlToConfigurationtree_Collection.dictionary_NodeVer)
            {
                Dictionary<string, XmlToConfigurationtree_C15_Elm> d = new Dictionary<string, XmlToConfigurationtree_C15_Elm>();

                {
                    // <data >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_DataImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_MEMORY.Name_Attribute);
                    a.Add(PmNames.S_ACCESS.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    List<string> l3 = new List<string>();
                    l3.Add(PmNames.S_MEMORY.Name_Attribute);
                    l3.Add(PmNames.S_ACCESS.Name_Attribute);
                    xToS.List_SName_RequiredPm = l3;
                    d.Add(NamesNode.S_DATA, xToS);
                }
                {
                    // <event >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_EventImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_EVENT, xToS);
                }
                {
                    // <key-event >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_KeyEventImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_MOTION.Name_Attribute);
                    a.Add(PmNames.S_KEY.Name_Attribute);
                    a.Add(PmNames.S_CTRL.Name_Attribute);
                    a.Add(PmNames.S_ALT.Name_Attribute);
                    a.Add(PmNames.S_SHIFT.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_KEY_EVENT, xToS);
                }
                {
                    // <together >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_TogetherImpl_();
                    d.Add(NamesNode.S_TOGETHER, xToS);
                }
                {
                    // <view >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_ViewImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_TARGET1.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_VIEW, xToS);
                }
                {
                    // <common-function >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C15_DefFunctionImpl();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_COMMON_FUNCTION, xToS);
                }
                {
                    // <fnc >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C15_FncImpl_();

                    // 追加【2012-07-27】
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;

                    d.Add(NamesNode.S_FNC, xToS);
                }
                {
                    // <f-param >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_CALL.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_F_PARAM, xToS);
                }
                {
                    // <f-str >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_F_STR, xToS);
                }
                {
                    // <f-var>
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_F_VAR, xToS);
                }
                {
                    // <arg >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C15b_ArgImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_ARG, xToS);
                }
                {
                    // <def-param >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_DEF_PARAM, xToS);
                }
                {
                    // <key-action >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List<PmNameItem> p1 = new List<PmNameItem>();
                    p1.Add(new PmNameItemImpl(PmNames.S_TYPE, true));
                    xToS.List_PmName = p1;
                    d.Add(NamesNode.S_KEY_ACTION, xToS);
                }
                {
                    // <f-listbox-valiration >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_3FListboxValidationImpl_();
                    d.Add(NamesNode.S_F_LISTBOX_VALIDATION, xToS);
                }
                {
                    // <validator >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_3ValidatorImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_VALIDATOR, xToS);
                }
                {
                    // <control >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V52_ControlImpl_();
                    List<string> a = new List<string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_CONTROL1, xToS);
                }

                XmlToConfigurationtree_Collection.dictionary_NodeVer = d;
            }

            XmlToConfigurationtree_C15_Elm result;
            XmlToConfigurationtree_Collection.dictionary_NodeVer.TryGetValue(sName_Node, out result);
            return result;
        }
Ejemplo n.º 2
0
        //────────────────────────────────────────

        public static XmlToConfigurationtree_C15_Elm GetTranslatorByNodeName(string sName_Node, Log_Reports log_Reports)
        {
            if (null == XmlToConfigurationtree_Collection.dictionary_NodeVer)
            {
                Dictionary <string, XmlToConfigurationtree_C15_Elm> d = new Dictionary <string, XmlToConfigurationtree_C15_Elm>();

                {
                    // <data >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_DataImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_MEMORY.Name_Attribute);
                    a.Add(PmNames.S_ACCESS.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    List <string> l3 = new List <string>();
                    l3.Add(PmNames.S_MEMORY.Name_Attribute);
                    l3.Add(PmNames.S_ACCESS.Name_Attribute);
                    xToS.List_SName_RequiredPm = l3;
                    d.Add(NamesNode.S_DATA, xToS);
                }
                {
                    // <event >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_EventImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_EVENT, xToS);
                }
                {
                    // <key-event >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_KeyEventImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_MOTION.Name_Attribute);
                    a.Add(PmNames.S_KEY.Name_Attribute);
                    a.Add(PmNames.S_CTRL.Name_Attribute);
                    a.Add(PmNames.S_ALT.Name_Attribute);
                    a.Add(PmNames.S_SHIFT.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_KEY_EVENT, xToS);
                }
                {
                    // <together >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_TogetherImpl_();
                    d.Add(NamesNode.S_TOGETHER, xToS);
                }
                {
                    // <view >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C13_ViewImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_TARGET1.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_VIEW, xToS);
                }
                {
                    // <common-function >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C15_DefFunctionImpl();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_COMMON_FUNCTION, xToS);
                }
                {
                    // <fnc >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C15_FncImpl_();

                    // 追加【2012-07-27】
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;

                    d.Add(NamesNode.S_FNC, xToS);
                }
                {
                    // <f-param >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_CALL.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_F_PARAM, xToS);
                }
                {
                    // <f-str >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_F_STR, xToS);
                }
                {
                    // <f-var>
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_F_VAR, xToS);
                }
                {
                    // <arg >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C15b_ArgImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_VALUE.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_ARG, xToS);
                }
                {
                    // <def-param >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_DEF_PARAM, xToS);
                }
                {
                    // <key-action >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_C_Parser15Impl();
                    List <PmNameItem> p1 = new List <PmNameItem>();
                    p1.Add(new PmNameItemImpl(PmNames.S_TYPE, true));
                    xToS.List_PmName = p1;
                    d.Add(NamesNode.S_KEY_ACTION, xToS);
                }
                {
                    // <f-listbox-valiration >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_3FListboxValidationImpl_();
                    d.Add(NamesNode.S_F_LISTBOX_VALIDATION, xToS);
                }
                {
                    // <validator >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V_3ValidatorImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    a.Add(PmNames.S_DESCRIPTION.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_VALIDATOR, xToS);
                }
                {
                    // <control >
                    XmlToConfigurationtree_C15_Elm xToS = new XmlToConfigurationtree_V52_ControlImpl_();
                    List <string> a = new List <string>();
                    a.Add(PmNames.S_NAME.Name_Attribute);
                    xToS.List_SName_Attribute = a;
                    d.Add(NamesNode.S_CONTROL1, xToS);
                }


                XmlToConfigurationtree_Collection.dictionary_NodeVer = d;
            }

            XmlToConfigurationtree_C15_Elm result;

            XmlToConfigurationtree_Collection.dictionary_NodeVer.TryGetValue(sName_Node, out result);
            return(result);
        }