Goal Interface
- public interface Goal
extends Serializable
The public interface of a campaign goal.
-
All Known Implementing Classes
-
AdCountGoal
-
All Superinterfaces
-
Serializable
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.