List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientMajorVersionTable.java
public CFFswMajorVersionBuff[] readDerivedByPPrjIdx(CFFswAuthorization Authorization, long argTenantId, long argParentProjectId) { final String S_ProcName = "readDerivedByPPrjIdx"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgMajorVersionMessageFormatter .formatMajorVersionRqstReadByPPrjIdx("\n\t\t\t", argTenantId, argParentProjectId) + "\n" + CFFswXMsgSchemaMessageFormatter.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 a va 2 s .c om*/ CFFswXMsgRspnHandler 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<CFFswDomainBasePKey, ICFFswDomainBaseObj> sortedMap = (SortedMap<CFFswDomainBasePKey, ICFFswDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFFswMajorVersionBuff arr[] = new CFFswMajorVersionBuff[sz]; Iterator<ICFFswDomainBaseObj> iter = sortedMap.values().iterator(); ICFFswMajorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswMajorVersionObj) iter.next(); arr[idx] = cur.getMajorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOTimezoneTable.java
public CFAccISOTimezoneBuff[] readDerivedByOffsetIdx(CFAccAuthorization Authorization, short argTZHourOffset, short argTZMinOffset) { final String S_ProcName = "readDerivedByOffsetIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgISOTimezoneMessageFormatter.formatISOTimezoneRqstReadByOffsetIdx("\n\t\t\t", argTZHourOffset, argTZMinOffset) + "\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 .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<CFAccISOTimezonePKey, ICFAccISOTimezoneObj> sortedMap = (SortedMap<CFAccISOTimezonePKey, ICFAccISOTimezoneObj>) sortedMapObj; int sz = sortedMap.size(); CFAccISOTimezoneBuff arr[] = new CFAccISOTimezoneBuff[sz]; Iterator<ICFAccISOTimezoneObj> iter = sortedMap.values().iterator(); ICFAccISOTimezoneObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccISOTimezoneObj) iter.next(); arr[idx] = cur.getISOTimezoneBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOTimezoneTable.java
public CFAstISOTimezoneBuff[] readDerivedByOffsetIdx(CFAstAuthorization Authorization, short argTZHourOffset, short argTZMinOffset) { final String S_ProcName = "readDerivedByOffsetIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgISOTimezoneMessageFormatter.formatISOTimezoneRqstReadByOffsetIdx("\n\t\t\t", argTZHourOffset, argTZMinOffset) + "\n" + CFAstXMsgSchemaMessageFormatter.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 2 s .c o 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<CFAstISOTimezonePKey, ICFAstISOTimezoneObj> sortedMap = (SortedMap<CFAstISOTimezonePKey, ICFAstISOTimezoneObj>) sortedMapObj; int sz = sortedMap.size(); CFAstISOTimezoneBuff arr[] = new CFAstISOTimezoneBuff[sz]; Iterator<ICFAstISOTimezoneObj> iter = sortedMap.values().iterator(); ICFAstISOTimezoneObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstISOTimezoneObj) iter.next(); arr[idx] = cur.getISOTimezoneBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamTenantTable.java
public CFAstTenantBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAstRamTenant.readDerivedByClusterIdx() "; CFAstTenantByClusterIdxKey key = schema.getFactoryTenant().newClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAstTenantBuff[] recArray;// w ww . j a va 2s. c o m if (dictByClusterIdx.containsKey(key)) { SortedMap<CFAstTenantPKey, CFAstTenantBuff> subdictClusterIdx = dictByClusterIdx.get(key); recArray = new CFAstTenantBuff[subdictClusterIdx.size()]; Iterator<CFAstTenantBuff> iter = subdictClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstTenantBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientFSSFDialerTable.java
public CFFswFSSFDialerBuff[] readAllDerived(CFFswAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgFSSFDialerMessageFormatter.formatFSSFDialerRqstReadAll("\n\t\t\t") + "\n" + CFFswXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }//from www .jav a2s . c o m CFFswXMsgRspnHandler 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<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj> sortedMap = (SortedMap<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj>) sortedMapObj; int sz = sortedMap.size(); CFFswFSSFDialerBuff arr[] = new CFFswFSSFDialerBuff[sz]; Iterator<ICFFswFSSFDialerObj> iter = sortedMap.values().iterator(); ICFFswFSSFDialerObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswFSSFDialerObj) iter.next(); arr[idx] = cur.getFSSFDialerBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientFSSFDialerTable.java
public CFFswFSSFDialerBuff[] readDerivedByTenantIdx(CFFswAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgFSSFDialerMessageFormatter.formatFSSFDialerRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFFswXMsgSchemaMessageFormatter.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 . jav a 2s . c om*/ CFFswXMsgRspnHandler 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<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj> sortedMap = (SortedMap<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj>) sortedMapObj; int sz = sortedMap.size(); CFFswFSSFDialerBuff arr[] = new CFFswFSSFDialerBuff[sz]; Iterator<ICFFswFSSFDialerObj> iter = sortedMap.values().iterator(); ICFFswFSSFDialerObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswFSSFDialerObj) iter.next(); arr[idx] = cur.getFSSFDialerBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamISOLanguageTable.java
public CFAccISOLanguageBuff[] readDerivedByBaseIdx(CFAccAuthorization Authorization, String BaseLanguageCode) { final String S_ProcName = "CFAccRamISOLanguage.readDerivedByBaseIdx() "; CFAccISOLanguageByBaseIdxKey key = schema.getFactoryISOLanguage().newBaseIdxKey(); key.setRequiredBaseLanguageCode(BaseLanguageCode); CFAccISOLanguageBuff[] recArray;//from w w w.j av a 2 s .c om if (dictByBaseIdx.containsKey(key)) { SortedMap<CFAccISOLanguagePKey, CFAccISOLanguageBuff> subdictBaseIdx = dictByBaseIdx.get(key); recArray = new CFAccISOLanguageBuff[subdictBaseIdx.size()]; Iterator<CFAccISOLanguageBuff> iter = subdictBaseIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccISOLanguageBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAddressTagTable.java
public CFAccAddressTagBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAddressTagMessageFormatter.formatAddressTagRqstReadAll("\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 w w w. j av 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<CFAccAddressTagPKey, ICFAccAddressTagObj> sortedMap = (SortedMap<CFAccAddressTagPKey, ICFAccAddressTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAddressTagBuff arr[] = new CFAccAddressTagBuff[sz]; Iterator<ICFAccAddressTagObj> iter = sortedMap.values().iterator(); ICFAccAddressTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAddressTagObj) iter.next(); arr[idx] = cur.getAddressTagBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientAddressTagTable.java
public CFAccAddressTagBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgAddressTagMessageFormatter.formatAddressTagRqstReadByTenantIdx("\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 av a 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<CFAccAddressTagPKey, ICFAccAddressTagObj> sortedMap = (SortedMap<CFAccAddressTagPKey, ICFAccAddressTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccAddressTagBuff arr[] = new CFAccAddressTagBuff[sz]; Iterator<ICFAccAddressTagObj> iter = sortedMap.values().iterator(); ICFAccAddressTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccAddressTagObj) iter.next(); arr[idx] = cur.getAddressTagBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientContactTagTable.java
public CFAccContactTagBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgContactTagMessageFormatter.formatContactTagRqstReadAll("\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 w ww . j av a2s .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<CFAccContactTagPKey, ICFAccContactTagObj> sortedMap = (SortedMap<CFAccContactTagPKey, ICFAccContactTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccContactTagBuff arr[] = new CFAccContactTagBuff[sz]; Iterator<ICFAccContactTagObj> iter = sortedMap.values().iterator(); ICFAccContactTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccContactTagObj) iter.next(); arr[idx] = cur.getContactTagBuff(); } return (arr); }