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.cfbam.v2_7.CFBamRam.CFBamRamTenantId32Gen.java

public String toString() {
    String ret = "<CFBamTenantId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamTenantId64Gen.java

public String toString() {
    String ret = "<CFBamTenantId64Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Long.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamClusterId32Gen.java

public String toString() {
    String ret = "<CFBamClusterId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamRam.CFBamRamClusterId64Gen.java

public String toString() {
    String ret = "<CFBamClusterId64Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Long.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswMssCF.CFFswMssCFBindISOCountryId.java

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

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

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

    String ret;

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswMssCF.CFFswMssCFBindISOCurrencyId.java

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

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

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

    String ret;

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchMssCF.CFFreeSwitchMssCFBindFSSFVMailMaxLoginAttempts.java

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

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

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

    String ret;

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchMssCF.CFFreeSwitchMssCFBindFSSFVMailRecordSilenceHits.java

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

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_1.CFCrmRam.CFCrmRamTenantId32Gen.java

public String toString() {
    String ret = "<CFCrmTenantId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskRam.CFAsteriskRamTenantId32Gen.java

public String toString() {
    String ret = "<CFAsteriskTenantId32Gen" + " RequiredId=" + "\"" + Long.toString(getRequiredId()) + "\""
            + ", SliceId=\"" + Short.toString(getRequiredSliceId()) + "\"" + ", NextId=\""
            + Integer.toString(nextId) + "\"/>";
    return (ret);
}