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
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 pathvalue
- 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)
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
Copyright © 2003 Apple Computer, Inc.