NEMOparser implements NEMOparserConstants { static final public String UpdateConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage) throws ParseException { Token objConnNameToken = null; Token objConnTypeToken = null; Token objConnEndNodeToken = null; Token objPropertyNameToken = null; Token objPropertyNameToken1 = null; List<String> endNodes = new ArrayList<String>(); LinkedHashMap<String,LinkedHashMap<String,String>> properties = new LinkedHashMap<String,LinkedHashMap<String,String>>(); UpdateConnectionLang updateConnLang = new UpdateConnectionLang(dataBroker,tenantManage); objConnNameToken = jj_consume_token(ID); jj_consume_token(TYPE); objConnTypeToken = jj_consume_token(ID); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ENDNODES: jj_consume_token(ENDNODES); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: objConnEndNodeToken = jj_consume_token(ID); endNodes.add(objConnEndNodeToken.image); break; case TEMPID: objConnEndNodeToken = jj_consume_token(TEMPID); endNodes.add(objConnEndNodeToken.image); break; default: jj_la1[8] = jj_gen; jj_consume_token(-1); throw new ParseException(); } label_3: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[9] = jj_gen; break label_3; } jj_consume_token(COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: objConnEndNodeToken = jj_consume_token(ID); endNodes.add(objConnEndNodeToken.image); break; case TEMPID: objConnEndNodeToken = jj_consume_token(TEMPID); endNodes.add(objConnEndNodeToken.image); break; default: jj_la1[10] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } break; default: jj_la1[11] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case PROPERTY: jj_consume_token(PROPERTY); objPropertyNameToken = jj_consume_token(ID); jj_consume_token(COLON); LinkedHashMap<String,String> property = property(); properties.put(objPropertyNameToken.image, property); label_4: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[12] = jj_gen; break label_4; } jj_consume_token(COMMA); objPropertyNameToken1 = jj_consume_token(ID); jj_consume_token(COLON); LinkedHashMap<String,String> property1 = property(); properties.put(objPropertyNameToken1.image, property1); } break; default: jj_la1[13] = jj_gen; ; } jj_consume_token(SEMICOLON); {if (true) return updateConnLang.ConnectionHandling(userId, objConnNameToken.image, objConnTypeToken.image,endNodes, properties);} throw new Error("Missing return statement in function"); } NEMOparser(java.io.InputStream stream);  NEMOparser(java.io.InputStream stream, String encoding);  NEMOparser(java.io.Reader stream);  NEMOparser(NEMOparserTokenManager tm); String parseNEMO(UserId userId,String strNEMO, DataBroker dataBroker, TenantManage tenantManage); static final String NEMO(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteIntent(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String UpdateOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String NodeModel(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String abstractNode(UpdateTemplateDefinitionLang definition); static final String abstractConnection(UpdateTemplateDefinitionLang definition); static final String abstractFlow(UpdateTemplateDefinitionLang definition); static final String abstractOperation(UpdateTemplateDefinitionLang definition); static final String DeleteNode(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteConnection(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteFlow(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String DeleteOperation(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final String Query(UserId userId, DataBroker dataBroker, TenantManage tenantManage); static final LinkedHashMap<String,String> conditionTarget(); static final LinkedHashMap<String,String> property(); static final LinkedHashMap<String,String> nodeMultiProperty(); static void ReInit(java.io.InputStream stream); static void ReInit(java.io.InputStream stream, String encoding); static void ReInit(java.io.Reader stream); void ReInit(NEMOparserTokenManager tm); static final Token getNextToken(); static final Token getToken(int index); static ParseException generateParseException(); static final void enable_tracing(); static final void disable_tracing(); static public NEMOparserTokenManager token_source; static public Token token; static public Token jj_nt; }
@Test public void testUpdateConnection() throws Exception { }