Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.campaign
Interface Goal

All Superinterfaces:
  Serializable

All Known Implementing Classes:
  AdCountGoal

public interface Goal
extends Serializable

The public interface of a campaign goal.

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

Method Detail

### hasBeenMet

    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.
  Throws:
    `Exception` - thrown on an error.

### init

    public void init(Element e)
              throws IllegalArgumentException

  Initialize the goal from an XML element.

  Parameters:
    `e` - the DOM element.
  Throws:
    `IllegalArgumentException` - thrown on an invalid DOM structure.

### printXML

    public void printXML(Writer out)
                  throws IOException

  Print this goal as an XML fragment.

  Parameters:
    `out` - the output writer.
  Throws:
    `IOException` - thrown on an I/O error.

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved