com.bea.commerce.campaign
Interface Goal
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- AdCountGoal
- public interface Goal
- extends java.io.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(org.w3c.dom.Element e)
Initialize the goal from an XML element. |
void |
printXML(java.io.Writer out)
Print this goal as an XML fragment. |
hasBeenMet
public boolean hasBeenMet(CampaignService service,
Campaign campaign)
throws java.lang.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:
java.lang.Exception
- thrown on an error.
init
public void init(org.w3c.dom.Element e)
throws java.lang.IllegalArgumentException
- Initialize the goal from an XML element.
- Parameters:
e
- the DOM element.- Throws:
java.lang.IllegalArgumentException
- thrown on an invalid DOM structure.
printXML
public void printXML(java.io.Writer out)
throws java.io.IOException
- Print this goal as an XML fragment.
- Parameters:
out
- the output writer.- Throws:
java.io.IOException
- thrown on an I/O error.
Copyright © 2001 BEA Systems, Inc. All Rights Reserved