wt.iba.value.litevalue
Class RatioValueDefaultView

java.lang.Object
  extended bywt.lite.AbstractLiteObject
      extended bywt.iba.value.litevalue.AbstractValueView
          extended bywt.iba.value.litevalue.AbstractContextualValueDefaultView
              extended bywt.iba.value.litevalue.RatioValueDefaultView
All Implemented Interfaces:
Cloneable, Externalizable, Liteable, LocalizedStringDisplayable, Serializable

public class RatioValueDefaultView
extends AbstractContextualValueDefaultView
implements Externalizable

Lightweight version of RatioValue class

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  double denominator
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private  RatioDefView ratioDefinition
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
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
RatioValueDefaultView()
          

Supported API: false
RatioValueDefaultView(RatioDefView attributeDefinition)
          

Supported API: false
RatioValueDefaultView(RatioDefView attributeDefinition, double value, double denominator)
          

Supported API: false
RatioValueDefaultView(RatioDefView attributeDefinition, ReferenceValueDefaultView referenceValue, double value, double denominator, ObjectIdentifier objectID, int updateCount)
          

Supported API: false
 
Method Summary
 Object clone()
          

Supported API: false
 int compareTo(AbstractValueView valueView)
          

Supported API: false
 AttributeDefDefaultView getDefinition()
          

Supported API: false
 double getDenominator()
          Gets the value of the attribute: denominator.
 String getLocalizedDisplayString()
          

Supported API: false
 String getLocalizedDisplayString(Locale locale)
           
 RatioDefView getRatioDefinition()
          Gets the value of the attribute: ratioDefinition.
 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(RatioValueDefaultView thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setDenominator(double a_Denominator)
          Sets the value of the attribute: denominator.
 void setRatioDefinition(RatioDefView a_RatioDefinition)
          Sets the value of the attribute: ratioDefinition.
 void setValue(double a_Value)
          Sets the value of the attribute: value.
 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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

ratioDefinition

private RatioDefView ratioDefinition

value

private double value

denominator

private double denominator

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

RatioValueDefaultView

public RatioValueDefaultView()


Supported API: false


RatioValueDefaultView

public RatioValueDefaultView(RatioDefView attributeDefinition)
                      throws IBAValueException


Supported API: false

Parameters:
attributeDefinition -
Throws:
IBAValueException

RatioValueDefaultView

public RatioValueDefaultView(RatioDefView attributeDefinition,
                             double value,
                             double denominator)
                      throws IBAValueException


Supported API: false

Parameters:
attributeDefinition -
value -
denominator -
Throws:
IBAValueException

RatioValueDefaultView

public RatioValueDefaultView(RatioDefView attributeDefinition,
                             ReferenceValueDefaultView referenceValue,
                             double value,
                             double denominator,
                             ObjectIdentifier objectID,
                             int updateCount)
                      throws IBAValueException


Supported API: false

Parameters:
attributeDefinition -
referenceValue -
value -
denominator -
objectID -
updateCount -
Throws:
IBAValueException
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AbstractContextualValueDefaultView
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AbstractContextualValueDefaultView
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(RatioValueDefaultView thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getRatioDefinition

public RatioDefView getRatioDefinition()
Gets the value of the attribute: ratioDefinition.

Supported API: false

Returns:
RatioDefView

setRatioDefinition

public void setRatioDefinition(RatioDefView a_RatioDefinition)
                        throws WTPropertyVetoException
Sets the value of the attribute: ratioDefinition.

Supported API: false

Parameters:
a_RatioDefinition -
Throws:
WTPropertyVetoException

getValue

public double getValue()
Gets the value of the attribute: value.

Supported API: false

Returns:
double

setValue

public void setValue(double a_Value)
              throws WTPropertyVetoException
Sets the value of the attribute: value.

Supported API: false

Parameters:
a_Value -
Throws:
WTPropertyVetoException

getDenominator

public double getDenominator()
Gets the value of the attribute: denominator.

Supported API: false

Returns:
double

setDenominator

public void setDenominator(double a_Denominator)
                    throws WTPropertyVetoException
Sets the value of the attribute: denominator.

Supported API: false

Parameters:
a_Denominator -
Throws:
WTPropertyVetoException

clone

public Object clone()


Supported API: false

Overrides:
clone in class AbstractContextualValueDefaultView
Returns:
Object

compareTo

public int compareTo(AbstractValueView valueView)
              throws IBAValueException


Supported API: false

Specified by:
compareTo in class AbstractContextualValueDefaultView
Parameters:
valueView -
Returns:
int
Throws:
IBAValueException

getDefinition

public AttributeDefDefaultView getDefinition()


Supported API: false

Specified by:
getDefinition in class AbstractContextualValueDefaultView
Returns:
AttributeDefDefaultView

getLocalizedDisplayString

public String getLocalizedDisplayString()


Supported API: false

Specified by:
getLocalizedDisplayString in interface LocalizedStringDisplayable
Specified by:
getLocalizedDisplayString in class AbstractContextualValueDefaultView
Returns:
String

getValueAsString

public String getValueAsString()


Supported API: false

Specified by:
getValueAsString in class AbstractContextualValueDefaultView
Returns:
String

getLocalizedDisplayString

public String getLocalizedDisplayString(Locale locale)
Overrides:
getLocalizedDisplayString in class AbstractValueView