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

public CFAccContactURLBuff[] readDerivedByContactIdx(CFAccAuthorization Authorization, long argTenantId,
        long argContactId) {
    final String S_ProcName = "readDerivedByContactIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAccXMsgContactURLMessageFormatter.formatContactURLRqstReadByContactIdx("\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 www  . ja  va2 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<CFAccContactURLPKey, ICFAccContactURLObj> sortedMap = (SortedMap<CFAccContactURLPKey, ICFAccContactURLObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccContactURLBuff arr[] = new CFAccContactURLBuff[sz];
    Iterator<ICFAccContactURLObj> iter = sortedMap.values().iterator();
    ICFAccContactURLObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccContactURLObj) iter.next();
        arr[idx] = cur.getContactURLBuff();
    }
    return (arr);
}

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

public CFAccContactURLBuff[] readDerivedByProtocolIdx(CFAccAuthorization Authorization,
        Short argURLProtocolId) {
    final String S_ProcName = "readDerivedByProtocolIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFAccXMsgContactURLMessageFormatter
                    .formatContactURLRqstReadByProtocolIdx("\n\t\t\t", argURLProtocolId)
            + "\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 .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<CFAccContactURLPKey, ICFAccContactURLObj> sortedMap = (SortedMap<CFAccContactURLPKey, ICFAccContactURLObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccContactURLBuff arr[] = new CFAccContactURLBuff[sz];
    Iterator<ICFAccContactURLObj> iter = sortedMap.values().iterator();
    ICFAccContactURLObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccContactURLObj) iter.next();
        arr[idx] = cur.getContactURLBuff();
    }
    return (arr);
}

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

public CFFswFSSFConferenceProfileBuff[] readAllDerived(CFFswAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFFswXMsgFSSFConferenceProfileMessageFormatter.formatFSSFConferenceProfileRqstReadAll("\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 w ww .j av a  2  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<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj> sortedMap = (SortedMap<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswFSSFConferenceProfileBuff arr[] = new CFFswFSSFConferenceProfileBuff[sz];
    Iterator<ICFFswFSSFConferenceProfileObj> iter = sortedMap.values().iterator();
    ICFFswFSSFConferenceProfileObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswFSSFConferenceProfileObj) iter.next();
        arr[idx] = cur.getFSSFConferenceProfileBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamMemoTable.java

public CFAccMemoBuff[] readDerivedByMemoContactIdx(CFAccAuthorization Authorization, long TenantId,
        long ContactId) {
    final String S_ProcName = "CFAccRamMemo.readDerivedByMemoContactIdx() ";
    CFAccMemoByMemoContactIdxKey key = schema.getFactoryMemo().newMemoContactIdxKey();
    key.setRequiredTenantId(TenantId);// ww w.ja v  a2 s . co  m
    key.setRequiredContactId(ContactId);

    CFAccMemoBuff[] recArray;
    if (dictByMemoContactIdx.containsKey(key)) {
        SortedMap<CFAccMemoPKey, CFAccMemoBuff> subdictMemoContactIdx = dictByMemoContactIdx.get(key);
        recArray = new CFAccMemoBuff[subdictMemoContactIdx.size()];
        Iterator<CFAccMemoBuff> iter = subdictMemoContactIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAccMemoBuff[0];
    }
    return (recArray);
}

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

public CFFswFSSFConferenceProfileBuff[] readDerivedByTenantIdx(CFFswAuthorization Authorization,
        long argTenantId) {
    final String S_ProcName = "readDerivedByTenantIdx";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble()
            + "\n" + "\t" + CFFswXMsgFSSFConferenceProfileMessageFormatter
                    .formatFSSFConferenceProfileRqstReadByTenantIdx("\n\t\t\t", argTenantId)
            + "\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 .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<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj> sortedMap = (SortedMap<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswFSSFConferenceProfileBuff arr[] = new CFFswFSSFConferenceProfileBuff[sz];
    Iterator<ICFFswFSSFConferenceProfileObj> iter = sortedMap.values().iterator();
    ICFFswFSSFConferenceProfileObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswFSSFConferenceProfileObj) iter.next();
        arr[idx] = cur.getFSSFConferenceProfileBuff();
    }
    return (arr);
}

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

public CFFswFSSFConferenceProfileBuff[] readDerivedByConferenceIdx(CFFswAuthorization Authorization,
        long argTenantId, long argFSSFConferenceId) {
    final String S_ProcName = "readDerivedByConferenceIdx";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFFswXMsgFSSFConferenceProfileMessageFormatter.formatFSSFConferenceProfileRqstReadByConferenceIdx(
                    "\n\t\t\t", argTenantId, argFSSFConferenceId)
            + "\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  .  java2  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<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj> sortedMap = (SortedMap<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswFSSFConferenceProfileBuff arr[] = new CFFswFSSFConferenceProfileBuff[sz];
    Iterator<ICFFswFSSFConferenceProfileObj> iter = sortedMap.values().iterator();
    ICFFswFSSFConferenceProfileObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswFSSFConferenceProfileObj) iter.next();
        arr[idx] = cur.getFSSFConferenceProfileBuff();
    }
    return (arr);
}

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

public CFFswFSSFConferenceProfileBuff[] readDerivedByUNameIdx(CFFswAuthorization Authorization,
        long argTenantId, long argFSSFConferenceId, String argName) {
    final String S_ProcName = "readDerivedByUNameIdx";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFFswXMsgFSSFConferenceProfileMessageFormatter.formatFSSFConferenceProfileRqstReadByUNameIdx(
                    "\n\t\t\t", argTenantId, argFSSFConferenceId, 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 w  w  w.  j ava  2 s  .  co 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<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj> sortedMap = (SortedMap<CFFswFSSFConferenceProfilePKey, ICFFswFSSFConferenceProfileObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswFSSFConferenceProfileBuff arr[] = new CFFswFSSFConferenceProfileBuff[sz];
    Iterator<ICFFswFSSFConferenceProfileObj> iter = sortedMap.values().iterator();
    ICFFswFSSFConferenceProfileObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswFSSFConferenceProfileObj) iter.next();
        arr[idx] = cur.getFSSFConferenceProfileBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecFormTable.java

public CFAccSecFormBuff[] readDerivedByClusterIdx(CFAccAuthorization Authorization, long ClusterId) {
    final String S_ProcName = "CFAccRamSecForm.readDerivedByClusterIdx() ";
    CFAccSecFormByClusterIdxKey key = schema.getFactorySecForm().newClusterIdxKey();
    key.setRequiredClusterId(ClusterId);

    CFAccSecFormBuff[] recArray;/* w  w  w.  j a va 2s  . c  o m*/
    if (dictByClusterIdx.containsKey(key)) {
        SortedMap<CFAccSecFormPKey, CFAccSecFormBuff> subdictClusterIdx = dictByClusterIdx.get(key);
        recArray = new CFAccSecFormBuff[subdictClusterIdx.size()];
        Iterator<CFAccSecFormBuff> iter = subdictClusterIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAccSecFormBuff[0];
    }
    return (recArray);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccRam.CFAccRamSecFormTable.java

public CFAccSecFormBuff[] readDerivedBySecAppIdx(CFAccAuthorization Authorization, long ClusterId,
        int SecAppId) {
    final String S_ProcName = "CFAccRamSecForm.readDerivedBySecAppIdx() ";
    CFAccSecFormBySecAppIdxKey key = schema.getFactorySecForm().newSecAppIdxKey();
    key.setRequiredClusterId(ClusterId);
    key.setRequiredSecAppId(SecAppId);/* w w  w  .ja  v a2s.  com*/

    CFAccSecFormBuff[] recArray;
    if (dictBySecAppIdx.containsKey(key)) {
        SortedMap<CFAccSecFormPKey, CFAccSecFormBuff> subdictSecAppIdx = dictBySecAppIdx.get(key);
        recArray = new CFAccSecFormBuff[subdictSecAppIdx.size()];
        Iterator<CFAccSecFormBuff> iter = subdictSecAppIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAccSecFormBuff[0];
    }
    return (recArray);
}

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

public CFAstSecFormBuff[] readDerivedByClusterIdx(CFAstAuthorization Authorization, long ClusterId) {
    final String S_ProcName = "CFAstRamSecForm.readDerivedByClusterIdx() ";
    CFAstSecFormByClusterIdxKey key = schema.getFactorySecForm().newClusterIdxKey();
    key.setRequiredClusterId(ClusterId);

    CFAstSecFormBuff[] recArray;/*from w  ww . j  a  v a2  s  . c  o  m*/
    if (dictByClusterIdx.containsKey(key)) {
        SortedMap<CFAstSecFormPKey, CFAstSecFormBuff> subdictClusterIdx = dictByClusterIdx.get(key);
        recArray = new CFAstSecFormBuff[subdictClusterIdx.size()];
        Iterator<CFAstSecFormBuff> iter = subdictClusterIdx.values().iterator();
        int idx = 0;
        while (iter.hasNext()) {
            recArray[idx++] = iter.next();
        }
    } else {
        recArray = new CFAstSecFormBuff[0];
    }
    return (recArray);
}