List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientServiceTable.java
public CFAstServiceBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgServiceMessageFormatter.formatServiceRqstReadByClusterIdx("\n\t\t\t", argClusterId) + "\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. j a va 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<CFAstServicePKey, ICFAstServiceObj> sortedMap = (SortedMap<CFAstServicePKey, ICFAstServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAstServiceBuff arr[] = new CFAstServiceBuff[sz]; Iterator<ICFAstServiceObj> iter = sortedMap.values().iterator(); ICFAstServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientServiceTable.java
public CFAstServiceBuff[] readDerivedByTypeIdx(CFAstAuthorization Authorization, int argServiceTypeId) { final String S_ProcName = "readDerivedByTypeIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgServiceMessageFormatter.formatServiceRqstReadByTypeIdx("\n\t\t\t", argServiceTypeId) + "\n" + CFAstXMsgSchemaMessageFormatter.formatRqstXmlPostamble(); String rspn = schema.sendReceive(Authorization, rqst); if ((rspn == null) || (rspn.length() <= 0)) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn"); }/* www . ja v a2 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<CFAstServicePKey, ICFAstServiceObj> sortedMap = (SortedMap<CFAstServicePKey, ICFAstServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAstServiceBuff arr[] = new CFAstServiceBuff[sz]; Iterator<ICFAstServiceObj> iter = sortedMap.values().iterator(); ICFAstServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientServiceTable.java
public CFAccServiceBuff[] readDerivedByHostIdx(CFAccAuthorization Authorization, long argClusterId, long argHostNodeId) { final String S_ProcName = "readDerivedByHostIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgServiceMessageFormatter.formatServiceRqstReadByHostIdx("\n\t\t\t", argClusterId, argHostNodeId) + "\n" + CFAccXMsgSchemaMessageFormatter.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 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<CFAccServicePKey, ICFAccServiceObj> sortedMap = (SortedMap<CFAccServicePKey, ICFAccServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAccServiceBuff arr[] = new CFAccServiceBuff[sz]; Iterator<ICFAccServiceObj> iter = sortedMap.values().iterator(); ICFAccServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientServiceTable.java
public CFAstServiceBuff[] readDerivedByHostIdx(CFAstAuthorization Authorization, long argClusterId, long argHostNodeId) { final String S_ProcName = "readDerivedByHostIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgServiceMessageFormatter.formatServiceRqstReadByHostIdx("\n\t\t\t", argClusterId, argHostNodeId) + "\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 va2 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<CFAstServicePKey, ICFAstServiceObj> sortedMap = (SortedMap<CFAstServicePKey, ICFAstServiceObj>) sortedMapObj; int sz = sortedMap.size(); CFAstServiceBuff arr[] = new CFAstServiceBuff[sz]; Iterator<ICFAstServiceObj> iter = sortedMap.values().iterator(); ICFAstServiceObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstServiceObj) iter.next(); arr[idx] = cur.getServiceBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamAddressTagTable.java
public CFAccAddressTagBuff[] readDerivedByAddressIdx(CFAccAuthorization Authorization, long TenantId, long AddressId) { final String S_ProcName = "CFAccRamAddressTag.readDerivedByAddressIdx() "; CFAccAddressTagByAddressIdxKey key = schema.getFactoryAddressTag().newAddressIdxKey(); key.setRequiredTenantId(TenantId);/*from w ww .j ava 2 s. c om*/ key.setRequiredAddressId(AddressId); CFAccAddressTagBuff[] recArray; if (dictByAddressIdx.containsKey(key)) { SortedMap<CFAccAddressTagPKey, CFAccAddressTagBuff> subdictAddressIdx = dictByAddressIdx.get(key); recArray = new CFAccAddressTagBuff[subdictAddressIdx.size()]; Iterator<CFAccAddressTagBuff> iter = subdictAddressIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccAddressTagBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamContactTagTable.java
public CFAccContactTagBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long TenantId, long ContactId) { final String S_ProcName = "CFAccRamContactTag.readDerivedByContactIdx() "; CFAccContactTagByContactIdxKey key = schema.getFactoryContactTag().newContactIdxKey(); key.setRequiredTenantId(TenantId);// w w w .jav a2 s . c o m key.setRequiredContactId(ContactId); CFAccContactTagBuff[] recArray; if (dictByContactIdx.containsKey(key)) { SortedMap<CFAccContactTagPKey, CFAccContactTagBuff> subdictContactIdx = dictByContactIdx.get(key); recArray = new CFAccContactTagBuff[subdictContactIdx.size()]; Iterator<CFAccContactTagBuff> iter = subdictContactIdx.values().iterator(); int idx = 0; while (iter.hasNext()) { recArray[idx++] = iter.next(); } } else { recArray = new CFAccContactTagBuff[0]; } return (recArray); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupIncludeTable.java
public CFGenKbTSecGroupIncludeBuff[] readAllDerived(CFGenKbAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadAll("\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 www. j a va2 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<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj> sortedMap = (SortedMap<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupIncludeBuff arr[] = new CFGenKbTSecGroupIncludeBuff[sz]; Iterator<ICFGenKbTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupIncludeTable.java
public CFGenKbTSecGroupIncludeBuff[] readDerivedByTenantIdx(CFGenKbAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupIncludeMessageFormatter .formatTSecGroupIncludeRqstReadByTenantIdx("\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.jav a 2 s . com*/ 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<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj> sortedMap = (SortedMap<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupIncludeBuff arr[] = new CFGenKbTSecGroupIncludeBuff[sz]; Iterator<ICFGenKbTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupIncludeTable.java
public CFGenKbTSecGroupIncludeBuff[] readDerivedByGroupIdx(CFGenKbAuthorization Authorization, long argTenantId, int argTSecGroupId) { final String S_ProcName = "readDerivedByGroupIdx"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByGroupIdx("\n\t\t\t", argTenantId, argTSecGroupId) + "\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 a 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<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj> sortedMap = (SortedMap<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupIncludeBuff arr[] = new CFGenKbTSecGroupIncludeBuff[sz]; Iterator<ICFGenKbTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientTSecGroupIncludeTable.java
public CFGenKbTSecGroupIncludeBuff[] readDerivedByIncludeIdx(CFGenKbAuthorization Authorization, long argTenantId, int argIncludeGroupId) { final String S_ProcName = "readDerivedByIncludeIdx"; String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFGenKbXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByIncludeIdx("\n\t\t\t", argTenantId, argIncludeGroupId) + "\n" + CFGenKbXMsgSchemaMessageFormatter.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 va2s . 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<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj> sortedMap = (SortedMap<CFGenKbTSecGroupIncludePKey, ICFGenKbTSecGroupIncludeObj>) sortedMapObj; int sz = sortedMap.size(); CFGenKbTSecGroupIncludeBuff arr[] = new CFGenKbTSecGroupIncludeBuff[sz]; Iterator<ICFGenKbTSecGroupIncludeObj> iter = sortedMap.values().iterator(); ICFGenKbTSecGroupIncludeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFGenKbTSecGroupIncludeObj) iter.next(); arr[idx] = cur.getTSecGroupIncludeBuff(); } return (arr); }