List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientExtensionsConfTable.java
public CFAstExtensionsConfBuff[] readDerivedByExtClusterIdx(CFAstAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByExtClusterIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgExtensionsConfMessageFormatter.formatExtensionsConfRqstReadByExtClusterIdx("\n\t\t\t", argClusterId)//from w w w .j a v a2s.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<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj> sortedMap = (SortedMap<CFAstConfigurationFilePKey, ICFAstConfigurationFileObj>) sortedMapObj; int sz = sortedMap.size(); CFAstExtensionsConfBuff arr[] = new CFAstExtensionsConfBuff[sz]; Iterator<ICFAstConfigurationFileObj> iter = sortedMap.values().iterator(); ICFAstExtensionsConfObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstExtensionsConfObj) iter.next(); arr[idx] = cur.getExtensionsConfBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecGroupMemberTable.java
public CFAstSecGroupMemberBuff[] readDerivedByGroupIdx(CFAstAuthorization Authorization, long argClusterId, int argSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecGroupMemberMessageFormatter.formatSecGroupMemberRqstReadByGroupIdx("\n\t\t\t", argClusterId, argSecGroupId) + "\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 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<CFAstSecGroupMemberPKey, ICFAstSecGroupMemberObj> sortedMap = (SortedMap<CFAstSecGroupMemberPKey, ICFAstSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecGroupMemberBuff arr[] = new CFAstSecGroupMemberBuff[sz]; Iterator<ICFAstSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAstSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecGroupMemberObj) iter.next(); arr[idx] = cur.getSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTSecGroupMemberTable.java
public CFAccTSecGroupMemberBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadAll("\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"); }/* w ww .j a 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<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj> sortedMap = (SortedMap<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTSecGroupMemberBuff arr[] = new CFAccTSecGroupMemberBuff[sz]; Iterator<ICFAccTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAccTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTSecGroupMemberTable.java
public CFAstTSecGroupMemberBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadAll("\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"); }// w w w . java 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<CFAstTSecGroupMemberPKey, ICFAstTSecGroupMemberObj> sortedMap = (SortedMap<CFAstTSecGroupMemberPKey, ICFAstTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTSecGroupMemberBuff arr[] = new CFAstTSecGroupMemberBuff[sz]; Iterator<ICFAstTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAstTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTSecGroupMemberTable.java
public CFAccTSecGroupMemberBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadByTenantIdx("\n\t\t\t", argTenantId)/*from ww w .j a v a 2 s. co 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<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj> sortedMap = (SortedMap<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTSecGroupMemberBuff arr[] = new CFAccTSecGroupMemberBuff[sz]; Iterator<ICFAccTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAccTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTSecGroupMemberTable.java
public CFAccTSecGroupMemberBuff[] readDerivedByUserIdx(CFAccAuthorization Authorization, UUID argSecUserId) { final String S_ProcName = "readDerivedByUserIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadByUserIdx("\n\t\t\t", argSecUserId)//from ww w .j a v a2 s . com + "\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<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj> sortedMap = (SortedMap<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTSecGroupMemberBuff arr[] = new CFAccTSecGroupMemberBuff[sz]; Iterator<ICFAccTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAccTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTSecGroupMemberTable.java
public CFAstTSecGroupMemberBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadByTenantIdx("\n\t\t\t", argTenantId)//from ww w . j a v a 2 s . 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<CFAstTSecGroupMemberPKey, ICFAstTSecGroupMemberObj> sortedMap = (SortedMap<CFAstTSecGroupMemberPKey, ICFAstTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTSecGroupMemberBuff arr[] = new CFAstTSecGroupMemberBuff[sz]; Iterator<ICFAstTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAstTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientTSecGroupMemberTable.java
public CFAstTSecGroupMemberBuff[] readDerivedByUserIdx(CFAstAuthorization Authorization, UUID argSecUserId) { final String S_ProcName = "readDerivedByUserIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadByUserIdx("\n\t\t\t", argSecUserId)/*from w w w. j ava2s. co 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<CFAstTSecGroupMemberPKey, ICFAstTSecGroupMemberObj> sortedMap = (SortedMap<CFAstTSecGroupMemberPKey, ICFAstTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAstTSecGroupMemberBuff arr[] = new CFAstTSecGroupMemberBuff[sz]; Iterator<ICFAstTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAstTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamMemoTagTable.java
public CFAccMemoTagBuff[] readDerivedByTagIdx(CFAccAuthorization Authorization, long TenantId, long TagId) { final String S_ProcName = "CFAccRamMemoTag.readDerivedByTagIdx() "; CFAccMemoTagByTagIdxKey key = schema.getFactoryMemoTag().newTagIdxKey(); key.setRequiredTenantId(TenantId);//w ww .ja v a 2s . c o m key.setRequiredTagId(TagId); CFAccMemoTagBuff[] recArray; if (dictByTagIdx.containsKey(key)) { SortedMap<CFAccMemoTagPKey, CFAccMemoTagBuff> subdictTagIdx = dictByTagIdx.get(key); recArray = new CFAccMemoTagBuff[subdictTagIdx.size()]; Iterator<CFAccMemoTagBuff> iter = subdictTagIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccMemoTagBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientTSecGroupMemberTable.java
public CFAccTSecGroupMemberBuff[] readDerivedByGroupIdx(CFAccAuthorization Authorization, long argTenantId, int argTSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgTSecGroupMemberMessageFormatter.formatTSecGroupMemberRqstReadByGroupIdx("\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"); }//w w w . 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<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj> sortedMap = (SortedMap<CFAccTSecGroupMemberPKey, ICFAccTSecGroupMemberObj>) sortedMapObj; int sz = sortedMap.size(); CFAccTSecGroupMemberBuff arr[] = new CFAccTSecGroupMemberBuff[sz]; Iterator<ICFAccTSecGroupMemberObj> iter = sortedMap.values().iterator(); ICFAccTSecGroupMemberObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccTSecGroupMemberObj) iter.next(); arr[idx] = cur.getTSecGroupMemberBuff(); } return (arr); }