WebObjects 5.2.3

com.webobjects.directtoweb
Class BooleanAssignment

java.lang.Object
  extended bycom.webobjects.directtoweb.Assignment
      extended bycom.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

Nested Class Summary
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving
EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Field Summary
 
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.

Specified by:
encodeWithKeyValueArchiver in interface EOKeyValueArchiving
Overrides:
encodeWithKeyValueArchiver in class Assignment

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.