# com.bea.campaign.rules
AddAdToPlaceholderActionDef Class

public class AddAdToPlaceholderActionDef
extends `ActionDef`

An action definition specific to the AddAdToPlaceholderAction.

Related Topics

``AddAdToPlaceholderAction``

Hierarchy
  `Object`
  `ActionDef`
  `AddAdToPlaceholderActionDef`

All Implemented Interfaces
  `Serializable`

## Field Summary

`public static final int` | `HIGH` The "High" weight.
`public static final int` | `HIGHEST` The "Highest" weight.
`public static final int` | `LOW` The "Low" weight.
`public static final int` | `LOWEST` The "Lowest" weight.
`public static final int` | `MEDIUM` The "Medium" weight (same as NORMAL).
`public static final int` | `NORMAL` The "Normal" weight.

## Constructor Summary

AddAdToPlaceholderActionDef(`String` placeholders, `String` weight, `ContentQueryNode` contentQuery, `String` ttlStr, `TimeInstant` expireDate, `String` clearingPolicy) Master constructor.
AddAdToPlaceholderActionDef(`String` placeholders, `String` weight, `ContentQueryNode` contentQuery, `String` ttlStr, `TimeInstant` expireDate) Constructor.
AddAdToPlaceholderActionDef(`String` placeholders, `String` weight, `ContentQueryNode` contentQuery) Constructor.
AddAdToPlaceholderActionDef(`Collection` placeholders, `String` weight, `ContentQueryNode` contentQuery, `String` ttlStr, `TimeInstant` expireDate, `String` clearingPolicy) Constructor.
AddAdToPlaceholderActionDef(`Collection` placeholders, `String` weight, `ContentQueryNode` contentQuery, `String` ttlStr, `TimeInstant` expireDate) Constructor.
AddAdToPlaceholderActionDef(`Collection` placeholders, `String` weight, `ContentQueryNode` contentQuery) Constructor.

## Method Summary

`public static int` | `getWeight`(`String` weight) Convert the "Highest"..."

Methods from `com.bea.campaign.action.`ActionDef``
``createAction`, `getActionParams`, `getActionService`, `getActionType`, `setActionParams`, `setActionType``

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

## Field Detail

### HIGH

    public static final int HIGH

  The "High" weight.

### HIGHEST

    public static final int HIGHEST

  The "Highest" weight.

### LOW

    public static final int LOW

  The "Low" weight.

### LOWEST

    public static final int LOWEST

  The "Lowest" weight.

### MEDIUM

    public static final int MEDIUM

  The "Medium" weight (same as NORMAL).

### NORMAL

    public static final int NORMAL

  The "Normal" weight.

## Constructor Detail

### AddAdToPlaceholderActionDef

    public AddAdToPlaceholderActionDef(String[] placeholders,
                                       String weight,
                                       ContentQueryNode contentQuery,
                                       String ttlStr,
                                       TimeInstant expireDate,
                                       String clearingPolicy)

  Master constructor.

### AddAdToPlaceholderActionDef

    public AddAdToPlaceholderActionDef(String[] placeholders,
                                       String weight,
                                       ContentQueryNode contentQuery,
                                       String ttlStr,
                                       TimeInstant expireDate)

  Constructor.

### AddAdToPlaceholderActionDef

    public AddAdToPlaceholderActionDef(String[] placeholders,
                                       String weight,
                                       ContentQueryNode contentQuery)

  Constructor.

### AddAdToPlaceholderActionDef

    public AddAdToPlaceholderActionDef(Collection placeholders,
                                       String weight,
                                       ContentQueryNode contentQuery,
                                       String ttlStr,
                                       TimeInstant expireDate,
                                       String clearingPolicy)

  Constructor.

### AddAdToPlaceholderActionDef

    public AddAdToPlaceholderActionDef(Collection placeholders,
                                       String weight,
                                       ContentQueryNode contentQuery,
                                       String ttlStr,
                                       TimeInstant expireDate)

  Constructor.

### AddAdToPlaceholderActionDef

    public AddAdToPlaceholderActionDef(Collection placeholders,
                                       String weight,
                                       ContentQueryNode contentQuery)

  Constructor.

## Method Detail

### getWeight(String) Method

    public static int getWeight(String weight)

Convert the "Highest"..."Lowest" weight string to a 5..1 number.