|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.directtoweb.Assignment com.webobjects.directtoweb.BooleanAssignment
The BooleanAssignment class performs assignment of a key to an object that represents a logical "true" or "false" value.
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 |
public BooleanAssignment(String keyPath, Object 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.
keyPath
- the key pathvalue
- instance of Number or StringAssignment.Assignment(String, Object)
,
D2WModel.Zero
,
D2WModel.One
public BooleanAssignment(EOKeyValueUnarchiver unarchiver)
This is used to read the assignment information from a rule file.
unarchiver
- instance of EOKeyValueUnarchiverBooleanAssignment(String, Object)
,
Assignment.Assignment(EOKeyValueUnarchiver)
Method Detail |
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
Assignment
public void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
Assignment
encodeWithKeyValueArchiver
in interface EOKeyValueArchiving
encodeWithKeyValueArchiver
in class Assignment
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |