List of usage examples for java.util SortedMap size
int size();
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientHostNodeTable.java
public CFAstHostNodeBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgHostNodeMessageFormatter.formatHostNodeRqstReadAll("\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 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<CFAstHostNodePKey, ICFAstHostNodeObj> sortedMap = (SortedMap<CFAstHostNodePKey, ICFAstHostNodeObj>) sortedMapObj; int sz = sortedMap.size(); CFAstHostNodeBuff arr[] = new CFAstHostNodeBuff[sz]; Iterator<ICFAstHostNodeObj> iter = sortedMap.values().iterator(); ICFAstHostNodeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstHostNodeObj) iter.next(); arr[idx] = cur.getHostNodeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientHostNodeTable.java
public CFAstHostNodeBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgHostNodeMessageFormatter.formatHostNodeRqstReadByClusterIdx("\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"); }//from ww 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<CFAstHostNodePKey, ICFAstHostNodeObj> sortedMap = (SortedMap<CFAstHostNodePKey, ICFAstHostNodeObj>) sortedMapObj; int sz = sortedMap.size(); CFAstHostNodeBuff arr[] = new CFAstHostNodeBuff[sz]; Iterator<ICFAstHostNodeObj> iter = sortedMap.values().iterator(); ICFAstHostNodeObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstHostNodeObj) iter.next(); arr[idx] = cur.getHostNodeBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecFormTable.java
public CFAccSecFormBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecFormMessageFormatter.formatSecFormRqstReadAll("\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 v a2s. 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<CFAccSecFormPKey, ICFAccSecFormObj> sortedMap = (SortedMap<CFAccSecFormPKey, ICFAccSecFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecFormBuff arr[] = new CFAccSecFormBuff[sz]; Iterator<ICFAccSecFormObj> iter = sortedMap.values().iterator(); ICFAccSecFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecFormObj) iter.next(); arr[idx] = cur.getSecFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecFormTable.java
public CFAccSecFormBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecFormMessageFormatter.formatSecFormRqstReadByClusterIdx("\n\t\t\t", argClusterId) + "\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 . j ava2 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<CFAccSecFormPKey, ICFAccSecFormObj> sortedMap = (SortedMap<CFAccSecFormPKey, ICFAccSecFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecFormBuff arr[] = new CFAccSecFormBuff[sz]; Iterator<ICFAccSecFormObj> iter = sortedMap.values().iterator(); ICFAccSecFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecFormObj) iter.next(); arr[idx] = cur.getSecFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecFormTable.java
public CFAstSecFormBuff[] readAllDerived(CFAstAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecFormMessageFormatter.formatSecFormRqstReadAll("\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 . jav 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<CFAstSecFormPKey, ICFAstSecFormObj> sortedMap = (SortedMap<CFAstSecFormPKey, ICFAstSecFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecFormBuff arr[] = new CFAstSecFormBuff[sz]; Iterator<ICFAstSecFormObj> iter = sortedMap.values().iterator(); ICFAstSecFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecFormObj) iter.next(); arr[idx] = cur.getSecFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecFormTable.java
public CFAstSecFormBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long argClusterId) { final String S_ProcName = "readDerivedByClusterIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecFormMessageFormatter.formatSecFormRqstReadByClusterIdx("\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 .ja 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<CFAstSecFormPKey, ICFAstSecFormObj> sortedMap = (SortedMap<CFAstSecFormPKey, ICFAstSecFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecFormBuff arr[] = new CFAstSecFormBuff[sz]; Iterator<ICFAstSecFormObj> iter = sortedMap.values().iterator(); ICFAstSecFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecFormObj) iter.next(); arr[idx] = cur.getSecFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMemoTagTable.java
public CFAccMemoTagBuff[] readAllDerived(CFAccAuthorization Authorization) { final String S_ProcName = "readAllDerived"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoTagMessageFormatter.formatMemoTagRqstReadAll("\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 w w.jav a2 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<CFAccMemoTagPKey, ICFAccMemoTagObj> sortedMap = (SortedMap<CFAccMemoTagPKey, ICFAccMemoTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoTagBuff arr[] = new CFAccMemoTagBuff[sz]; Iterator<ICFAccMemoTagObj> iter = sortedMap.values().iterator(); ICFAccMemoTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoTagObj) iter.next(); arr[idx] = cur.getMemoTagBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientMemoTagTable.java
public CFAccMemoTagBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) { final String S_ProcName = "readDerivedByTenantIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgMemoTagMessageFormatter.formatMemoTagRqstReadByTenantIdx("\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 . 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<CFAccMemoTagPKey, ICFAccMemoTagObj> sortedMap = (SortedMap<CFAccMemoTagPKey, ICFAccMemoTagObj>) sortedMapObj; int sz = sortedMap.size(); CFAccMemoTagBuff arr[] = new CFAccMemoTagBuff[sz]; Iterator<ICFAccMemoTagObj> iter = sortedMap.values().iterator(); ICFAccMemoTagObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccMemoTagObj) iter.next(); arr[idx] = cur.getMemoTagBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecFormTable.java
public CFAccSecFormBuff[] readDerivedBySecAppIdx(CFAccAuthorization Authorization, long argClusterId, int argSecAppId) { final String S_ProcName = "readDerivedBySecAppIdx"; String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAccXMsgSecFormMessageFormatter.formatSecFormRqstReadBySecAppIdx("\n\t\t\t", argClusterId, argSecAppId) + "\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 a2 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<CFAccSecFormPKey, ICFAccSecFormObj> sortedMap = (SortedMap<CFAccSecFormPKey, ICFAccSecFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAccSecFormBuff arr[] = new CFAccSecFormBuff[sz]; Iterator<ICFAccSecFormObj> iter = sortedMap.values().iterator(); ICFAccSecFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAccSecFormObj) iter.next(); arr[idx] = cur.getSecFormBuff(); } return (arr); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecFormTable.java
public CFAstSecFormBuff[] readDerivedBySecAppIdx(CFAstAuthorization Authorization, long argClusterId, int argSecAppId) { final String S_ProcName = "readDerivedBySecAppIdx"; String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t" + CFAstXMsgSecFormMessageFormatter.formatSecFormRqstReadBySecAppIdx("\n\t\t\t", argClusterId, argSecAppId) + "\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<CFAstSecFormPKey, ICFAstSecFormObj> sortedMap = (SortedMap<CFAstSecFormPKey, ICFAstSecFormObj>) sortedMapObj; int sz = sortedMap.size(); CFAstSecFormBuff arr[] = new CFAstSecFormBuff[sz]; Iterator<ICFAstSecFormObj> iter = sortedMap.values().iterator(); ICFAstSecFormObj cur; for (int idx = 0; idx < sz; idx++) { cur = (ICFAstSecFormObj) iter.next(); arr[idx] = cur.getSecFormBuff(); } return (arr); }