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

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

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

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.


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.