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

public CFAccContactTagBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) {
    final String S_ProcName = "readDerivedByTenantIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgContactTagMessageFormatter.formatContactTagRqstReadByTenantIdx("\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  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<CFAccContactTagPKey, ICFAccContactTagObj> sortedMap = (SortedMap<CFAccContactTagPKey, ICFAccContactTagObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccContactTagBuff arr[] = new CFAccContactTagBuff[sz];
    Iterator<ICFAccContactTagObj> iter = sortedMap.values().iterator();
    ICFAccContactTagObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccContactTagObj) iter.next();
        arr[idx] = cur.getContactTagBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstRam.CFAstRamISOLanguageTable.java

public CFAstISOLanguageBuff[] readDerivedByBaseIdx(CFAstAuthorization Authorization, String BaseLanguageCode) {
    final String S_ProcName = "CFAstRamISOLanguage.readDerivedByBaseIdx() ";
    CFAstISOLanguageByBaseIdxKey key = schema.getFactoryISOLanguage().newBaseIdxKey();
    key.setRequiredBaseLanguageCode(BaseLanguageCode);

    CFAstISOLanguageBuff[] recArray;/*  w  w w . ja  v a 2  s .  c om*/
    if (dictByBaseIdx.containsKey(key)) {
        SortedMap<CFAstISOLanguagePKey, CFAstISOLanguageBuff> subdictBaseIdx = dictByBaseIdx.get(key);
        recArray = new CFAstISOLanguageBuff[subdictBaseIdx.size()];
        Iterator<CFAstISOLanguageBuff> iter = subdictBaseIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAstISOLanguageBuff[0];
    }
    return (recArray);
}

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

public CFFswFSSFDialerBuff[] readDerivedBySofiaIdx(CFFswAuthorization Authorization, long argTenantId,
        long argFSSofiaId) {
    final String S_ProcName = "readDerivedBySofiaIdx";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFFswXMsgFSSFDialerMessageFormatter.formatFSSFDialerRqstReadBySofiaIdx("\n\t\t\t",
                    argTenantId, argFSSofiaId)
            + "\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 w ww . j a  v a 2s.  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<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj> sortedMap = (SortedMap<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswFSSFDialerBuff arr[] = new CFFswFSSFDialerBuff[sz];
    Iterator<ICFFswFSSFDialerObj> iter = sortedMap.values().iterator();
    ICFFswFSSFDialerObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswFSSFDialerObj) iter.next();
        arr[idx] = cur.getFSSFDialerBuff();
    }
    return (arr);
}

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

public CFFswFSSFDialerBuff[] readDerivedByUNameIdx(CFFswAuthorization Authorization, long argTenantId,
        long argFSSofiaId, String argName) {
    final String S_ProcName = "readDerivedByUNameIdx";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFFswXMsgFSSFDialerMessageFormatter.formatFSSFDialerRqstReadByUNameIdx("\n\t\t\t",
                    argTenantId, argFSSofiaId, argName)
            + "\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 ww w. ja  v  a  2s . c  om*/
    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<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj> sortedMap = (SortedMap<CFFswFSSFDialerPKey, ICFFswFSSFDialerObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswFSSFDialerBuff arr[] = new CFFswFSSFDialerBuff[sz];
    Iterator<ICFFswFSSFDialerObj> iter = sortedMap.values().iterator();
    ICFFswFSSFDialerObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswFSSFDialerObj) iter.next();
        arr[idx] = cur.getFSSFDialerBuff();
    }
    return (arr);
}

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

public CFAccTenantBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgTenantMessageFormatter.formatTenantRqstReadAll("\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 ava2s.  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<CFAccTenantPKey, ICFAccTenantObj> sortedMap = (SortedMap<CFAccTenantPKey, ICFAccTenantObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccTenantBuff arr[] = new CFAccTenantBuff[sz];
    Iterator<ICFAccTenantObj> iter = sortedMap.values().iterator();
    ICFAccTenantObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccTenantObj) iter.next();
        arr[idx] = cur.getTenantBuff();
    }
    return (arr);
}

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

public CFAccTenantBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long argClusterId) {
    final String S_ProcName = "readDerivedByClusterIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgTenantMessageFormatter.formatTenantRqstReadByClusterIdx("\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");
    }/*from ww  w  . 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<CFAccTenantPKey, ICFAccTenantObj> sortedMap = (SortedMap<CFAccTenantPKey, ICFAccTenantObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccTenantBuff arr[] = new CFAccTenantBuff[sz];
    Iterator<ICFAccTenantObj> iter = sortedMap.values().iterator();
    ICFAccTenantObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccTenantObj) iter.next();
        arr[idx] = cur.getTenantBuff();
    }
    return (arr);
}

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

public CFAccAddressTagBuff[] readDerivedByAddressIdx(CFAccAuthorization Authorization, long argTenantId,
        long argAddressId) {
    final String S_ProcName = "readDerivedByAddressIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAccXMsgAddressTagMessageFormatter.formatAddressTagRqstReadByAddressIdx("\n\t\t\t",
                    argTenantId, argAddressId)
            + "\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  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<CFAccAddressTagPKey, ICFAccAddressTagObj> sortedMap = (SortedMap<CFAccAddressTagPKey, ICFAccAddressTagObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccAddressTagBuff arr[] = new CFAccAddressTagBuff[sz];
    Iterator<ICFAccAddressTagObj> iter = sortedMap.values().iterator();
    ICFAccAddressTagObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccAddressTagObj) iter.next();
        arr[idx] = cur.getAddressTagBuff();
    }
    return (arr);
}

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

public CFAccAddressTagBuff[] readDerivedByTagIdx(CFAccAuthorization Authorization, long argTenantId,
        long argTagId) {
    final String S_ProcName = "readDerivedByTagIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgAddressTagMessageFormatter.formatAddressTagRqstReadByTagIdx("\n\t\t\t", argTenantId,
                    argTagId)/*from   ww  w . ja  va 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<CFAccAddressTagPKey, ICFAccAddressTagObj> sortedMap = (SortedMap<CFAccAddressTagPKey, ICFAccAddressTagObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccAddressTagBuff arr[] = new CFAccAddressTagBuff[sz];
    Iterator<ICFAccAddressTagObj> iter = sortedMap.values().iterator();
    ICFAccAddressTagObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccAddressTagObj) iter.next();
        arr[idx] = cur.getAddressTagBuff();
    }
    return (arr);
}

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

public CFAccContactTagBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long argTenantId,
        long argContactId) {
    final String S_ProcName = "readDerivedByContactIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAccXMsgContactTagMessageFormatter.formatContactTagRqstReadByContactIdx("\n\t\t\t",
                    argTenantId, argContactId)
            + "\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  av  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<CFAccContactTagPKey, ICFAccContactTagObj> sortedMap = (SortedMap<CFAccContactTagPKey, ICFAccContactTagObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccContactTagBuff arr[] = new CFAccContactTagBuff[sz];
    Iterator<ICFAccContactTagObj> iter = sortedMap.values().iterator();
    ICFAccContactTagObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccContactTagObj) iter.next();
        arr[idx] = cur.getContactTagBuff();
    }
    return (arr);
}

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

public CFAccContactTagBuff[] readDerivedByTagIdx(CFAccAuthorization Authorization, long argTenantId,
        long argTagId) {
    final String S_ProcName = "readDerivedByTagIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgContactTagMessageFormatter.formatContactTagRqstReadByTagIdx("\n\t\t\t", argTenantId,
                    argTagId)//from  w ww . j  av a  2  s  .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<CFAccContactTagPKey, ICFAccContactTagObj> sortedMap = (SortedMap<CFAccContactTagPKey, ICFAccContactTagObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccContactTagBuff arr[] = new CFAccContactTagBuff[sz];
    Iterator<ICFAccContactTagObj> iter = sortedMap.values().iterator();
    ICFAccContactTagObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccContactTagObj) iter.next();
        arr[idx] = cur.getContactTagBuff();
    }
    return (arr);
}