|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.campaign.AdCountGoal
public class AdCountGoal
A goal based upon ad counts.
Field Summary | |
---|---|
protected Collection |
adPaths
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(String id)
Deprecated Use addAdPath(path) instead. |
void |
addAdPath(String path)
Add an ad path. |
Collection |
getAdIds()
Deprecated Use getAdPaths() instead. |
Collection |
getAdPaths()
Get the ad paths. |
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(Element e)
Initialize this goal from an XML element. |
void |
printXML(Writer writer)
Print out this goal as an XML element. |
void |
setCountType(short t)
Set the campaign count type. |
void |
setCountType(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(String l)
Set the boolean logic. |
void |
setType(short t)
Set the campaign count type. |
void |
setType(String t)
Set the campaign count type. |
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 Collection adPaths
Constructor Detail |
---|
public AdCountGoal()
Method Detail |
---|
public short getLogic()
public void setLogic(short l)
l
- AND or OR.public void setLogic(String l)
l
- "and" or "or".public short getType()
public void setType(short t)
t
- LOCAL or GLOBAL.public void setType(String t)
t
- LOCAL or GLOBAL.public short getCountType()
public void setCountType(short t)
t
- IMPRESSION or CLICK_THRU.public void setCountType(String t)
t
- IMPRESSION or CLICK_THRU.public long getGoalCount()
public void setGoalCount(long count)
public Collection getAdIds()
public void addAdId(String id)
public Collection getAdPaths()
public void addAdPath(String path)
public boolean hasBeenMet(CampaignService service, Campaign campaign)
hasBeenMet
in interface Goal
service
- the CampaignService to use.campaign
- the Campaign to check under.
public void init(Element e) throws IllegalArgumentException
Consult the campaign.xsd XML Schema file for the structure of the Ad Count Goal XML.
init
in interface Goal
e
- the element.
IllegalArgumentException
- thrown on invalid XML.public void printXML(Writer writer)
printXML
in interface Goal
writer
- the output writer.public String toString()
toString
in class Object
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |