org.omus.data
Class DoubleField

java.lang.Object
  |
  +--org.omus.data.DataField
        |
        +--org.omus.data.DoubleField
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class DoubleField
extends DataField

The class corresponding to the number datatype in ActionScript.

See Also:
Serialized Form

Constructor Summary
DoubleField(java.lang.String n, double v)
          Creates a new DoubleField with the specified name and value.
 
Method Summary
 void accept(FieldVisitor fv)
          Accepts a visitor.
 double getDouble()
          Returns the value of this DoubleField as a double.
 void setDouble(double newValue)
          Sets the value of this DoubleField to the specified double.
 java.lang.String toString()
           
 
Methods inherited from class org.omus.data.DataField
addListener, appendMarshalledField, clone, getMarshalledField, getName, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleField

public DoubleField(java.lang.String n,
                   double v)
Creates a new DoubleField with the specified name and value.
Method Detail

getDouble

public double getDouble()
Returns the value of this DoubleField as a double.

setDouble

public void setDouble(double newValue)
Sets the value of this DoubleField to the specified double.

accept

public void accept(FieldVisitor fv)
Description copied from class: DataField
Accepts a visitor. The visitor pattern is useful if you want to extend the functionality of all DataFields without modifying their API.
Overrides:
accept in class DataField

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object