Package com.saperion.intf
Interface SaValue
-
public interface SaValue
A SaValue represents a single value contained in a field of a DDC for a specific document. Because DDCs can contain multivalue-fields,SaPropertyValue
is used to represent both single- and multivalue fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
asString()
Returns the string representation of this value.boolean
equalsContent(SaValue compareValue)
Compares the contents of compareValue with this object's contents.byte[]
getBinaryValue()
Returns the binary value as byte array, if set.boolean
getBoolValue()
Returns the boolean value, if set.java.util.Calendar
getCalendarValue()
Returns the date value, if set.short[]
getDateValue()
Returns the date value as array, if set.double
getFloatValue()
Returns the float value, if set.int
getIntValue()
Returns the integer value, if set.java.io.InputStream
getStreamValue()
Returns the binary value as stream, if set.java.lang.String
getStringValue()
Returns the string value, if set.int
getValueType()
Returns the value type.boolean
isNull()
Check whether the value type is not valid.void
setValueType(int type)
Sets the value type.java.lang.String
toString()
Returns the string representation of this value.
-
-
-
Method Detail
-
getBoolValue
boolean getBoolValue()
Returns the boolean value, if set.- Returns:
- Returns the boolValue.
-
getFloatValue
double getFloatValue()
Returns the float value, if set.- Returns:
- Returns the floatValue.
-
getIntValue
int getIntValue()
Returns the integer value, if set.- Returns:
- Returns the intValue.
-
getStringValue
java.lang.String getStringValue()
Returns the string value, if set.- Returns:
- Returns the stringValue.
-
getValueType
int getValueType()
Returns the value type.- Returns:
- Returns the valueType.
-
getDateValue
short[] getDateValue()
Returns the date value as array, if set.- Returns:
- Returns the datetime array.
-
getCalendarValue
java.util.Calendar getCalendarValue()
Returns the date value, if set.- Returns:
- Returns the date as calendar.
-
getBinaryValue
byte[] getBinaryValue()
Returns the binary value as byte array, if set.- Returns:
- Returns the binary value.
-
getStreamValue
java.io.InputStream getStreamValue()
Returns the binary value as stream, if set.- Returns:
- Returns the stream value.
-
asString
java.lang.String asString()
Returns the string representation of this value.- Returns:
- String representation of this value
-
isNull
boolean isNull()
Check whether the value type is not valid.- Returns:
- True, if the value type is 0
-
setValueType
void setValueType(int type)
Sets the value type.- Parameters:
type
- Value type.
-
equalsContent
boolean equalsContent(SaValue compareValue)
Compares the contents of compareValue with this object's contents.- Parameters:
compareValue
- Value to be compared.- Returns:
- result of content comparison
-
toString
java.lang.String toString()
Returns the string representation of this value.- Overrides:
toString
in classjava.lang.Object
- Returns:
- toString
- See Also:
Object.toString()
-
-