Example usage for java.util SortedMap size

List of usage examples for java.util SortedMap size

Introduction

In this page you can find the example usage for java.util SortedMap size.

Prototype

int size();

Source Link

Document

Returns the number of key-value mappings in this map.

Usage

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOCountryLanguageTable.java

public CFAccISOCountryLanguageBuff[] readDerivedByCountryIdx(CFAccAuthorization Authorization,
        short argISOCountryId) {
    final String S_ProcName = "readDerivedByCountryIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgISOCountryLanguageMessageFormatter
                    .formatISOCountryLanguageRqstReadByCountryIdx("\n\t\t\t", argISOCountryId)
            + "\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  .  ja 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<CFAccISOCountryLanguagePKey, ICFAccISOCountryLanguageObj> sortedMap = (SortedMap<CFAccISOCountryLanguagePKey, ICFAccISOCountryLanguageObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccISOCountryLanguageBuff arr[] = new CFAccISOCountryLanguageBuff[sz];
    Iterator<ICFAccISOCountryLanguageObj> iter = sortedMap.values().iterator();
    ICFAccISOCountryLanguageObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccISOCountryLanguageObj) iter.next();
        arr[idx] = cur.getISOCountryLanguageBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOCountryLanguageTable.java

public CFAccISOCountryLanguageBuff[] readDerivedByLanguageIdx(CFAccAuthorization Authorization,
        short argISOLanguageId) {
    final String S_ProcName = "readDerivedByLanguageIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgISOCountryLanguageMessageFormatter
                    .formatISOCountryLanguageRqstReadByLanguageIdx("\n\t\t\t", argISOLanguageId)
            + "\n" + CFAccXMsgSchemaMessageFormatter.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  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<CFAccISOCountryLanguagePKey, ICFAccISOCountryLanguageObj> sortedMap = (SortedMap<CFAccISOCountryLanguagePKey, ICFAccISOCountryLanguageObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccISOCountryLanguageBuff arr[] = new CFAccISOCountryLanguageBuff[sz];
    Iterator<ICFAccISOCountryLanguageObj> iter = sortedMap.values().iterator();
    ICFAccISOCountryLanguageObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccISOCountryLanguageObj) iter.next();
        arr[idx] = cur.getISOCountryLanguageBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOCountryCurrencyTable.java

public CFAstISOCountryCurrencyBuff[] readDerivedByCountryIdx(CFAstAuthorization Authorization,
        short argISOCountryId) {
    final String S_ProcName = "readDerivedByCountryIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryCurrencyMessageFormatter
                    .formatISOCountryCurrencyRqstReadByCountryIdx("\n\t\t\t", argISOCountryId)
            + "\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.ja v 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<CFAstISOCountryCurrencyPKey, ICFAstISOCountryCurrencyObj> sortedMap = (SortedMap<CFAstISOCountryCurrencyPKey, ICFAstISOCountryCurrencyObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstISOCountryCurrencyBuff arr[] = new CFAstISOCountryCurrencyBuff[sz];
    Iterator<ICFAstISOCountryCurrencyObj> iter = sortedMap.values().iterator();
    ICFAstISOCountryCurrencyObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstISOCountryCurrencyObj) iter.next();
        arr[idx] = cur.getISOCountryCurrencyBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOCountryCurrencyTable.java

public CFAstISOCountryCurrencyBuff[] readDerivedByCurrencyIdx(CFAstAuthorization Authorization,
        short argISOCurrencyId) {
    final String S_ProcName = "readDerivedByCurrencyIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryCurrencyMessageFormatter
                    .formatISOCountryCurrencyRqstReadByCurrencyIdx("\n\t\t\t", argISOCurrencyId)
            + "\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 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<CFAstISOCountryCurrencyPKey, ICFAstISOCountryCurrencyObj> sortedMap = (SortedMap<CFAstISOCountryCurrencyPKey, ICFAstISOCountryCurrencyObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstISOCountryCurrencyBuff arr[] = new CFAstISOCountryCurrencyBuff[sz];
    Iterator<ICFAstISOCountryCurrencyObj> iter = sortedMap.values().iterator();
    ICFAstISOCountryCurrencyObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstISOCountryCurrencyObj) iter.next();
        arr[idx] = cur.getISOCountryCurrencyBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOCountryLanguageTable.java

public CFAstISOCountryLanguageBuff[] readDerivedByCountryIdx(CFAstAuthorization Authorization,
        short argISOCountryId) {
    final String S_ProcName = "readDerivedByCountryIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryLanguageMessageFormatter
                    .formatISOCountryLanguageRqstReadByCountryIdx("\n\t\t\t", argISOCountryId)
            + "\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  ava2  s  . co 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<CFAstISOCountryLanguagePKey, ICFAstISOCountryLanguageObj> sortedMap = (SortedMap<CFAstISOCountryLanguagePKey, ICFAstISOCountryLanguageObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstISOCountryLanguageBuff arr[] = new CFAstISOCountryLanguageBuff[sz];
    Iterator<ICFAstISOCountryLanguageObj> iter = sortedMap.values().iterator();
    ICFAstISOCountryLanguageObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstISOCountryLanguageObj) iter.next();
        arr[idx] = cur.getISOCountryLanguageBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientISOCountryLanguageTable.java

public CFAstISOCountryLanguageBuff[] readDerivedByLanguageIdx(CFAstAuthorization Authorization,
        short argISOLanguageId) {
    final String S_ProcName = "readDerivedByLanguageIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryLanguageMessageFormatter
                    .formatISOCountryLanguageRqstReadByLanguageIdx("\n\t\t\t", argISOLanguageId)
            + "\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  . 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<CFAstISOCountryLanguagePKey, ICFAstISOCountryLanguageObj> sortedMap = (SortedMap<CFAstISOCountryLanguagePKey, ICFAstISOCountryLanguageObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstISOCountryLanguageBuff arr[] = new CFAstISOCountryLanguageBuff[sz];
    Iterator<ICFAstISOCountryLanguageObj> iter = sortedMap.values().iterator();
    ICFAstISOCountryLanguageObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstISOCountryLanguageObj) iter.next();
        arr[idx] = cur.getISOCountryLanguageBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientISOCountryCurrencyTable.java

public CFFswISOCountryCurrencyBuff[] readDerivedByCountryIdx(CFFswAuthorization Authorization,
        short argISOCountryId) {
    final String S_ProcName = "readDerivedByCountryIdx";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFFswXMsgISOCountryCurrencyMessageFormatter
                    .formatISOCountryCurrencyRqstReadByCountryIdx("\n\t\t\t", argISOCountryId)
            + "\n" + CFFswXMsgSchemaMessageFormatter.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 a2s . c  o 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<CFFswISOCountryCurrencyPKey, ICFFswISOCountryCurrencyObj> sortedMap = (SortedMap<CFFswISOCountryCurrencyPKey, ICFFswISOCountryCurrencyObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswISOCountryCurrencyBuff arr[] = new CFFswISOCountryCurrencyBuff[sz];
    Iterator<ICFFswISOCountryCurrencyObj> iter = sortedMap.values().iterator();
    ICFFswISOCountryCurrencyObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswISOCountryCurrencyObj) iter.next();
        arr[idx] = cur.getISOCountryCurrencyBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientISOCountryCurrencyTable.java

public CFFswISOCountryCurrencyBuff[] readDerivedByCurrencyIdx(CFFswAuthorization Authorization,
        short argISOCurrencyId) {
    final String S_ProcName = "readDerivedByCurrencyIdx";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFFswXMsgISOCountryCurrencyMessageFormatter
                    .formatISOCountryCurrencyRqstReadByCurrencyIdx("\n\t\t\t", argISOCurrencyId)
            + "\n" + CFFswXMsgSchemaMessageFormatter.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  a2 s .com*/
    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<CFFswISOCountryCurrencyPKey, ICFFswISOCountryCurrencyObj> sortedMap = (SortedMap<CFFswISOCountryCurrencyPKey, ICFFswISOCountryCurrencyObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswISOCountryCurrencyBuff arr[] = new CFFswISOCountryCurrencyBuff[sz];
    Iterator<ICFFswISOCountryCurrencyObj> iter = sortedMap.values().iterator();
    ICFFswISOCountryCurrencyObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswISOCountryCurrencyObj) iter.next();
        arr[idx] = cur.getISOCountryCurrencyBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientHostNodeTable.java

public CFAccHostNodeBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgHostNodeMessageFormatter.formatHostNodeRqstReadAll("\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 .j  a  v a2 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<CFAccHostNodePKey, ICFAccHostNodeObj> sortedMap = (SortedMap<CFAccHostNodePKey, ICFAccHostNodeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccHostNodeBuff arr[] = new CFAccHostNodeBuff[sz];
    Iterator<ICFAccHostNodeObj> iter = sortedMap.values().iterator();
    ICFAccHostNodeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccHostNodeObj) iter.next();
        arr[idx] = cur.getHostNodeBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientHostNodeTable.java

public CFAccHostNodeBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long argClusterId) {
    final String S_ProcName = "readDerivedByClusterIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgHostNodeMessageFormatter.formatHostNodeRqstReadByClusterIdx("\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");
    }//www.  j  av 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<CFAccHostNodePKey, ICFAccHostNodeObj> sortedMap = (SortedMap<CFAccHostNodePKey, ICFAccHostNodeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccHostNodeBuff arr[] = new CFAccHostNodeBuff[sz];
    Iterator<ICFAccHostNodeObj> iter = sortedMap.values().iterator();
    ICFAccHostNodeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccHostNodeObj) iter.next();
        arr[idx] = cur.getHostNodeBuff();
    }
    return (arr);
}