List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientURLProtocolTable.java
public CFAccURLProtocolBuff[] readDerivedByIsSecureIdx(CFAccAuthorization Authorization, boolean argIsSecure) { final String S_ProcName = "readDerivedByIsSecureIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgURLProtocolMessageFormatter.formatURLProtocolRqstReadByIsSecureIdx("\n\t\t\t", argIsSecure)//ww w. j a v a2 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<CFAccURLProtocolPKey, ICFAccURLProtocolObj> sortedMap = (SortedMap<CFAccURLProtocolPKey, ICFAccURLProtocolObj>) sortedMapObj; int sz = sortedMap.size(); CFAccURLProtocolBuff arr[] = new CFAccURLProtocolBuff[sz]; Iterator<ICFAccURLProtocolObj> iter = sortedMap.values().iterator(); ICFAccURLProtocolObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccURLProtocolObj) iter.next(); arr[idx] = cur.getURLProtocolBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientURLProtocolTable.java
public CFAstURLProtocolBuff[] readDerivedByIsSecureIdx(CFAstAuthorization Authorization, boolean argIsSecure) { final String S_ProcName = "readDerivedByIsSecureIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgURLProtocolMessageFormatter.formatURLProtocolRqstReadByIsSecureIdx("\n\t\t\t", argIsSecure)/*from www . ja va 2 s. 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<CFAstURLProtocolPKey, ICFAstURLProtocolObj> sortedMap = (SortedMap<CFAstURLProtocolPKey, ICFAstURLProtocolObj>) sortedMapObj; int sz = sortedMap.size(); CFAstURLProtocolBuff arr[] = new CFAstURLProtocolBuff[sz]; Iterator<ICFAstURLProtocolObj> iter = sortedMap.values().iterator(); ICFAstURLProtocolObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstURLProtocolObj) iter.next(); arr[idx] = cur.getURLProtocolBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecAppTable.java
public CFAccSecAppBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAccRamSecApp.readDerivedByClusterIdx() "; CFAccSecAppByClusterIdxKey key = schema.getFactorySecApp().newClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAccSecAppBuff[] recArray;//from w ww .ja v a2 s. co m if (dictByClusterIdx.containsKey(key)) { SortedMap<CFAccSecAppPKey, CFAccSecAppBuff> subdictClusterIdx = dictByClusterIdx.get(key); recArray = new CFAccSecAppBuff[subdictClusterIdx.size()]; Iterator<CFAccSecAppBuff> iter = subdictClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccSecAppBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamSecAppTable.java
public CFAstSecAppBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFAstRamSecApp.readDerivedByClusterIdx() "; CFAstSecAppByClusterIdxKey key = schema.getFactorySecApp().newClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFAstSecAppBuff[] recArray;/*from ww w .ja v a 2s . co m*/ if (dictByClusterIdx.containsKey(key)) { SortedMap<CFAstSecAppPKey, CFAstSecAppBuff> subdictClusterIdx = dictByClusterIdx.get(key); recArray = new CFAstSecAppBuff[subdictClusterIdx.size()]; Iterator<CFAstSecAppBuff> iter = subdictClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAstSecAppBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupTable.java
public CFGenKbTSecGroupBuff[] readAllDerived(CFGenKbAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupMessageFormatter.formatTSecGroupRqstReadAll("\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 . ja v a2 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<CFGenKbTSecGroupPKey, ICFGenKbTSecGroupObj> sortedMap = (SortedMap<CFGenKbTSecGroupPKey, ICFGenKbTSecGroupObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupBuff arr[] = new CFGenKbTSecGroupBuff[sz]; Iterator<ICFGenKbTSecGroupObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupObj) iter.next(); arr[idx] = cur.getTSecGroupBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupTable.java
public CFGenKbTSecGroupBuff[] readDerivedByTenantIdx(CFGenKbAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupMessageFormatter.formatTSecGroupRqstReadByTenantIdx("\n\t\t\t", argTenantId) + "\n" + CFGenKbXMsgSchemaMessageFormatter.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 2s .c o m 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<CFGenKbTSecGroupPKey, ICFGenKbTSecGroupObj> sortedMap = (SortedMap<CFGenKbTSecGroupPKey, ICFGenKbTSecGroupObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupBuff arr[] = new CFGenKbTSecGroupBuff[sz]; Iterator<ICFGenKbTSecGroupObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupObj) iter.next(); arr[idx] = cur.getTSecGroupBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetRam.CFInternetRamSecAppTable.java
public CFInternetSecAppBuff[] readDerivedByClusterIdx(CFInternetAuthorization Authorization, long ClusterId) { final String S_ProcName = "CFInternetRamSecApp.readDerivedByClusterIdx() "; CFInternetSecAppByClusterIdxKey key = schema.getFactorySecApp().newClusterIdxKey(); key.setRequiredClusterId(ClusterId); CFInternetSecAppBuff[] recArray;/*from w w w .j a v a 2 s. c o m*/ if (dictByClusterIdx.containsKey(key)) { SortedMap<CFInternetSecAppPKey, CFInternetSecAppBuff> subdictClusterIdx = dictByClusterIdx.get(key); recArray = new CFInternetSecAppBuff[subdictClusterIdx.size()]; Iterator<CFInternetSecAppBuff> iter = subdictClusterIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFInternetSecAppBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientContactListTable.java
public CFAccContactListBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgContactListMessageFormatter.formatContactListRqstReadAll("\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 www.ja va 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<CFAccContactListPKey, ICFAccContactListObj> sortedMap = (SortedMap<CFAccContactListPKey, ICFAccContactListObj>) sortedMapObj; int sz = sortedMap.size(); CFAccContactListBuff arr[] = new CFAccContactListBuff[sz]; Iterator<ICFAccContactListObj> iter = sortedMap.values().iterator(); ICFAccContactListObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccContactListObj) iter.next(); arr[idx] = cur.getContactListBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientContactListTable.java
public CFAccContactListBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgContactListMessageFormatter.formatContactListRqstReadByTenantIdx("\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 w w . j a v 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<CFAccContactListPKey, ICFAccContactListObj> sortedMap = (SortedMap<CFAccContactListPKey, ICFAccContactListObj>) sortedMapObj; int sz = sortedMap.size(); CFAccContactListBuff arr[] = new CFAccContactListBuff[sz]; Iterator<ICFAccContactListObj> iter = sortedMap.values().iterator(); ICFAccContactListObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccContactListObj) iter.next(); arr[idx] = cur.getContactListBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamTSecGroupTable.java
public CFAccTSecGroupBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) { final String S_ProcName = "CFAccRamTSecGroup.readDerivedByTenantIdx() "; CFAccTSecGroupByTenantIdxKey key = schema.getFactoryTSecGroup().newTenantIdxKey(); key.setRequiredTenantId(TenantId);//from w w w. j a v a 2s . c o m CFAccTSecGroupBuff[] recArray; if (dictByTenantIdx.containsKey(key)) { SortedMap<CFAccTSecGroupPKey, CFAccTSecGroupBuff> subdictTenantIdx = dictByTenantIdx.get(key); recArray = new CFAccTSecGroupBuff[subdictTenantIdx.size()]; Iterator<CFAccTSecGroupBuff> iter = subdictTenantIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccTSecGroupBuff[0]; } return (recArray); }