Example usage for java.lang Short toString

List of usage examples for java.lang Short toString

Introduction

In this page you can find the example usage for java.lang Short toString.

Prototype

public static String toString(short s) 

Source Link

Document

Returns a new String object representing the specified short .

Usage

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswMssCF.CFFswMssCFBindFSSFVMailRecordSilenceHits.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFFswMssCFBindFSSFVMailRecordSilenceHits.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/* ww  w  .  jav  a  2  s .c om*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFFswFSSFVMailObj) {
        short recordSilenceHits = ((ICFFswFSSFVMailObj) genDef).getRequiredRecordSilenceHits();
        ret = Short.toString(recordSilenceHits);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFFswFSSFVMailObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashMssCF.CFGCashMssCFBindISOTimezoneTZHourOffset.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFGCashMssCFBindISOTimezoneTZHourOffset.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from   w  w w .  j a va  2s.c  om*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFGCashISOTimezoneObj) {
        short tZHourOffset = ((ICFGCashISOTimezoneObj) genDef).getRequiredTZHourOffset();
        ret = Short.toString(tZHourOffset);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFGCashISOTimezoneObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashMssCF.CFGCashMssCFBindAuditActionAuditActionId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFGCashMssCFBindAuditActionAuditActionId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//  w w  w.j ava  2 s . c o  m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFGCashAuditActionObj) {
        short auditActionId = ((ICFGCashAuditActionObj) genDef).getRequiredAuditActionId();
        ret = Short.toString(auditActionId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFGCashAuditActionObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashMssCF.CFGCashMssCFBindISOTimezoneISOTimezoneId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFGCashMssCFBindISOTimezoneISOTimezoneId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from  w w w .  ja  v a 2s .c o  m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFGCashISOTimezoneObj) {
        short iSOTimezoneId = ((ICFGCashISOTimezoneObj) genDef).getRequiredISOTimezoneId();
        ret = Short.toString(iSOTimezoneId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFGCashISOTimezoneObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashMssCF.CFGCashMssCFBindURLProtocolURLProtocolId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFGCashMssCFBindURLProtocolURLProtocolId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from  ww w  .  j  a  va 2  s.  c o m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFGCashURLProtocolObj) {
        short uRLProtocolId = ((ICFGCashURLProtocolObj) genDef).getRequiredURLProtocolId();
        ret = Short.toString(uRLProtocolId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFGCashURLProtocolObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccMssCF.CFAccMssCFBindAccountEntryBalanceCurrencyId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFAccMssCFBindAccountEntryBalanceCurrencyId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/* w  w  w  . j  a v a 2  s  . com*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFAccAccountEntryObj) {
        short balanceCurrencyId = ((ICFAccAccountEntryObj) genDef).getRequiredBalanceCurrencyId();
        ret = Short.toString(balanceCurrencyId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAccAccountEntryObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstMssCF.CFAstMssCFBindISOCountryCurrencyISOCountryId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFAstMssCFBindISOCountryCurrencyISOCountryId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from   w  w  w.j  a va 2  s.  c o m*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFAstISOCountryCurrencyObj) {
        short iSOCountryId = ((ICFAstISOCountryCurrencyObj) genDef).getRequiredISOCountryId();
        ret = Short.toString(iSOCountryId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAstISOCountryCurrencyObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAstMssCF.CFAstMssCFBindISOCountryLanguageISOCountryId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFAstMssCFBindISOCountryLanguageISOCountryId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//www  .  java 2  s  .c  o m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFAstISOCountryLanguageObj) {
        short iSOCountryId = ((ICFAstISOCountryLanguageObj) genDef).getRequiredISOCountryId();
        ret = Short.toString(iSOCountryId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAstISOCountryLanguageObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswMssCF.CFFswMssCFBindISOCountryLanguageISOCountryId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFFswMssCFBindISOCountryLanguageISOCountryId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//w  ww.  ja  v  a2 s. c om

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFFswISOCountryLanguageObj) {
        short iSOCountryId = ((ICFFswISOCountryLanguageObj) genDef).getRequiredISOCountryId();
        ret = Short.toString(iSOCountryId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFFswISOCountryLanguageObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccMssCF.CFAccMssCFBindISOCountryCurrencyISOCountryId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFAccMssCFBindISOCountryCurrencyISOCountryId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*  w  w w  . j a v  a2 s .c om*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFAccISOCountryCurrencyObj) {
        short iSOCountryId = ((ICFAccISOCountryCurrencyObj) genDef).getRequiredISOCountryId();
        ret = Short.toString(iSOCountryId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAccISOCountryCurrencyObj");
    }

    return (ret);
}