© 2002 BEA Systems, Inc.


com.bea.commerce.ebusiness.price.engine
Class SelectionRule

java.lang.Object
  |
  +--com.bea.commerce.ebusiness.price.engine.SelectionRule

public class SelectionRule
extends java.lang.Object


Field Summary
static java.lang.String cName
           
static int LONG
           
static int SHORT
           
 
Constructor Summary
SelectionRule(QualificationDiscountId id, DiscountRule ruleXML, RuleType type, java.util.List qualifierSpecs, java.util.List targetSpecs)
          Use this constructor if the qualifier is NOT set based
SelectionRule(QualificationDiscountId id, DiscountRule ruleXML, RuleType type, java.util.List qualifierSpecs, java.util.List targetSpecs, int setLimit)
          Use this constructor if the qualifier is set based
 
Method Summary
 boolean eachQualifier()
           
 QualificationDiscountId getID()
           
 java.util.List getQualifierSpecs()
          valid for order rules only
 DiscountRule getRule()
           
 java.lang.String getRuleString()
           
 int getSetLimit()
          valid for item rules only
 java.util.List getTargetSpecs()
           
 RuleType getType()
           
 boolean isSet()
          valid for item rules only
 java.lang.String toString()
           
 java.lang.String toString(int control)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cName

public static final java.lang.String cName

SHORT

public static final int SHORT

LONG

public static final int LONG
Constructor Detail

SelectionRule

public SelectionRule(QualificationDiscountId id,
                     DiscountRule ruleXML,
                     RuleType type,
                     java.util.List qualifierSpecs,
                     java.util.List targetSpecs)
Use this constructor if the qualifier is NOT set based

SelectionRule

public SelectionRule(QualificationDiscountId id,
                     DiscountRule ruleXML,
                     RuleType type,
                     java.util.List qualifierSpecs,
                     java.util.List targetSpecs,
                     int setLimit)
Use this constructor if the qualifier is set based
Method Detail

getType

public RuleType getType()

eachQualifier

public boolean eachQualifier()

getSetLimit

public int getSetLimit()
valid for item rules only

isSet

public boolean isSet()
valid for item rules only

getQualifierSpecs

public java.util.List getQualifierSpecs()
valid for order rules only

getTargetSpecs

public java.util.List getTargetSpecs()

getID

public QualificationDiscountId getID()

getRule

public DiscountRule getRule()

getRuleString

public java.lang.String getRuleString()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int control)

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved