List of usage examples for java.lang Short toString
public static String toString(short s)
From source file:com.impetus.kundera.validation.rules.AttributeConstraintRule.java
/** * @param validationObject//from ww w .j ava 2 s . co m * @return */ private String toString(Object validationObject) { String stringObject = null; if (validationObject.getClass().isAssignableFrom(int.class) || validationObject.getClass().isAssignableFrom(Integer.class)) { stringObject = Integer.toString((Integer) validationObject); } else if (validationObject.getClass().isAssignableFrom(byte.class) || validationObject.getClass().isAssignableFrom(Byte.class)) { stringObject = Byte.toString((Byte) validationObject); } else if (validationObject.getClass().isAssignableFrom(short.class) || validationObject.getClass().isAssignableFrom(Short.class)) { stringObject = Short.toString((Short) validationObject); } else if (validationObject.getClass().isAssignableFrom(BigDecimal.class)) { stringObject = validationObject.toString(); } else if (validationObject.getClass().isAssignableFrom(Long.class) || validationObject.getClass().isAssignableFrom(long.class)) { stringObject = Long.toString((Long) validationObject); } else if (validationObject.getClass().isAssignableFrom(String.class) || validationObject.getClass().isAssignableFrom(String.class)) { stringObject = (String) validationObject; } return stringObject; }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstISOCountryHPKey.java
public String toString() { String ret = "<CFAstISOCountryHPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccISOCountryHPKey.java
public String toString() { String ret = "<CFAccISOCountryHPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstISOCurrencyHPKey.java
public String toString() { String ret = "<CFAstISOCurrencyHPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstISOLanguageHPKey.java
public String toString() { String ret = "<CFAstISOLanguageHPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccISOCurrencyHPKey.java
public String toString() { String ret = "<CFAccISOCurrencyHPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAcc.CFAccISOLanguageHPKey.java
public String toString() { String ret = "<CFAccISOLanguageHPKey" + " RequiredId=" + "\"" + Short.toString(getRequiredId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }
From source file:net.sbbi.upnp.messages.ActionMessage.java
/** * Set the value of an input parameter before a message service call * @param parameterName the parameter name * @param parameterValue the short parameter value * @return the current ActionMessage object instance * @throws IllegalArgumentException if the provided parameterName is not valid for this message * or if no input parameters are required for this message *//* w ww. ja va2s .c o m*/ public ActionMessage setInputParameter(String parameterName, short parameterValue) throws IllegalArgumentException { return setInputParameter(parameterName, Short.toString(parameterValue)); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstAuditActionHPKey.java
public String toString() { String ret = "<CFAstAuditActionHPKey" + " RequiredAuditActionId=" + "\"" + Short.toString(getRequiredAuditActionId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_0.CFAst.CFAstISOTimezoneHPKey.java
public String toString() { String ret = "<CFAstISOTimezoneHPKey" + " RequiredISOTimezoneId=" + "\"" + Short.toString(getRequiredISOTimezoneId()) + "\"" + " RequiredRevision=\"" + Integer.toString(getRequiredRevision()) + "\"" + "/>"; return (ret); }