Package com.saperion.ws.wrapper
Class SaWsValue
- java.lang.Object
-
- com.saperion.ws.wrapper.SaWsValue
-
public class SaWsValue extends java.lang.ObjectThis class wraps the SaValue class, which represents SAPERION values.- Author:
- Daniel Manzke
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.activation.DataHandlergetBinaryValue()Returns the binary value, if set.java.util.DategetDateValue()Returns the date value, if set.doublegetFloatValue()Returns the float value, if set.intgetIntValue()Returns the integer value, if set.java.lang.StringgetStringValue()Returns the string value, if set.intgetValueType()Returns the value type.booleanisBoolValue()Returns the boolean value, if set.voidsetBinaryValue(javax.activation.DataHandler value)Sets the binary value, if set.voidsetBoolValue(boolean value)Sets the boolean value, if set.voidsetDateValue(java.util.Date value)Sets the date value, if set.voidsetFloatValue(double value)Sets the float value, if set.voidsetIntValue(int value)Sets the integer value, if set.voidsetStringValue(java.lang.String value)Sets the string value, if set.voidsetValueType(int value)Sets the value type.
-
-
-
Constructor Detail
-
SaWsValue
public SaWsValue()
Creates a new instance of SaWsValue.
-
SaWsValue
public SaWsValue(com.saperion.intf.SaValue value)
Creates a new instance of SaWsValue and wraps the originial SaValue.- Parameters:
value- which holds the information of the backend and which will be extracted to this bean
-
-
Method Detail
-
getDateValue
public java.util.Date getDateValue()
Returns the date value, if set.- Returns:
- Returns the date.
-
setDateValue
public void setDateValue(java.util.Date value)
Sets the date value, if set.- Parameters:
value- Date value
-
isBoolValue
public boolean isBoolValue()
Returns the boolean value, if set.- Returns:
- Returns the boolValue.
-
setBoolValue
public void setBoolValue(boolean value)
Sets the boolean value, if set.- Parameters:
value- bool value
-
getIntValue
public int getIntValue()
Returns the integer value, if set.- Returns:
- Returns the intValue.
-
setIntValue
public void setIntValue(int value)
Sets the integer value, if set.- Parameters:
value- int value
-
getFloatValue
public double getFloatValue()
Returns the float value, if set.- Returns:
- Returns the floatValue.
-
setFloatValue
public void setFloatValue(double value)
Sets the float value, if set.- Parameters:
value- double value
-
getStringValue
public java.lang.String getStringValue()
Returns the string value, if set.- Returns:
- Returns the stringValue.
-
setStringValue
public void setStringValue(java.lang.String value)
Sets the string value, if set.- Parameters:
value- string value
-
getValueType
public int getValueType()
Returns the value type.- Returns:
- Returns the valueType.
-
setValueType
public void setValueType(int value)
Sets the value type.- Parameters:
value- int value
-
getBinaryValue
public javax.activation.DataHandler getBinaryValue()
Returns the binary value, if set.- Returns:
- Returns the binary value.
-
setBinaryValue
public void setBinaryValue(javax.activation.DataHandler value)
Sets the binary value, if set.- Parameters:
value- binary value as a DataHandler
-
-