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_0.CFAstMssCF.CFAstMssCFBindURLProtocolURLProtocolId.java

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

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

    return (ret);
}

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

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

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

    return (ret);
}

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

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

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

    return (ret);
}

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

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

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

    return (ret);
}

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

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

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_1.CFEnSyntaxMssCF.CFEnSyntaxMssCFBindISOCountryCurrencyISOCountryId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFEnSyntaxMssCFBindISOCountryCurrencyISOCountryId.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 ICFEnSyntaxISOCountryCurrencyObj) {
        short iSOCountryId = ((ICFEnSyntaxISOCountryCurrencyObj) genDef).getRequiredISOCountryId();
        ret = Short.toString(iSOCountryId);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFEnSyntaxISOCountryCurrencyObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_1.CFEnSyntaxMssCF.CFEnSyntaxMssCFBindISOCountryLanguageISOCountryId.java

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

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

    return (ret);
}

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

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from   w w w. jav  a  2s .  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 maxLoginAttempts = ((ICFFswFSSFVMailObj) genDef).getRequiredMaxLoginAttempts();
        ret = Short.toString(maxLoginAttempts);
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFFswFSSFVMailObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_1.CFEnSyntaxMssCF.CFEnSyntaxMssCFBindISOCountryCurrencyISOCurrencyId.java

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

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

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

    String ret;

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_1.CFEnSyntaxMssCF.CFEnSyntaxMssCFBindISOCountryLanguageISOLanguageId.java

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

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

    return (ret);
}