|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.lite.AbstractLiteObject
wt.iba.value.litevalue.AbstractValueView
wt.iba.value.litevalue.AbstractContextualValueDefaultView
wt.iba.value.litevalue.UnitValueDefaultView
Lightweight version of UnitValue class
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private int |
precision
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private UnitDefView |
unitDefinition
|
private double |
value
|
Fields inherited from class wt.iba.value.litevalue.AbstractContextualValueDefaultView |
|
Fields inherited from class wt.iba.value.litevalue.AbstractValueView |
CHANGED_STATE, DELETED_STATE, NEW_STATE, UNCHANGED_STATE, UNINITIALIZED_STATE |
Fields inherited from class wt.lite.AbstractLiteObject |
ILLEGAL_ACCESS, SERVER |
Fields inherited from interface wt.lite.Liteable |
UPDATE_COUNT |
Constructor Summary | |
UnitValueDefaultView()
Supported API: false |
|
UnitValueDefaultView(UnitDefView attributeDefinition)
Supported API: false |
|
UnitValueDefaultView(UnitDefView attributeDefinition,
double value,
int precision)
Supported API: false |
|
UnitValueDefaultView(UnitDefView attributeDefinition,
ReferenceValueDefaultView referenceValue,
double value,
int precision,
ObjectIdentifier objectID,
int updateCount)
Supported API: false |
Method Summary | |
Object |
clone()
Supported API: false |
int |
compareTo(AbstractValueView valueView)
Compare the value. |
AttributeDefDefaultView |
getDefinition()
Supported API: false |
String |
getLocalizedDisplayString()
Supported API: false |
String |
getLocalizedDisplayString(Locale locale)
|
int |
getPrecision()
Gets the value of the attribute: precision. |
UnitDefView |
getUnitDefinition()
Gets the value of the attribute: unitDefinition. |
DefaultUnitDisplayInfo |
getUnitDisplayInfo(String measurementSystem)
Supported API: false |
double |
getValue()
Gets the value of the attribute: value. |
String |
getValueAsString()
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(UnitValueDefaultView thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setPrecision(int a_Precision)
Sets the value of the attribute: precision. |
void |
setUnitDefinition(UnitDefView a_UnitDefinition)
Sets the value of the attribute: unitDefinition. |
void |
setValue(double a_Value)
Sets the value of the attribute: value. |
Unit |
toUnit()
Supported API: false |
void |
updateFromUnit(Unit unit)
Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.iba.value.litevalue.AbstractContextualValueDefaultView |
getReferenceValueDefaultView, readVersion, setReferenceValueDefaultView |
Methods inherited from class wt.iba.value.litevalue.AbstractValueView |
getKey, getState, readVersion, setKey, setState, setStateAsDeleted, setStateDirty |
Methods inherited from class wt.lite.AbstractLiteObject |
compareUpdateCount, getHeavyObjectClassname, getObjectID, getUpdateCount, isPersistedObjectEqual, readVersion, setLocalizedDisplayString, setObjectID, setUpdateCount |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private UnitDefView unitDefinition
private double value
private int precision
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public UnitValueDefaultView()
public UnitValueDefaultView(UnitDefView attributeDefinition) throws IBAValueException
attributeDefinition
-
IBAValueException
public UnitValueDefaultView(UnitDefView attributeDefinition, double value, int precision) throws IBAValueException
attributeDefinition
- value
- precision
-
IBAValueException
public UnitValueDefaultView(UnitDefView attributeDefinition, ReferenceValueDefaultView referenceValue, double value, int precision, ObjectIdentifier objectID, int updateCount) throws IBAValueException
attributeDefinition
- referenceValue
- value
- precision
- objectID
- updateCount
-
IBAValueException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractContextualValueDefaultView
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractContextualValueDefaultView
input
-
IOException
ClassNotFoundException
protected boolean readVersion(UnitValueDefaultView thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public UnitDefView getUnitDefinition()
public void setUnitDefinition(UnitDefView a_UnitDefinition) throws WTPropertyVetoException
a_UnitDefinition
-
WTPropertyVetoException
public double getValue()
public void setValue(double a_Value) throws WTPropertyVetoException
a_Value
-
WTPropertyVetoException
public int getPrecision()
public void setPrecision(int a_Precision) throws WTPropertyVetoException
a_Precision
-
WTPropertyVetoException
public int compareTo(AbstractValueView valueView) throws IBAValueException
compareTo
in class AbstractContextualValueDefaultView
valueView
-
IBAValueException
public Object clone()
clone
in class AbstractContextualValueDefaultView
public void updateFromUnit(Unit unit) throws IncompatibleUnitsException, WTPropertyVetoException
unit
-
IncompatibleUnitsException
WTPropertyVetoException
public Unit toUnit()
public DefaultUnitDisplayInfo getUnitDisplayInfo(String measurementSystem)
measurementSystem
-
public AttributeDefDefaultView getDefinition()
getDefinition
in class AbstractContextualValueDefaultView
public String getLocalizedDisplayString()
getLocalizedDisplayString
in interface LocalizedStringDisplayable
getLocalizedDisplayString
in class AbstractContextualValueDefaultView
public String getValueAsString()
getValueAsString
in class AbstractContextualValueDefaultView
public String getLocalizedDisplayString(Locale locale)
getLocalizedDisplayString
in class AbstractValueView
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |