Project Wonder 5.0

er.directtoweb
Class ERD2WRule

java.lang.Object
  extended by com.webobjects.directtoweb.Rule
      extended by er.directtoweb.ERD2WRule
All Implemented Interfaces:
com.webobjects.eocontrol.EOKeyValueArchiving, java.io.Serializable

public class ERD2WRule
extends com.webobjects.directtoweb.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.

See Also:
Serialized Form
Author:
ak

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.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
ERD2WRule()
           
ERD2WRule(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
           
 
Method Summary
 java.lang.String assignmentClassName()
           
 ERD2WRule cloneRule()
           
static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
           
 void encodeWithKeyValueArchiver(com.webobjects.eocontrol.EOKeyValueArchiver eokeyvaluearchiver)
          Overridden to patch the normal rule class name into the generated dictionary.
 int priority()
          Overridden to work around
 java.lang.String toString()
          Builds a string like:
 
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

ERD2WRule

public ERD2WRule()

ERD2WRule

public ERD2WRule(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
Method Detail

decodeWithKeyValueUnarchiver

public static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)

encodeWithKeyValueArchiver

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

Specified by:
encodeWithKeyValueArchiver in interface com.webobjects.eocontrol.EOKeyValueArchiving
Overrides:
encodeWithKeyValueArchiver in class com.webobjects.directtoweb.Rule
See Also:
EOKeyValueArchiving.encodeWithKeyValueArchiver(com.webobjects.eocontrol.EOKeyValueArchiver)

priority

public int priority()
Overridden to work around

Overrides:
priority in class com.webobjects.directtoweb.Rule
See Also:
Rule.priority()

assignmentClassName

public java.lang.String assignmentClassName()

cloneRule

public ERD2WRule cloneRule()

toString

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

Overrides:
toString in class com.webobjects.directtoweb.Rule
Returns:
a nice description of the rule

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.