org.omus.data
Class BooleanField

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

public class BooleanField
extends DataField

The class corresponding to the boolean datatype in ActionScript.

See Also:
Serialized Form

Constructor Summary
BooleanField(java.lang.String n, boolean v)
          Creates a new BooleanField with the specified name and value.
 
Method Summary
 void accept(FieldVisitor fv)
          Accepts a visitor.
 boolean getBoolean()
          Returns the value of this BooleanField object as a boolean primitive.
 void setBoolean(boolean newValue)
          Sets the value of this BooleanField to the specified boolean primitive.
 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

BooleanField

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

getBoolean

public boolean getBoolean()
Returns the value of this BooleanField object as a boolean primitive.

setBoolean

public void setBoolean(boolean newValue)
Sets the value of this BooleanField to the specified boolean primitive.

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