|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.commerce.campaign.AdCountGoal
A goal based upon ad counts.
Field Summary | |
protected java.util.Collection |
adIds
The list of ad ids. |
static short |
AND
Constant for AND boolean logic. |
static short |
CLICK_THRU
Constant for click-thru counts. |
protected short |
countType
The impression or click-thru count type. |
static short |
GLOBAL
Constant for global counts. |
protected long |
goalCount
The goal's count. |
static short |
IMPRESSION
Constant for impression counts. |
static short |
LOCAL
Constant for campaign-local counts. |
protected short |
logic
The boolean logic. |
static short |
OR
Constant for OR boolean logic. |
protected short |
type
The local or global count type. |
Constructor Summary | |
AdCountGoal()
|
Method Summary | |
void |
addAdId(java.lang.String id)
Add an ad id. |
java.util.Collection |
getAdIds()
Get the ad ids. |
short |
getCountType()
Get the count type. |
long |
getGoalCount()
Get the goal's count. |
short |
getLogic()
Return the boolean logic of the goal |
short |
getType()
Get the campaign count type. |
boolean |
hasBeenMet(CampaignService service,
Campaign campaign)
Determine if this goal has been met. |
void |
init(org.w3c.dom.Element e)
Initialize this goal from an XML element. |
void |
printXML(java.io.Writer writer)
Print out this goal as an XML element. |
void |
setCountType(short t)
Set the campaign count type. |
void |
setCountType(java.lang.String t)
Set the campaign count type. |
void |
setGoalCount(long count)
Set the goal's count. |
void |
setLogic(short l)
Set the boolean logic. |
void |
setLogic(java.lang.String l)
Set the boolean logic. |
void |
setType(short t)
Set the campaign count type. |
void |
setType(java.lang.String t)
Set the campaign count type. |
java.lang.String |
toString()
Get a string representation of this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short AND
public static final short OR
public static final short IMPRESSION
public static final short CLICK_THRU
public static final short LOCAL
public static final short GLOBAL
protected short logic
protected short type
protected short countType
protected long goalCount
protected java.util.Collection adIds
Constructor Detail |
public AdCountGoal()
Method Detail |
public short getLogic()
public void setLogic(short l)
l
- AND or OR.public void setLogic(java.lang.String l)
l
- "and" or "or".public short getType()
public void setType(short t)
t
- LOCAL or GLOBAL.public void setType(java.lang.String t)
t
- LOCAL or GLOBAL.public short getCountType()
public void setCountType(short t)
t
- IMPRESSION or CLICK_THRU.public void setCountType(java.lang.String t)
t
- IMPRESSION or CLICK_THRU.public long getGoalCount()
public void setGoalCount(long count)
public java.util.Collection getAdIds()
public void addAdId(java.lang.String id)
public boolean hasBeenMet(CampaignService service, Campaign campaign)
hasBeenMet
in interface Goal
com.bea.commerce.campaign.Goal
service
- the CampaignService to use.campaign
- the Campaign to check under.java.lang.Exception
- thrown on an error.public void init(org.w3c.dom.Element e) throws java.lang.IllegalArgumentException
Consult the campaign.xsd XML Schema file for the structure of the Ad Count Goal XML.
init
in interface Goal
e
- the element.java.lang.IllegalArgumentException
- thrown on invalid XML.public void printXML(java.io.Writer writer)
printXML
in interface Goal
com.bea.commerce.campaign.Goal
out
- the output writer.java.io.IOException
- thrown on an I/O error.public java.lang.String toString()
toString
in class java.lang.Object
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |