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_1.CFFswMssCF.CFFswMssCFBindFSSFProfileTlsSipPort.java

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*w ww.jav  a2s.c o m*/

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

    String ret;

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

    return (ret);
}

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

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

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

    return (ret);
}

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

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

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetRam.CFInternetRamTenantId32Gen.java

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

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

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

    return (ret);
}

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

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

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

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

    String ret;

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

    return (ret);
}

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

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

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

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetRam.CFInternetRamClusterId32Gen.java

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

From source file:net.sourceforge.msscodefactory.cfcore.v2_1.CFGenKb.CFGenKbToolSetPKey.java

public String toString() {
    String ret = "<CFGenKbToolSetPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\"" + "/>";
    return (ret);
}

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

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

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from  www. ja  va2  s.co  m

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

    String ret;

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

    return (ret);
}