List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientPhoneTagTable.java
public CFAccPhoneTagBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgPhoneTagMessageFormatter.formatPhoneTagRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*w ww . j a v a 2s.c o m*/ CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccPhoneTagPKey, ICFAccPhoneTagObj> sortedMap = (SortedMap<CFAccPhoneTagPKey, ICFAccPhoneTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccPhoneTagBuff arr[] = new CFAccPhoneTagBuff[sz]; Iterator<ICFAccPhoneTagObj> iter = sortedMap.values().iterator(); ICFAccPhoneTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccPhoneTagObj) iter.next(); arr[idx] = cur.getPhoneTagBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOLanguageTable.java
public CFAstISOLanguageBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgISOLanguageMessageFormatter.formatISOLanguageRqstReadAll("\n\t\t\t") + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*from w w w .j a v a 2s.co m*/ CFAstXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAstISOLanguagePKey, ICFAstISOLanguageObj> sortedMap = (SortedMap<CFAstISOLanguagePKey, ICFAstISOLanguageObj>) sortedMapObj; int sz = sortedMap.size(); CFAstISOLanguageBuff arr[] = new CFAstISOLanguageBuff[sz]; Iterator<ICFAstISOLanguageObj> iter = sortedMap.values().iterator(); ICFAstISOLanguageObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstISOLanguageObj) iter.next(); arr[idx] = cur.getISOLanguageBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOLanguageTable.java
public CFAccISOLanguageBuff[] readDerivedByCountryIdx(CFAccAuthorization Authorization, Short argISOCountryId) { final String S_ProcName = "readDerivedByCountryIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgISOLanguageMessageFormatter .formatISOLanguageRqstReadByCountryIdx("\n\t\t\t", argISOCountryId) + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/* w ww. ja va 2 s. c o m*/ CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccISOLanguagePKey, ICFAccISOLanguageObj> sortedMap = (SortedMap<CFAccISOLanguagePKey, ICFAccISOLanguageObj>) sortedMapObj; int sz = sortedMap.size(); CFAccISOLanguageBuff arr[] = new CFAccISOLanguageBuff[sz]; Iterator<ICFAccISOLanguageObj> iter = sortedMap.values().iterator(); ICFAccISOLanguageObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccISOLanguageObj) iter.next(); arr[idx] = cur.getISOLanguageBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSubProjectTable.java
public CFAccSubProjectBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSubProjectMessageFormatter.formatSubProjectRqstReadAll("\n\t\t\t") + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*from ww w. j ava 2 s . com*/ CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSubProjectBuff arr[] = new CFAccSubProjectBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSubProjectTable.java
public CFAccSubProjectBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*from w ww . ja v a 2 s. co m*/ CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSubProjectBuff arr[] = new CFAccSubProjectBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTopProjectTable.java
public CFAccTopProjectBuff[] readDerivedByDomainIdx(CFAccAuthorization Authorization, long argTenantId, long argDomainId) { final String S_ProcName = "readDerivedByDomainIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTopProjectMessageFormatter.formatTopProjectRqstReadByDomainIdx("\n\t\t\t", argTenantId, argDomainId)/*from www. j av a 2 s .c o m*/ + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFAccXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTopProjectBuff arr[] = new CFAccTopProjectBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccTopProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTopProjectObj) iter.next(); arr[idx] = cur.getTopProjectBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOLanguageTable.java
public CFAstISOLanguageBuff[] readDerivedByCountryIdx(CFAstAuthorization Authorization, Short argISOCountryId) { final String S_ProcName = "readDerivedByCountryIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgISOLanguageMessageFormatter .formatISOLanguageRqstReadByCountryIdx("\n\t\t\t", argISOCountryId) + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }//from www.j a va 2 s. com CFAstXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAstISOLanguagePKey, ICFAstISOLanguageObj> sortedMap = (SortedMap<CFAstISOLanguagePKey, ICFAstISOLanguageObj>) sortedMapObj; int sz = sortedMap.size(); CFAstISOLanguageBuff arr[] = new CFAstISOLanguageBuff[sz]; Iterator<ICFAstISOLanguageObj> iter = sortedMap.values().iterator(); ICFAstISOLanguageObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstISOLanguageObj) iter.next(); arr[idx] = cur.getISOLanguageBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSubProjectTable.java
public CFAstSubProjectBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSubProjectMessageFormatter.formatSubProjectRqstReadAll("\n\t\t\t") + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }//from w w w. j a v a 2s . co m CFAstXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSubProjectBuff arr[] = new CFAstSubProjectBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSubProjectTable.java
public CFAstSubProjectBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*from w w w.ja v a 2 s.c om*/ CFAstXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSubProjectBuff arr[] = new CFAstSubProjectBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTopProjectTable.java
public CFAstTopProjectBuff[] readDerivedByDomainIdx(CFAstAuthorization Authorization, long argTenantId, long argDomainId) { final String S_ProcName = "readDerivedByDomainIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTopProjectMessageFormatter.formatTopProjectRqstReadByDomainIdx("\n\t\t\t", argTenantId, argDomainId)//from w w w. j a v a 2s . c om + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } CFAstXMsgRspnHandler responseHandler = schema.getResponseHandler(); responseHandler.parseStringContents(rspn); CFLibRuntimeException exceptionRaised = responseHandler.getExceptionRaised(); if (exceptionRaised != null) { throw exceptionRaised; } Object sortedMapObj = responseHandler.getSortedMapOfObjects(); if (sortedMapObj == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "responseHandler.getSortedMapOfObjects"); } SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTopProjectBuff arr[] = new CFAstTopProjectBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstTopProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTopProjectObj) iter.next(); arr[idx] = cur.getTopProjectBuff(); } return (arr); }