wt.ixb.handlers.netmarkets
Class RuleConflictHolder

java.lang.Object
  extended bywt.ixb.handlers.netmarkets.RuleConflictHolder

public class RuleConflictHolder
extends Object

This class is used during the import of rules to resolve rule conflicts.It encapsulates the details of how to resolve a rule confilct.


Field Summary
private static String _rb
           
private  boolean defaultRule
           
private static Object[] EMPTY_ARRAY
           
private  boolean enabled
           
(package private)  NMProjectConstants.EngineRuleInfo engineTags
           
private  Rule existingRule
           
private static int maxRuleNameLength
           
private  boolean needNewRule
           
private  boolean orgRule
           
private  XMLLob ruleLob
           
private  String ruleName
           
private  RuleType ruleType
           
private  boolean updateNeeded
           
 
Constructor Summary
private RuleConflictHolder()
           
 
Method Summary
static Rule findRule(String ruleNameStr, WTContainer cont, RuleType type)
           
 Rule getExistingRule()
           
 XMLLob getRuleLob()
           
 String getRuleName()
           
private  void initialize(WTContainerRef contRef, String ruleNameStr, RuleType ruleType, IxbElement elem, Importer imp)
           
private  void initialize(WTContainer cont, String ruleNameStr, IxbElement elem, Importer imp)
           
 boolean isDefault()
           
 boolean isEnabled()
           
private  boolean isRuleEquivalent(Rule existingRule, IxbElement elem, Importer imp)
           
 boolean needNewRule()
           
static RuleConflictHolder newRuleConflictHolder(WTContainerRef contRef, String ruleNameStr, RuleType ruleType, IxbElement elem, Importer imp)
           
private  void populateOtherFlags(IxbElement elem)
           
private  Boolean processBooleanStr(String str)
           
private  String removeWhiteSpace(String str)
           
 boolean updateNeeded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rb

private static final String _rb
See Also:
Constant Field Values

EMPTY_ARRAY

private static final Object[] EMPTY_ARRAY

engineTags

NMProjectConstants.EngineRuleInfo engineTags

orgRule

private boolean orgRule

needNewRule

private boolean needNewRule

defaultRule

private boolean defaultRule

enabled

private boolean enabled

ruleLob

private XMLLob ruleLob

maxRuleNameLength

private static final int maxRuleNameLength
See Also:
Constant Field Values

updateNeeded

private boolean updateNeeded

ruleName

private String ruleName

ruleType

private RuleType ruleType

existingRule

private Rule existingRule
Constructor Detail

RuleConflictHolder

private RuleConflictHolder()
Method Detail

getExistingRule

public Rule getExistingRule()
                     throws WTException
Throws:
WTException

getRuleLob

public XMLLob getRuleLob()

updateNeeded

public boolean updateNeeded()

getRuleName

public String getRuleName()

needNewRule

public boolean needNewRule()

isEnabled

public boolean isEnabled()

isDefault

public boolean isDefault()

newRuleConflictHolder

public static RuleConflictHolder newRuleConflictHolder(WTContainerRef contRef,
                                                       String ruleNameStr,
                                                       RuleType ruleType,
                                                       IxbElement elem,
                                                       Importer imp)
                                                throws WTException
Throws:
WTException

initialize

private void initialize(WTContainerRef contRef,
                        String ruleNameStr,
                        RuleType ruleType,
                        IxbElement elem,
                        Importer imp)
                 throws WTException
Throws:
WTException

populateOtherFlags

private void populateOtherFlags(IxbElement elem)
                         throws WTException
Throws:
WTException

initialize

private void initialize(WTContainer cont,
                        String ruleNameStr,
                        IxbElement elem,
                        Importer imp)
                 throws WTException
Throws:
WTException

isRuleEquivalent

private boolean isRuleEquivalent(Rule existingRule,
                                 IxbElement elem,
                                 Importer imp)
                          throws WTException
Throws:
WTException

findRule

public static final Rule findRule(String ruleNameStr,
                                  WTContainer cont,
                                  RuleType type)
                           throws WTException
Throws:
WTException

processBooleanStr

private Boolean processBooleanStr(String str)

removeWhiteSpace

private String removeWhiteSpace(String str)