|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.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)
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.
e
- the element.public void printXML(java.io.Writer writer)
public java.lang.String toString()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |