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.cfcrm.v2_0.CFCrmXMsgClient.CFCrmXMsgClientMinorVersionTable.java

public CFCrmMinorVersionBuff[] readAllDerived(CFCrmAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadAll("\n\t\t\t") + "\n"
            + CFCrmXMsgSchemaMessageFormatter.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 om
    CFCrmXMsgRspnHandler 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<CFCrmDomainBasePKey, ICFCrmDomainBaseObj> sortedMap = (SortedMap<CFCrmDomainBasePKey, ICFCrmDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFCrmMinorVersionBuff arr[] = new CFCrmMinorVersionBuff[sz];
    Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator();
    ICFCrmMinorVersionObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFCrmMinorVersionObj) iter.next();
        arr[idx] = cur.getMinorVersionBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmXMsgClient.CFCrmXMsgClientMinorVersionTable.java

public CFCrmMinorVersionBuff[] readDerivedByTenantIdx(CFCrmAuthorization Authorization, long argTenantId) {
    final String S_ProcName = "readDerivedByTenantIdx";
    String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFCrmXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadByTenantIdx("\n\t\t\t",
                    argTenantId)/*  w  w  w . j  a v  a  2  s .com*/
            + "\n" + CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPostamble();
    String rspn = schema.sendReceive(Authorization, rqst);
    if ((rspn == null) || (rspn.length() <= 0)) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 0, "rspn");
    }
    CFCrmXMsgRspnHandler 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<CFCrmDomainBasePKey, ICFCrmDomainBaseObj> sortedMap = (SortedMap<CFCrmDomainBasePKey, ICFCrmDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFCrmMinorVersionBuff arr[] = new CFCrmMinorVersionBuff[sz];
    Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator();
    ICFCrmMinorVersionObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFCrmMinorVersionObj) iter.next();
        arr[idx] = cur.getMinorVersionBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmXMsgClient.CFCrmXMsgClientMinorVersionTable.java

public CFCrmMinorVersionBuff[] readDerivedByMajorIdx(CFCrmAuthorization Authorization, long argTenantId,
        long argMajorId) {
    final String S_ProcName = "readDerivedByMajorIdx";
    String rqst = CFCrmXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFCrmXMsgMinorVersionMessageFormatter
                    .formatMinorVersionRqstReadByMajorIdx("\n\t\t\t", argTenantId, argMajorId)
            + "\n" + CFCrmXMsgSchemaMessageFormatter.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*/
    CFCrmXMsgRspnHandler 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<CFCrmDomainBasePKey, ICFCrmDomainBaseObj> sortedMap = (SortedMap<CFCrmDomainBasePKey, ICFCrmDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFCrmMinorVersionBuff arr[] = new CFCrmMinorVersionBuff[sz];
    Iterator<ICFCrmDomainBaseObj> iter = sortedMap.values().iterator();
    ICFCrmMinorVersionObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFCrmMinorVersionObj) iter.next();
        arr[idx] = cur.getMinorVersionBuff();
    }
    return (arr);
}

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

public CFAccISOCountryCurrencyBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRqstReadAll("\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 w w .  j av 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<CFAccISOCountryCurrencyPKey, ICFAccISOCountryCurrencyObj> sortedMap = (SortedMap<CFAccISOCountryCurrencyPKey, ICFAccISOCountryCurrencyObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccISOCountryCurrencyBuff arr[] = new CFAccISOCountryCurrencyBuff[sz];
    Iterator<ICFAccISOCountryCurrencyObj> iter = sortedMap.values().iterator();
    ICFAccISOCountryCurrencyObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccISOCountryCurrencyObj) iter.next();
        arr[idx] = cur.getISOCountryCurrencyBuff();
    }
    return (arr);
}

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

public CFAccISOCountryLanguageBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgISOCountryLanguageMessageFormatter.formatISOCountryLanguageRqstReadAll("\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<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[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRqstReadAll("\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 . com*/
    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[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOCountryLanguageMessageFormatter.formatISOCountryLanguageRqstReadAll("\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   www  .j a  va  2  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.cffreeswitch.v2_0.CFFswXMsgClient.CFFswXMsgClientISOCountryCurrencyTable.java

public CFFswISOCountryCurrencyBuff[] readAllDerived(CFFswAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFFswXMsgISOCountryCurrencyMessageFormatter.formatISOCountryCurrencyRqstReadAll("\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   www  . jav a 2  s .  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.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientISOCountryCurrencyTable.java

public CFAccISOCountryCurrencyBuff[] readDerivedByCountryIdx(CFAccAuthorization Authorization,
        short argISOCountryId) {
    final String S_ProcName = "readDerivedByCountryIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgISOCountryCurrencyMessageFormatter
                    .formatISOCountryCurrencyRqstReadByCountryIdx("\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");
    }/*from   w w w.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<CFAccISOCountryCurrencyPKey, ICFAccISOCountryCurrencyObj> sortedMap = (SortedMap<CFAccISOCountryCurrencyPKey, ICFAccISOCountryCurrencyObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccISOCountryCurrencyBuff arr[] = new CFAccISOCountryCurrencyBuff[sz];
    Iterator<ICFAccISOCountryCurrencyObj> iter = sortedMap.values().iterator();
    ICFAccISOCountryCurrencyObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccISOCountryCurrencyObj) iter.next();
        arr[idx] = cur.getISOCountryCurrencyBuff();
    }
    return (arr);
}

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

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