List of usage examples for java.lang Short toString
public static String toString(short s)
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmMssCF.CFCrmMssCFBindServiceHostPort.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFCrmMssCFBindServiceHostPort.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//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 ICFCrmServiceObj) { short hostPort = ((ICFCrmServiceObj) genDef).getRequiredHostPort(); ret = Short.toString(hostPort); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFCrmServiceObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmMssCF.CFCrmMssCFBindISOCurrencyPrecis.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFCrmMssCFBindISOCurrencyPrecis.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 ICFCrmISOCurrencyObj) { short precis = ((ICFCrmISOCurrencyObj) genDef).getRequiredPrecis(); ret = Short.toString(precis); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFCrmISOCurrencyObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOCountryId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFInternetMssCFBindISOCountryId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w w w .j av 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 ICFInternetISOCountryObj) { short id = ((ICFInternetISOCountryObj) genDef).getRequiredId(); ret = Short.toString(id); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFInternetISOCountryObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOCurrencyId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFInternetMssCFBindISOCurrencyId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from w ww . j a v 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 ICFInternetISOCurrencyObj) { short id = ((ICFInternetISOCurrencyObj) genDef).getRequiredId(); ret = Short.toString(id); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFInternetISOCurrencyObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOLanguageId.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFInternetMssCFBindISOLanguageId.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }//from ww w . 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 ICFInternetISOLanguageObj) { short id = ((ICFInternetISOLanguageObj) genDef).getRequiredId(); ret = Short.toString(id); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFInternetISOLanguageObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindServiceHostPort.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFInternetMssCFBindServiceHostPort.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/* ww w . j a v 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 ICFInternetServiceObj) { short hostPort = ((ICFInternetServiceObj) genDef).getRequiredHostPort(); ret = Short.toString(hostPort); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFInternetServiceObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmMssCF.CFCrmMssCFBindISOTimezoneTZMinOffset.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFCrmMssCFBindISOTimezoneTZMinOffset.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*from w ww. ja v 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 ICFCrmISOTimezoneObj) { short tZMinOffset = ((ICFCrmISOTimezoneObj) genDef).getRequiredTZMinOffset(); ret = Short.toString(tZMinOffset); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFCrmISOTimezoneObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetMssCF.CFInternetMssCFBindISOCurrencyPrecis.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFInternetMssCFBindISOCurrencyPrecis.expandBody() "; if (genContext == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1, "genContext"); }/*w w w.j a v 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 ICFInternetISOCurrencyObj) { short precis = ((ICFInternetISOCurrencyObj) genDef).getRequiredPrecis(); ret = Short.toString(precis); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFInternetISOCurrencyObj"); } return (ret); }
From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmMssCF.CFCrmMssCFBindISOTimezoneTZHourOffset.java
public String expandBody(MssCFGenContext genContext) { final String S_ProcName = "CFCrmMssCFBindISOTimezoneTZHourOffset.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 ICFCrmISOTimezoneObj) { short tZHourOffset = ((ICFCrmISOTimezoneObj) genDef).getRequiredTZHourOffset(); ret = Short.toString(tZHourOffset); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFCrmISOTimezoneObj"); } return (ret); }
From source file:de.unistuttgart.ipvs.pmp.infoapp.webservice.properties.ProfileProperties.java
@Override public void commit() throws InternalDatabaseException, InvalidParameterException, IOException { try {// w ww . j a v a 2 s. co m List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>(); switch (this.ring) { case BOTH: params.add(new BasicNameValuePair("ring", "b")); break; case RING: params.add(new BasicNameValuePair("ring", "r")); break; case SILENT: params.add(new BasicNameValuePair("ring", "s")); break; case VIBRATION: params.add(new BasicNameValuePair("ring", "v")); break; } params.add(new BasicNameValuePair("apps", Short.toString(this.apps))); params.add(new BasicNameValuePair("contacts", Short.toString(this.contacts))); super.service.requestPostService("update_profile.php", params); } catch (JSONException e) { throw new IOException("Server returned no valid JSON object: " + e); } }