Package de.elo.ix.client
Class IndexValue
java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.IndexValue
- All Implemented Interfaces:
Serializable
This class is a container for one value of a serializable type. It represents the value of an
index line in aspect objects.
- Since:
- 20.00.000.100
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Human readable representation of value.protected double
Double value.protected int
Integer value.protected String
String value.
This internal field is shared between several types.protected int
Type.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags
-
Constructor Summary
ConstructorsConstructorDescriptionIndexValue
(double v) IndexValue
(int v) IndexValue
(int type, String v) IndexValue
(IndexValue rhs) IndexValue
(String v) Sets the type toIndexValueC.TYPE_STRING
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
int
int
getType()
int
hashCode()
void
setDisplayData
(String displayData) void
setDoubleValue
(double doubleValue) void
setIntValue
(int intValue) void
setIsoDateOnlyValue
(String value) void
setIsoDateTimeValue
(String value) void
setStringValue
(String stringValue) void
setType
(int type) void
setUserValue
(String userGuid) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
type
protected int typeType. One of the type constants given in IndexValueC.- See Also:
-
intValue
protected int intValueInteger value.- See Also:
-
doubleValue
protected double doubleValueDouble value.- See Also:
-
stringValue
String value.
This internal field is shared between several types. -
displayData
Human readable representation of value. This member is read-only and might not be set in server-side events.
For index fields of typeDocMaskLineC.TYPE_RELATION
, this member contains theSord.name
of the referenced Sord.
For index fields of typeAspectLineC.TYPE_STATUS
, this member contains, if present, the translated value according to the client's locale.
-
-
Constructor Details
-
IndexValue
public IndexValue() -
IndexValue
-
IndexValue
public IndexValue(int v) -
IndexValue
public IndexValue(double v) -
IndexValue
Sets the type toIndexValueC.TYPE_STRING
. If you want to get another value type, use the constructor with type parameter.- Parameters:
v
-
-
IndexValue
-
-
Method Details
-
getType
public int getType() -
setType
public void setType(int type) -
getIntValue
public int getIntValue() -
setIntValue
public void setIntValue(int intValue) -
getDoubleValue
public double getDoubleValue() -
setDoubleValue
public void setDoubleValue(double doubleValue) -
getStringValue
-
setStringValue
-
getIsoDateOnlyValue
-
setIsoDateOnlyValue
-
getIsoDateTimeValue
-
setIsoDateTimeValue
-
getUserValue
-
setUserValue
-
getDisplayData
-
setDisplayData
-
toString
-
hashCode
public int hashCode() -
equals
-