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:
EOKeyValueArchiving, 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
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
ERD2WRule()
           
ERD2WRule(EOKeyValueUnarchiver eokeyvalueunarchiver)
           
 
Method Summary
 String assignmentClassName()
           
 ERD2WRule 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:
 
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(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.

Specified by:
encodeWithKeyValueArchiver in interface 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 String assignmentClassName()

cloneRule

public ERD2WRule cloneRule()

toString

public 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: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.