# com.bea.campaign
Goal Interface

public interface Goal
extends `Serializable`

The public interface of a campaign goal.

All Known Implementing Classes
  `AdCountGoal`

All Superinterfaces
  `Serializable`

## Method Summary

`public boolean` | `hasBeenMet`(`CampaignService` service, `Campaign` campaign) Determine if this goal has been met.
`public void` | `init`(`Element` e) Initialize the goal from an XML element.
`public void` | `printXML`(`Writer` out) Print this goal as an XML fragment.

## Method Detail

### hasBeenMet(CampaignService, Campaign) Method

    public boolean hasBeenMet(CampaignService service,
                              Campaign campaign)
         throws Exception

Determine if this goal has been met.

#### Parameters

service
  the CampaignService to use.

campaign
  the Campaign to check under.

#### Returns

true if this goal has been met, false if not.

#### Exceptions

``Exception``
  thrown on an error.

### init(Element) Method

    public void init(Element e)
         throws IllegalArgumentException

Initialize the goal from an XML element.

#### Parameters

e
  the DOM element.

#### Exceptions

``IllegalArgumentException``
  thrown on an invalid DOM structure.

### printXML(Writer) Method

    public void printXML(Writer out)
         throws IOException

Print this goal as an XML fragment.

#### Parameters

out
  the output writer.

#### Exceptions

``IOException``
  thrown on an I/O error.