List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientMinorVersionTable.java
public CFAstMinorVersionBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadAll("\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 ww .j ava2s. 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstMinorVersionBuff arr[] = new CFAstMinorVersionBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSubProjectTable.java
public CFAstSubProjectBuff[] readDerivedByParentIdx(CFAstAuthorization Authorization, long argTenantId, long argParentProjectId) { final String S_ProcName = "readDerivedByParentIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByParentIdx("\n\t\t\t", argTenantId, argParentProjectId) + "\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 ww. j av a 2s. 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSubProjectBuff arr[] = new CFAstSubProjectBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstSubProjectObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSubProjectObj) iter.next(); arr[idx] = cur.getSubProjectBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMinorVersionTable.java
public CFAccMinorVersionBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadByTenantIdx("\n\t\t\t", argTenantId)//from w ww . j a va2 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMinorVersionBuff arr[] = new CFAccMinorVersionBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecSessionTable.java
public CFAccSecSessionBuff[] readDerivedByFinishIdx(CFAccAuthorization Authorization, UUID argSecUserId, Calendar argFinish) {/*from ww w .jav a 2 s. c o m*/ final String S_ProcName = "readDerivedByFinishIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadByFinishIdx("\n\t\t\t", argSecUserId, argFinish) + "\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<CFAccSecSessionPKey, ICFAccSecSessionObj> sortedMap = (SortedMap<CFAccSecSessionPKey, ICFAccSecSessionObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecSessionBuff arr[] = new CFAccSecSessionBuff[sz]; Iterator<ICFAccSecSessionObj> iter = sortedMap.values().iterator(); ICFAccSecSessionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecSessionObj) iter.next(); arr[idx] = cur.getSecSessionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientMinorVersionTable.java
public CFAstMinorVersionBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadByTenantIdx("\n\t\t\t", argTenantId)// w w w . ja v a2 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstMinorVersionBuff arr[] = new CFAstMinorVersionBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecSessionTable.java
public CFAstSecSessionBuff[] readDerivedByFinishIdx(CFAstAuthorization Authorization, UUID argSecUserId, Calendar argFinish) {/*from w ww . j a v a 2 s . co m*/ final String S_ProcName = "readDerivedByFinishIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecSessionMessageFormatter.formatSecSessionRqstReadByFinishIdx("\n\t\t\t", argSecUserId, argFinish) + "\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<CFAstSecSessionPKey, ICFAstSecSessionObj> sortedMap = (SortedMap<CFAstSecSessionPKey, ICFAstSecSessionObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecSessionBuff arr[] = new CFAstSecSessionBuff[sz]; Iterator<ICFAstSecSessionObj> iter = sortedMap.values().iterator(); ICFAstSecSessionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecSessionObj) iter.next(); arr[idx] = cur.getSecSessionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMajorVersionTable.java
public CFAccMajorVersionBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMajorVersionMessageFormatter.formatMajorVersionRqstReadAll("\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 .ja 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMajorVersionBuff arr[] = new CFAccMajorVersionBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccMajorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMajorVersionObj) iter.next(); arr[idx] = cur.getMajorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMinorVersionTable.java
public CFAccMinorVersionBuff[] readDerivedByMajorIdx(CFAccAuthorization Authorization, long argTenantId, long argMajorId) { final String S_ProcName = "readDerivedByMajorIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMinorVersionMessageFormatter .formatMinorVersionRqstReadByMajorIdx("\n\t\t\t", argTenantId, argMajorId) + "\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 .j a va 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMinorVersionBuff arr[] = new CFAccMinorVersionBuff[sz]; Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator(); ICFAccMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientMajorVersionTable.java
public CFAstMajorVersionBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgMajorVersionMessageFormatter.formatMajorVersionRqstReadAll("\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"); }//from ww w . ja 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstMajorVersionBuff arr[] = new CFAstMajorVersionBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstMajorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstMajorVersionObj) iter.next(); arr[idx] = cur.getMajorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientMinorVersionTable.java
public CFAstMinorVersionBuff[] readDerivedByMajorIdx(CFAstAuthorization Authorization, long argTenantId, long argMajorId) { final String S_ProcName = "readDerivedByMajorIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgMinorVersionMessageFormatter .formatMinorVersionRqstReadByMajorIdx("\n\t\t\t", argTenantId, argMajorId) + "\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 . ja 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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFAstMinorVersionBuff arr[] = new CFAstMinorVersionBuff[sz]; Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator(); ICFAstMinorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstMinorVersionObj) iter.next(); arr[idx] = cur.getMinorVersionBuff(); } return (arr); }