wt.ixb.handlers.netmarkets
Class RuleConflictHolder
java.lang.Object
wt.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.
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 |
_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
RuleConflictHolder
private RuleConflictHolder()
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)