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.cfasterisk.v2_4.CFAsteriskMssCF.CFAsteriskMssCFBindServiceHostPort.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from   w  ww  .j a v a  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 ICFAsteriskServiceObj) {
        short hostPort = ((ICFAsteriskServiceObj) genDef).getRequiredHostPort();
        ret = Short.toString(hostPort);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAsteriskServiceObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOCountryCurrencyISOCountryId.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from  w w w. ja  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 ICFInternetISOCountryCurrencyObj) {
        short iSOCountryId = ((ICFInternetISOCountryCurrencyObj) genDef).getRequiredISOCountryId();
        ret = Short.toString(iSOCountryId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFInternetISOCountryCurrencyObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOCountryLanguageISOCountryId.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//  w  ww .j av  a2 s  . co m

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

    String ret;

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindISOCurrencyISOCurrencyId.java

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

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

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

    String ret;

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindISOLanguageISOLanguageId.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from w w  w.  j a  v a 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 ICFBamISOLanguageObj) {
        short iSOLanguageId = ((ICFBamISOLanguageObj) genDef).getRequiredISOLanguageId();
        ret = Short.toString(iSOLanguageId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFBamISOLanguageObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindISOTimezoneISOTimezoneId.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from  ww  w. ja v  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 ICFBamISOTimezoneObj) {
        short iSOTimezoneId = ((ICFBamISOTimezoneObj) genDef).getRequiredISOTimezoneId();
        ret = Short.toString(iSOTimezoneId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFBamISOTimezoneObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOCountryCurrencyISOCurrencyId.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from   ww 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 ICFInternetISOCountryCurrencyObj) {
        short iSOCurrencyId = ((ICFInternetISOCountryCurrencyObj) genDef).getRequiredISOCurrencyId();
        ret = Short.toString(iSOCurrencyId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFInternetISOCountryCurrencyObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOCountryLanguageISOLanguageId.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from   w ww.ja va  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 ICFInternetISOCountryLanguageObj) {
        short iSOLanguageId = ((ICFInternetISOCountryLanguageObj) genDef).getRequiredISOLanguageId();
        ret = Short.toString(iSOLanguageId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFInternetISOCountryLanguageObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskMssCF.CFAsteriskMssCFBindISOCurrencyPrecis.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from   www .  j  a 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 ICFAsteriskISOCurrencyObj) {
        short precis = ((ICFAsteriskISOCurrencyObj) genDef).getRequiredPrecis();
        ret = Short.toString(precis);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAsteriskISOCurrencyObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamMssCF.CFBamMssCFBindISOCountryCurrencyISOCountryId.java

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

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

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

    String ret;

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

    return (ret);
}