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

public CFAccSecGroupIncludeBuff[] readDerivedByIncludeIdx(CFAccAuthorization Authorization, long argClusterId,
        int argIncludeGroupId) {
    final String S_ProcName = "readDerivedByIncludeIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgSecGroupIncludeMessageFormatter.formatSecGroupIncludeRqstReadByIncludeIdx("\n\t\t\t",
                    argClusterId, argIncludeGroupId)
            + "\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 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<CFAccSecGroupIncludePKey, ICFAccSecGroupIncludeObj> sortedMap = (SortedMap<CFAccSecGroupIncludePKey, ICFAccSecGroupIncludeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccSecGroupIncludeBuff arr[] = new CFAccSecGroupIncludeBuff[sz];
    Iterator<ICFAccSecGroupIncludeObj> iter = sortedMap.values().iterator();
    ICFAccSecGroupIncludeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccSecGroupIncludeObj) iter.next();
        arr[idx] = cur.getSecGroupIncludeBuff();
    }
    return (arr);
}

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

public CFAstSecGroupIncludeBuff[] readDerivedByGroupIdx(CFAstAuthorization Authorization, long argClusterId,
        int argSecGroupId) {
    final String S_ProcName = "readDerivedByGroupIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecGroupIncludeMessageFormatter.formatSecGroupIncludeRqstReadByGroupIdx("\n\t\t\t",
                    argClusterId, argSecGroupId)
            + "\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  .  ja 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<CFAstSecGroupIncludePKey, ICFAstSecGroupIncludeObj> sortedMap = (SortedMap<CFAstSecGroupIncludePKey, ICFAstSecGroupIncludeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstSecGroupIncludeBuff arr[] = new CFAstSecGroupIncludeBuff[sz];
    Iterator<ICFAstSecGroupIncludeObj> iter = sortedMap.values().iterator();
    ICFAstSecGroupIncludeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstSecGroupIncludeObj) iter.next();
        arr[idx] = cur.getSecGroupIncludeBuff();
    }
    return (arr);
}

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

public CFAstSecGroupIncludeBuff[] readDerivedByIncludeIdx(CFAstAuthorization Authorization, long argClusterId,
        int argIncludeGroupId) {
    final String S_ProcName = "readDerivedByIncludeIdx";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgSecGroupIncludeMessageFormatter.formatSecGroupIncludeRqstReadByIncludeIdx("\n\t\t\t",
                    argClusterId, argIncludeGroupId)
            + "\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  .j a v 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<CFAstSecGroupIncludePKey, ICFAstSecGroupIncludeObj> sortedMap = (SortedMap<CFAstSecGroupIncludePKey, ICFAstSecGroupIncludeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstSecGroupIncludeBuff arr[] = new CFAstSecGroupIncludeBuff[sz];
    Iterator<ICFAstSecGroupIncludeObj> iter = sortedMap.values().iterator();
    ICFAstSecGroupIncludeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstSecGroupIncludeObj) iter.next();
        arr[idx] = cur.getSecGroupIncludeBuff();
    }
    return (arr);
}

From source file:net.sourceforge.msscodefactory.cfcore.v2_0.CFGenKbXMsgClient.CFGenKbXMsgClientSecGroupMemberTable.java

public CFGenKbSecGroupMemberBuff[] readAllDerived(CFGenKbAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFGenKbXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFGenKbXMsgSecGroupMemberMessageFormatter.formatSecGroupMemberRqstReadAll("\n\t\t\t") + "\n"
            + CFGenKbXMsgSchemaMessageFormatter.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 av  a 2 s  .  com*/
    CFGenKbXMsgRspnHandler 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<CFGenKbSecGroupMemberPKey, ICFGenKbSecGroupMemberObj> sortedMap = (SortedMap<CFGenKbSecGroupMemberPKey, ICFGenKbSecGroupMemberObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFGenKbSecGroupMemberBuff arr[] = new CFGenKbSecGroupMemberBuff[sz];
    Iterator<ICFGenKbSecGroupMemberObj> iter = sortedMap.values().iterator();
    ICFGenKbSecGroupMemberObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFGenKbSecGroupMemberObj) iter.next();
        arr[idx] = cur.getSecGroupMemberBuff();
    }
    return (arr);
}

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

public CFAccPhoneTagBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long TenantId) {
    final String S_ProcName = "CFAccRamPhoneTag.readDerivedByTenantIdx() ";
    CFAccPhoneTagByTenantIdxKey key = schema.getFactoryPhoneTag().newTenantIdxKey();
    key.setRequiredTenantId(TenantId);/*from  w  w w .  j  a  v a2  s  .  c  om*/

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

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

public CFAccPhoneTagBuff[] readDerivedByPhoneIdx(CFAccAuthorization Authorization, long TenantId,
        long PhoneId) {
    final String S_ProcName = "CFAccRamPhoneTag.readDerivedByPhoneIdx() ";
    CFAccPhoneTagByPhoneIdxKey key = schema.getFactoryPhoneTag().newPhoneIdxKey();
    key.setRequiredTenantId(TenantId);//from w  w  w.  ja  v  a  2 s .  c o  m
    key.setRequiredPhoneId(PhoneId);

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

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

public CFAccTSecGroupIncludeBuff[] readAllDerived(CFAccAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadAll("\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  v a 2s . com*/
    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<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj> sortedMap = (SortedMap<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccTSecGroupIncludeBuff arr[] = new CFAccTSecGroupIncludeBuff[sz];
    Iterator<ICFAccTSecGroupIncludeObj> iter = sortedMap.values().iterator();
    ICFAccTSecGroupIncludeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccTSecGroupIncludeObj) iter.next();
        arr[idx] = cur.getTSecGroupIncludeBuff();
    }
    return (arr);
}

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

public CFAstTSecGroupIncludeBuff[] readAllDerived(CFAstAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFAstXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAstXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadAll("\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  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<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj> sortedMap = (SortedMap<CFAstTSecGroupIncludePKey, ICFAstTSecGroupIncludeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAstTSecGroupIncludeBuff arr[] = new CFAstTSecGroupIncludeBuff[sz];
    Iterator<ICFAstTSecGroupIncludeObj> iter = sortedMap.values().iterator();
    ICFAstTSecGroupIncludeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAstTSecGroupIncludeObj) iter.next();
        arr[idx] = cur.getTSecGroupIncludeBuff();
    }
    return (arr);
}

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

public CFFswTSecGroupIncludeBuff[] readAllDerived(CFFswAuthorization Authorization) {
    final String S_ProcName = "readAllDerived";
    String rqst = CFFswXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFFswXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadAll("\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  w  w .j av  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<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj> sortedMap = (SortedMap<CFFswTSecGroupIncludePKey, ICFFswTSecGroupIncludeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFFswTSecGroupIncludeBuff arr[] = new CFFswTSecGroupIncludeBuff[sz];
    Iterator<ICFFswTSecGroupIncludeObj> iter = sortedMap.values().iterator();
    ICFFswTSecGroupIncludeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFFswTSecGroupIncludeObj) iter.next();
        arr[idx] = cur.getTSecGroupIncludeBuff();
    }
    return (arr);
}

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

public CFAccTSecGroupIncludeBuff[] readDerivedByTenantIdx(CFAccAuthorization Authorization, long argTenantId) {
    final String S_ProcName = "readDerivedByTenantIdx";
    String rqst = CFAccXMsgSchemaMessageFormatter.formatRqstXmlPreamble() + "\n" + "\t"
            + CFAccXMsgTSecGroupIncludeMessageFormatter.formatTSecGroupIncludeRqstReadByTenantIdx("\n\t\t\t",
                    argTenantId)//  ww  w . ja va  2 s . c o  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<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj> sortedMap = (SortedMap<CFAccTSecGroupIncludePKey, ICFAccTSecGroupIncludeObj>) sortedMapObj;
    int sz = sortedMap.size();
    CFAccTSecGroupIncludeBuff arr[] = new CFAccTSecGroupIncludeBuff[sz];
    Iterator<ICFAccTSecGroupIncludeObj> iter = sortedMap.values().iterator();
    ICFAccTSecGroupIncludeObj cur;
    for (int idx = 0; idx < sz; idx++) {
        cur = (ICFAccTSecGroupIncludeObj) iter.next();
        arr[idx] = cur.getTSecGroupIncludeBuff();
    }
    return (arr);
}