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.CFAccXMsgClientISOLanguageTable.java

public CFAccISOLanguageBuff[] readDerivedByBaseIdx(CFAccAuthorization Authorization,
        String argBaseLanguageCode) {
    final String S_ProcName = "readDerivedByBaseIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgISOLanguageMessageFormatter.formatISOLanguageRqstReadByBaseIdx("\n\t\t\t",
                    argBaseLanguageCode)
            + "\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  a 2s .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<CFAccISOLanguagePKey, ICFAccISOLanguageObj> sortedMap = (SortedMap<CFAccISOLanguagePKey, ICFAccISOLanguageObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccISOLanguageBuff arr[] = new CFAccISOLanguageBuff[sz];
    Iterator<ICFAccISOLanguageObj> iter = sortedMap.values().iterator();
    ICFAccISOLanguageObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccISOLanguageObj) iter.next();
        arr[idx] = cur.getISOLanguageBuff();
    }
    return (arr);
}

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

public CFAccPhoneTagBuff[] readDerivedByPhoneIdx(CFAccAuthorization Authorization, long argTenantId,
        long argPhoneId) {
    final String S_ProcName = "readDerivedByPhoneIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgPhoneTagMessageFormatter.formatPhoneTagRqstReadByPhoneIdx("\n\t\t\t", argTenantId,
                    argPhoneId)// ww w  .j a  v  a2  s . c  om
            + "\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<CFAccPhoneTagPKey, ICFAccPhoneTagObj> sortedMap = (SortedMap<CFAccPhoneTagPKey, ICFAccPhoneTagObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccPhoneTagBuff arr[] = new CFAccPhoneTagBuff[sz];
    Iterator<ICFAccPhoneTagObj> iter = sortedMap.values().iterator();
    ICFAccPhoneTagObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccPhoneTagObj) iter.next();
        arr[idx] = cur.getPhoneTagBuff();
    }
    return (arr);
}

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

public CFAccPhoneTagBuff[] readDerivedByTagIdx(CFAccAuthorization Authorization, long argTenantId,
        long argTagId) {
    final String S_ProcName = "readDerivedByTagIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgPhoneTagMessageFormatter.formatPhoneTagRqstReadByTagIdx("\n\t\t\t", argTenantId,
                    argTagId)/*from w  w w  . j  a  va2s . co 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<CFAccPhoneTagPKey, ICFAccPhoneTagObj> sortedMap = (SortedMap<CFAccPhoneTagPKey, ICFAccPhoneTagObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccPhoneTagBuff arr[] = new CFAccPhoneTagBuff[sz];
    Iterator<ICFAccPhoneTagObj> iter = sortedMap.values().iterator();
    ICFAccPhoneTagObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccPhoneTagObj) iter.next();
        arr[idx] = cur.getPhoneTagBuff();
    }
    return (arr);
}

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

public CFAccSecSessionBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadAll("\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 . java 2s  .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<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.cfacc.v2_0.CFAccXMsgClient.CFAccXMsgClientSecSessionTable.java

public CFAccSecSessionBuff[] readDerivedBySecUserIdx(CFAccAuthorization Authorization, UUID argSecUserId) {
    final String S_ProcName = "readDerivedBySecUserIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgSecSessionMessageFormatter.formatSecSessionRqstReadBySecUserIdx("\n\t\t\t", argSecUserId)
            + "\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<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.CFAstXMsgClientISOLanguageTable.java

public CFAstISOLanguageBuff[] readDerivedByBaseIdx(CFAstAuthorization Authorization,
        String argBaseLanguageCode) {
    final String S_ProcName = "readDerivedByBaseIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgISOLanguageMessageFormatter.formatISOLanguageRqstReadByBaseIdx("\n\t\t\t",
                    argBaseLanguageCode)
            + "\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 v  a 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<CFAstISOLanguagePKey, ICFAstISOLanguageObj> sortedMap = (SortedMap<CFAstISOLanguagePKey, ICFAstISOLanguageObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstISOLanguageBuff arr[] = new CFAstISOLanguageBuff[sz];
    Iterator<ICFAstISOLanguageObj> iter = sortedMap.values().iterator();
    ICFAstISOLanguageObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstISOLanguageObj) iter.next();
        arr[idx] = cur.getISOLanguageBuff();
    }
    return (arr);
}

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

public CFAstSecSessionBuff[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecSessionMessageFormatter.formatSecSessionRqstReadAll("\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");
    }//  ww w  . j  av  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<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.cfasterisk.v2_0.CFAstXMsgClient.CFAstXMsgClientSecSessionTable.java

public CFAstSecSessionBuff[] readDerivedBySecUserIdx(CFAstAuthorization Authorization, UUID argSecUserId) {
    final String S_ProcName = "readDerivedBySecUserIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecSessionMessageFormatter.formatSecSessionRqstReadBySecUserIdx("\n\t\t\t", argSecUserId)
            + "\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 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<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.CFAccXMsgClientMinorVersionTable.java

public CFAccMinorVersionBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgMinorVersionMessageFormatter.formatMinorVersionRqstReadAll("\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 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();
    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.CFAccXMsgClientSubProjectTable.java

public CFAccSubProjectBuff[] readDerivedByParentIdx(CFAccAuthorization Authorization, long argTenantId,
        long argParentProjectId) {
    final String S_ProcName = "readDerivedByParentIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAccXMsgSubProjectMessageFormatter.formatSubProjectRqstReadByParentIdx("\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");
    }/*from w  ww.  j  a v  a 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();
    CFAccSubProjectBuff arr[] = new CFAccSubProjectBuff[sz];
    Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAccSubProjectObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccSubProjectObj) iter.next();
        arr[idx] = cur.getSubProjectBuff();
    }
    return (arr);
}