|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.lite.AbstractLiteObject
wt.units.service.DefaultDisplayUnitsHolder
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Hashtable |
defaultDisplayUnits
|
private Hashtable |
displayUnits
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Fields inherited from class wt.lite.AbstractLiteObject |
ILLEGAL_ACCESS, SERVER |
Fields inherited from interface wt.lite.Liteable |
UPDATE_COUNT |
Constructor Summary | |
DefaultDisplayUnitsHolder()
Supported API: false |
Method Summary | |
Object |
clone()
Supported API: false |
Enumeration |
defaultDisplayUnitsKeys()
Returns the keys to the default measurement system display units hashtable keys. |
Enumeration |
displayUnitsKeys()
Returns an enumeration of the keys to the internal hashtable. |
String |
getDefaultDisplayUnitString(String measurementSystemName)
Gets the default unit display string given the MeasurementSystem name . |
String |
getDisplayUnitString(String measurementSystemName)
Given a MeasurementSystem name as key, return the displayUnitString as return value. |
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(DefaultDisplayUnitsHolder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setDefaultDisplayUnitString(String measurementSystemName,
String defaultDisplayUnit)
Sets the default display unit string given the MeasurementSystem name as key. |
void |
setDisplayUnitString(String measurementSystemName,
String unitDisplayInfoString)
Sets a MeasurementSystem name as key, and an unitDisplayInfo String as value. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.lite.AbstractLiteObject |
compareUpdateCount, getHeavyObjectClassname, getLocalizedDisplayString, 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 Hashtable displayUnits
private Hashtable defaultDisplayUnits
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public DefaultDisplayUnitsHolder()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractLiteObject
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractLiteObject
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DefaultDisplayUnitsHolder 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 String getDisplayUnitString(String measurementSystemName)
getDisplayUnitString
in interface LiteDisplayUnitsHolder
measurementSystemName
-
public void setDisplayUnitString(String measurementSystemName, String unitDisplayInfoString)
setDisplayUnitString
in interface LiteDisplayUnitsHolder
measurementSystemName
- unitDisplayInfoString
- public Enumeration displayUnitsKeys()
displayUnitsKeys
in interface LiteDisplayUnitsHolder
public String getDefaultDisplayUnitString(String measurementSystemName)
getDefaultDisplayUnitString
in interface LiteDisplayUnitsHolder
measurementSystemName
-
public void setDefaultDisplayUnitString(String measurementSystemName, String defaultDisplayUnit)
setDefaultDisplayUnitString
in interface LiteDisplayUnitsHolder
measurementSystemName
- defaultDisplayUnit
- public Enumeration defaultDisplayUnitsKeys()
defaultDisplayUnitsKeys
in interface LiteDisplayUnitsHolder
public Object clone()
clone
in interface LiteDisplayUnitsHolder
clone
in class AbstractLiteObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |