List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientMajorVersionTable.java
public CFFswMajorVersionBuff[] readAllDerived(CFFswAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgMajorVersionMessageFormatter.formatMajorVersionRqstReadAll("\n\t\t\t") + "\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 ww . java 2s .co 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<CFFswDomainBasePKey, ICFFswDomainBaseObj> sortedMap = (SortedMap<CFFswDomainBasePKey, ICFFswDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFFswMajorVersionBuff arr[] = new CFFswMajorVersionBuff[sz]; Iterator<ICFFswDomainBaseObj> iter = sortedMap.values().iterator(); ICFFswMajorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswMajorVersionObj) iter.next(); arr[idx] = cur.getMajorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMajorVersionTable.java
public CFAccMajorVersionBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMajorVersionMessageFormatter.formatMajorVersionRqstReadByTenantIdx("\n\t\t\t", argTenantId)// w w w .j a va2 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<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.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientMajorVersionTable.java
public CFAstMajorVersionBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgMajorVersionMessageFormatter.formatMajorVersionRqstReadByTenantIdx("\n\t\t\t", argTenantId)/*from w w w . j av 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<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.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientMajorVersionTable.java
public CFFswMajorVersionBuff[] readDerivedByTenantIdx(CFFswAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFFswXMsgMajorVersionMessageFormatter.formatMajorVersionRqstReadByTenantIdx("\n\t\t\t", argTenantId)/*from www . ja va2s .com*/ + "\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<CFFswDomainBasePKey, ICFFswDomainBaseObj> sortedMap = (SortedMap<CFFswDomainBasePKey, ICFFswDomainBaseObj>) sortedMapObj; int sz = sortedMap.size(); CFFswMajorVersionBuff arr[] = new CFFswMajorVersionBuff[sz]; Iterator<ICFFswDomainBaseObj> iter = sortedMap.values().iterator(); ICFFswMajorVersionObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFFswMajorVersionObj) iter.next(); arr[idx] = cur.getMajorVersionBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOTimezoneTable.java
public CFAccISOTimezoneBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgISOTimezoneMessageFormatter.formatISOTimezoneRqstReadAll("\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 . j a v a 2s .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<CFAccISOTimezonePKey, ICFAccISOTimezoneObj> sortedMap = (SortedMap<CFAccISOTimezonePKey, ICFAccISOTimezoneObj>) sortedMapObj; int sz = sortedMap.size(); CFAccISOTimezoneBuff arr[] = new CFAccISOTimezoneBuff[sz]; Iterator<ICFAccISOTimezoneObj> iter = sortedMap.values().iterator(); ICFAccISOTimezoneObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccISOTimezoneObj) iter.next(); arr[idx] = cur.getISOTimezoneBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOTimezoneTable.java
public CFAccISOTimezoneBuff[] readDerivedByIso8601Idx(CFAccAuthorization Authorization, String argIso8601) { final String S_ProcName = "readDerivedByIso8601Idx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgISOTimezoneMessageFormatter.formatISOTimezoneRqstReadByIso8601Idx("\n\t\t\t", argIso8601) + "\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 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<CFAccISOTimezonePKey, ICFAccISOTimezoneObj> sortedMap = (SortedMap<CFAccISOTimezonePKey, ICFAccISOTimezoneObj>) sortedMapObj; int sz = sortedMap.size(); CFAccISOTimezoneBuff arr[] = new CFAccISOTimezoneBuff[sz]; Iterator<ICFAccISOTimezoneObj> iter = sortedMap.values().iterator(); ICFAccISOTimezoneObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccISOTimezoneObj) iter.next(); arr[idx] = cur.getISOTimezoneBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMajorVersionTable.java
public CFAccMajorVersionBuff[] readDerivedByPPrjIdx(CFAccAuthorization Authorization, long argTenantId, long argParentProjectId) { final String S_ProcName = "readDerivedByPPrjIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMajorVersionMessageFormatter .formatMajorVersionRqstReadByPPrjIdx("\n\t\t\t", argTenantId, argParentProjectId) + "\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 v a 2s .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<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.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOTimezoneTable.java
public CFAstISOTimezoneBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgISOTimezoneMessageFormatter.formatISOTimezoneRqstReadAll("\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"); }/* www. 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<CFAstISOTimezonePKey, ICFAstISOTimezoneObj> sortedMap = (SortedMap<CFAstISOTimezonePKey, ICFAstISOTimezoneObj>) sortedMapObj; int sz = sortedMap.size(); CFAstISOTimezoneBuff arr[] = new CFAstISOTimezoneBuff[sz]; Iterator<ICFAstISOTimezoneObj> iter = sortedMap.values().iterator(); ICFAstISOTimezoneObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstISOTimezoneObj) iter.next(); arr[idx] = cur.getISOTimezoneBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOTimezoneTable.java
public CFAstISOTimezoneBuff[] readDerivedByIso8601Idx(CFAstAuthorization Authorization, String argIso8601) { final String S_ProcName = "readDerivedByIso8601Idx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgISOTimezoneMessageFormatter.formatISOTimezoneRqstReadByIso8601Idx("\n\t\t\t", argIso8601) + "\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 av 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<CFAstISOTimezonePKey, ICFAstISOTimezoneObj> sortedMap = (SortedMap<CFAstISOTimezonePKey, ICFAstISOTimezoneObj>) sortedMapObj; int sz = sortedMap.size(); CFAstISOTimezoneBuff arr[] = new CFAstISOTimezoneBuff[sz]; Iterator<ICFAstISOTimezoneObj> iter = sortedMap.values().iterator(); ICFAstISOTimezoneObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstISOTimezoneObj) iter.next(); arr[idx] = cur.getISOTimezoneBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientMajorVersionTable.java
public CFAstMajorVersionBuff[] readDerivedByPPrjIdx(CFAstAuthorization Authorization, long argTenantId, long argParentProjectId) { final String S_ProcName = "readDerivedByPPrjIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgMajorVersionMessageFormatter .formatMajorVersionRqstReadByPPrjIdx("\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 w w . j av 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<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); }