WebObjects 5.4.2

com.webobjects.directtoweb
Class BooleanAssignment

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface 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)
           
 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.BooleanAssignment(String, Object), Assignment.Assignment(EOKeyValueUnarchiver)
Method Detail

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
Parameters:
archiver - the EOKeyValueArchiver
See Also:
EOKeyValueArchiver

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)

Last updated June 2008

Copyright © 2000-2008 Apple Inc.