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

public class SelectionRule
extends `Object`

Hierarchy
  `Object`
  `SelectionRule`

## Field Summary

`public static final `String`` | `cName` String
`public static final int` | `LONG` int
`public static final int` | `SHORT` int

## Constructor Summary

SelectionRule(`QualificationDiscountId` id, `DiscountRule` ruleXML, `RuleType` type, `List` qualifierSpecs, `List` targetSpecs, int setLimit) Use this constructor if the qualifier is set based
SelectionRule(`QualificationDiscountId` id, `DiscountRule` ruleXML, `RuleType` type, `List` qualifierSpecs, `List` targetSpecs) Use this constructor if the qualifier is NOT set based

## Method Summary

`public boolean` | `eachQualifier`()
`public `QualificationDiscountId`` | `getID`()
`public `List`` | `getQualifierSpecs`() valid for order rules only
`public `DiscountRule`` | `getRule`()
`public `String`` | `getRuleString`()
`public int` | `getSetLimit`() valid for item rules only
`public `List`` | `getTargetSpecs`()
`public `RuleType`` | `getType`()
`public boolean` | `isSet`() valid for item rules only
`public `String`` | `toString`()
`public `String`` | `toString`(int control)

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

## Field Detail

### cName

    public static final String cName

### LONG

    public static final int LONG

### SHORT

    public static final int SHORT

## Constructor Detail

### SelectionRule

    public SelectionRule(QualificationDiscountId id,
                         DiscountRule ruleXML,
                         RuleType type,
                         List qualifierSpecs,
                         List targetSpecs,
                         int setLimit)

  Use this constructor if the qualifier is set based

### SelectionRule

    public SelectionRule(QualificationDiscountId id,
                         DiscountRule ruleXML,
                         RuleType type,
                         List qualifierSpecs,
                         List targetSpecs)

  Use this constructor if the qualifier is NOT set based

## Method Detail

### eachQualifier() Method

    public boolean eachQualifier()

### getID() Method

    public QualificationDiscountId getID()

### getQualifierSpecs() Method

    public List getQualifierSpecs()

valid for order rules only

### getRule() Method

    public DiscountRule getRule()

### getRuleString() Method

    public String getRuleString()

### getSetLimit() Method

    public int getSetLimit()

valid for item rules only

### getTargetSpecs() Method

    public List getTargetSpecs()

### getType() Method

    public RuleType getType()

### isSet() Method

    public boolean isSet()

valid for item rules only

### toString() Method

    public String toString()

Overrides
  `Object.toString()`

### toString(int) Method

    public String toString(int control)