WebObjects 5.2

com.webobjects.directtoweb
Class BooleanAssignment

java.lang.Object
  |
  +--com.webobjects.directtoweb.Assignment
        |
        +--com.webobjects.directtoweb.BooleanAssignment
All Implemented Interfaces:
EOKeyValueArchiving, Serializable

public class BooleanAssignment
extends Assignment

The BooleanAssignment class performs assignment of a key to an object that represents a logical "true" or "false" value.

See Also:
Serialized Form

Inner classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving
EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Fields inherited from class com.webobjects.directtoweb.Assignment
KeyPathKey, ValueKey
 
Constructor Summary
BooleanAssignment(EOKeyValueUnarchiver unarchiver)
          Creates an instance of BooleanAssignment based on an EOKeyValueUnarchiver.
BooleanAssignment(String keyPath, Object value)
          Creates an instance of BooleanAssignment with the specified key path and value.
 
Method Summary
static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
          This method is intentionally undocumented.
 void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
          This method is intentionally undocumented.
 
Methods inherited from class com.webobjects.directtoweb.Assignment
fire, keyPath, toString, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanAssignment

public BooleanAssignment(String keyPath,
                         Object value)
Creates an instance of BooleanAssignment with the specified key path and value.

The current implementation uses D2WModel.Zero and D2WModel.One to represent "false" and "true" values, respectively. Any instance of Number that has a primitive integer value of 1 is mapped to One. The strings "true" and "1" are mapped to One, too. All other numbers and strings are mapped to Zero.

The implementation is subject to change in future releases.

Parameters:
keyPath - the key path
value - instance of Number or String
See Also:
Assignment.Assignment(String, Object), D2WModel.Zero, D2WModel.One

BooleanAssignment

public BooleanAssignment(EOKeyValueUnarchiver unarchiver)
Creates an instance of BooleanAssignment based on an EOKeyValueUnarchiver.

This is used to read the assignment information from a rule file.

Parameters:
unarchiver - instance of EOKeyValueUnarchiver
See Also:
BooleanAssignment(String, Object), Assignment.Assignment(EOKeyValueUnarchiver)
Method Detail

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
Description copied from class: Assignment
This method is intentionally undocumented. You should never have to invoke or customize it.

encodeWithKeyValueArchiver

public void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
Description copied from class: Assignment
This method is intentionally undocumented. You should never have to invoke or customize it.
Overrides:
encodeWithKeyValueArchiver in class Assignment
Following copied from interface: com.webobjects.eocontrol.EOKeyValueArchiving
Parameters:
archiver - the EOKeyValueArchiver
See Also:
EOKeyValueArchiver

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.