List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTSecGroupIncludeTable.java
public CFAstTSecGroupIncludeBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByTenantIdx("\n\t\t\t", argTenantId)//from w w w .j av a 2s . c o m + "\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<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj> sortedMap = (SortedMap<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTSecGroupIncludeBuff arr[] = new CFAstTSecGroupIncludeBuff[sz]; Iterator<ICFAstTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFAstTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientTSecGroupIncludeTable.java
public CFFswTSecGroupIncludeBuff[] readDerivedByTenantIdx(CFFswAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByTenantIdx("\n\t\t\t", argTenantId)//ww w . j a v a2 s. co m + "\n" + CFFswXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); } 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<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj> sortedMap = (SortedMap<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFFswTSecGroupIncludeBuff arr[] = new CFFswTSecGroupIncludeBuff[sz]; Iterator<ICFFswTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFFswTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTSecGroupIncludeTable.java
public CFAccTSecGroupIncludeBuff[] readDerivedByGroupIdx(CFAccAuthorization Authorization, long argTenantId, int argTSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByGroupIdx("\n\t\t\t", argTenantId, argTSecGroupId) + "\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 a v a 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<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj> sortedMap = (SortedMap<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTSecGroupIncludeBuff arr[] = new CFAccTSecGroupIncludeBuff[sz]; Iterator<ICFAccTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFAccTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTSecGroupIncludeTable.java
public CFAccTSecGroupIncludeBuff[] readDerivedByIncludeIdx(CFAccAuthorization Authorization, long argTenantId, int argIncludeGroupId) { final String S_ProcName = "readDerivedByIncludeIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByIncludeIdx("\n\t\t\t", argTenantId, argIncludeGroupId) + "\n" + CFAccXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/* www . j a v a 2 s . c om*/ 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<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj> sortedMap = (SortedMap<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTSecGroupIncludeBuff arr[] = new CFAccTSecGroupIncludeBuff[sz]; Iterator<ICFAccTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFAccTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTSecGroupIncludeTable.java
public CFAstTSecGroupIncludeBuff[] readDerivedByGroupIdx(CFAstAuthorization Authorization, long argTenantId, int argTSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByGroupIdx("\n\t\t\t", argTenantId, argTSecGroupId) + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/*ww w .j a v a2 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<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj> sortedMap = (SortedMap<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTSecGroupIncludeBuff arr[] = new CFAstTSecGroupIncludeBuff[sz]; Iterator<ICFAstTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFAstTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTSecGroupIncludeTable.java
public CFAstTSecGroupIncludeBuff[] readDerivedByIncludeIdx(CFAstAuthorization Authorization, long argTenantId, int argIncludeGroupId) { final String S_ProcName = "readDerivedByIncludeIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByIncludeIdx("\n\t\t\t", argTenantId, argIncludeGroupId) + "\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 .ja va 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<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj> sortedMap = (SortedMap<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTSecGroupIncludeBuff arr[] = new CFAstTSecGroupIncludeBuff[sz]; Iterator<ICFAstTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFAstTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientTSecGroupIncludeTable.java
public CFFswTSecGroupIncludeBuff[] readDerivedByGroupIdx(CFFswAuthorization Authorization, long argTenantId, int argTSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByGroupIdx("\n\t\t\t", argTenantId, argTSecGroupId) + "\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 w w . j av a 2 s. com 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<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj> sortedMap = (SortedMap<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFFswTSecGroupIncludeBuff arr[] = new CFFswTSecGroupIncludeBuff[sz]; Iterator<ICFFswTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFFswTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientTSecGroupIncludeTable.java
public CFFswTSecGroupIncludeBuff[] readDerivedByIncludeIdx(CFFswAuthorization Authorization, long argTenantId, int argIncludeGroupId) { final String S_ProcName = "readDerivedByIncludeIdx"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByIncludeIdx("\n\t\t\t", argTenantId, argIncludeGroupId) + "\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. j a v a 2 s . 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<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj> sortedMap = (SortedMap<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFFswTSecGroupIncludeBuff arr[] = new CFFswTSecGroupIncludeBuff[sz]; Iterator<ICFFswTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFFswTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupMemberTable.java
public CFGenKbTSecGroupMemberBuff[] readAllDerived(CFGenKbAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadAll("\n\t\t\t") + "\n" + CFGenKbXMsgSchemaMessageFormatter.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 ava 2 s .c om CFGenKbXMsgRspnHandler 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<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj> sortedMap = (SortedMap<CFGenKbTSecGroupMemberPKey, ICFGenKbTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupMemberBuff arr[] = new CFGenKbTSecGroupMemberBuff[sz]; Iterator<ICFGenKbTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAddressTagTable.java
public CFAccAddressTagBuff[] readDerivedByTagIdx(CFAccAuthorization Authorization, long TenantId, long TagId) { final String S_ProcName = "CFAccRamAddressTag.readDerivedByTagIdx() "; CFAccAddressTagByTagIdxKey key = schema.getFactoryAddressTag().newTagIdxKey(); key.setRequiredTenantId(TenantId);//ww w. j a v a2 s .c o m key.setRequiredTagId(TagId); CFAccAddressTagBuff[] recArray; if (dictByTagIdx.containsKey(key)) { SortedMap<CFAccAddressTagPKey, CFAccAddressTagBuff> subdictTagIdx = dictByTagIdx.get(key); recArray = new CFAccAddressTagBuff[subdictTagIdx.size()]; Iterator<CFAccAddressTagBuff> iter = subdictTagIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAddressTagBuff[0]; } return (recArray); }