Project Wonder 2.0

er.directtoweb
Class ERD2WModel._PatchedRule

java.lang.Object
  extended bycom.webobjects.directtoweb.Rule
      extended byer.directtoweb.ERD2WModel._PatchedRule
All Implemented Interfaces:
EOKeyValueArchiving, Serializable
Enclosing class:
ERD2WModel

public static class ERD2WModel._PatchedRule
extends Rule

Rule class that works around two problems:


In order to be usable with the D2WClient and Rule editor, we also patch the encoded dictionary so these tools find no trace of the patched rules.

Author:
ak
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Field Summary
 
Fields inherited from class com.webobjects.directtoweb.Rule
authorKey, DIRECT_2_WEB, lhsKey, rhsKey, WEB_ASSISTANT, WEB_ASSISTANT_PAGE_AVAILABLE
 
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
_CLASS
 
Constructor Summary
ERD2WModel._PatchedRule()
           
ERD2WModel._PatchedRule(EOKeyValueUnarchiver eokeyvalueunarchiver)
           
 
Method Summary
 String assignmentClassName()
           
 ERD2WModel._PatchedRule cloneRule()
           
static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
           
 void encodeWithKeyValueArchiver(EOKeyValueArchiver eokeyvaluearchiver)
          Overridden to patch the normal rule class name into the generated dictionary.
 int priority()
          Overridden to work around
 String toString()
          Builds a string like:
100: ((entity.name = 'Bug') and (task = 'edit')) => isInspectable = true [com.directtowen.BooleanAssignment]
 
Methods inherited from class com.webobjects.directtoweb.Rule
_lhsToString, author, canFireInContext, compareRules, createAssignment, dataTypesInvolved, dynamicPagesInvolved, fire, firstDynamicPageNameInvolved, firstEntityInvolved, firstPropertyKeyInvolved, firstTaskInvolved, hasSameSettingsAs, isEntityPermissionRule, isEntityRule, isLookRule, isStartupRule, isTaskRule, lhs, rhs, rhsKeyPath, rhsKeyPathHash, setLhs, setRhs, tasksInvolved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERD2WModel._PatchedRule

public ERD2WModel._PatchedRule()

ERD2WModel._PatchedRule

public ERD2WModel._PatchedRule(EOKeyValueUnarchiver eokeyvalueunarchiver)
Method Detail

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)

encodeWithKeyValueArchiver

public void encodeWithKeyValueArchiver(EOKeyValueArchiver eokeyvaluearchiver)
Overridden to patch the normal rule class name into the generated dictionary.

See Also:
EOKeyValueArchiving.encodeWithKeyValueArchiver(com.webobjects.eocontrol.EOKeyValueArchiver)

priority

public int priority()
Overridden to work around

See Also:
Rule.priority()

assignmentClassName

public String assignmentClassName()

cloneRule

public ERD2WModel._PatchedRule cloneRule()

toString

public String toString()
Builds a string like:
   100: ((entity.name = 'Bug') and (task = 'edit')) => isInspectable = true [com.directtowen.BooleanAssignment]

Returns:
a nice description of the rule

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.