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

public CFAccDomainBuff[] readDerivedBySubDomIdx(CFAccAuthorization Authorization, long argTenantId,
        long argSubDomainOfId) {
    final String S_ProcName = "readDerivedBySubDomIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAccXMsgDomainMessageFormatter.formatDomainRqstReadBySubDomIdx("\n\t\t\t",
                    argTenantId, argSubDomainOfId)
            + "\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 va2s.  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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccDomainBuff arr[] = new CFAccDomainBuff[sz];
    Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAccDomainObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccDomainObj) iter.next();
        arr[idx] = cur.getDomainBuff();
    }
    return (arr);
}

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

public CFAccTopDomainBuff[] readDerivedByTLDIdx(CFAccAuthorization Authorization, long argTenantId,
        long argTLDId) {
    final String S_ProcName = "readDerivedByTLDIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgTopDomainMessageFormatter.formatTopDomainRqstReadByTLDIdx("\n\t\t\t", argTenantId,
                    argTLDId)// w  w w. j  a v a 2 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccTopDomainBuff arr[] = new CFAccTopDomainBuff[sz];
    Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAccTopDomainObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccTopDomainObj) iter.next();
        arr[idx] = cur.getTopDomainBuff();
    }
    return (arr);
}

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

public CFAstDomainBuff[] readDerivedBySubDomIdx(CFAstAuthorization Authorization, long argTenantId,
        long argSubDomainOfId) {
    final String S_ProcName = "readDerivedBySubDomIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAstXMsgDomainMessageFormatter.formatDomainRqstReadBySubDomIdx("\n\t\t\t",
                    argTenantId, argSubDomainOfId)
            + "\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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstDomainBuff arr[] = new CFAstDomainBuff[sz];
    Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAstDomainObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstDomainObj) iter.next();
        arr[idx] = cur.getDomainBuff();
    }
    return (arr);
}

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

public CFAstTopDomainBuff[] readDerivedByTLDIdx(CFAstAuthorization Authorization, long argTenantId,
        long argTLDId) {
    final String S_ProcName = "readDerivedByTLDIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTopDomainMessageFormatter.formatTopDomainRqstReadByTLDIdx("\n\t\t\t", argTenantId,
                    argTLDId)/* ww  w  .j  a v 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();
    CFAstTopDomainBuff arr[] = new CFAstTopDomainBuff[sz];
    Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAstTopDomainObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstTopDomainObj) iter.next();
        arr[idx] = cur.getTopDomainBuff();
    }
    return (arr);
}

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

public CFAccTopProjectBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgTopProjectMessageFormatter.formatTopProjectRqstReadAll("\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. j  a va 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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccTopProjectBuff arr[] = new CFAccTopProjectBuff[sz];
    Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAccTopProjectObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccTopProjectObj) iter.next();
        arr[idx] = cur.getTopProjectBuff();
    }
    return (arr);
}

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

public CFAccTopProjectBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) {
    final String S_ProcName = "readDerivedByTenantIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgTopProjectMessageFormatter.formatTopProjectRqstReadByTenantIdx("\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  www  .  ja  va2  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<CFAccDomainBasePKey, ICFAccDomainBaseObj> sortedMap = (SortedMap<CFAccDomainBasePKey, ICFAccDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccTopProjectBuff arr[] = new CFAccTopProjectBuff[sz];
    Iterator<ICFAccDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAccTopProjectObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccTopProjectObj) iter.next();
        arr[idx] = cur.getTopProjectBuff();
    }
    return (arr);
}

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

public CFAstTopProjectBuff[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTopProjectMessageFormatter.formatTopProjectRqstReadAll("\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  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();
    CFAstTopProjectBuff arr[] = new CFAstTopProjectBuff[sz];
    Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAstTopProjectObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstTopProjectObj) iter.next();
        arr[idx] = cur.getTopProjectBuff();
    }
    return (arr);
}

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

public CFAstTopProjectBuff[] readDerivedByTenantIdx(CFAstAuthorization Authorization, long argTenantId) {
    final String S_ProcName = "readDerivedByTenantIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTopProjectMessageFormatter.formatTopProjectRqstReadByTenantIdx("\n\t\t\t", argTenantId)
            + "\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 ww .  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<CFAstDomainBasePKey, ICFAstDomainBaseObj> sortedMap = (SortedMap<CFAstDomainBasePKey, ICFAstDomainBaseObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstTopProjectBuff arr[] = new CFAstTopProjectBuff[sz];
    Iterator<ICFAstDomainBaseObj> iter = sortedMap.values().iterator();
    ICFAstTopProjectObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstTopProjectObj) iter.next();
        arr[idx] = cur.getTopProjectBuff();
    }
    return (arr);
}

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

public CFAccISOLanguageBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgISOLanguageMessageFormatter.formatISOLanguageRqstReadAll("\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 ww w. j  av  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<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[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgPhoneTagMessageFormatter.formatPhoneTagRqstReadAll("\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  . ja 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<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);
}