|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.campaign.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 |
protected Collection adPaths
public static final short AND
public static final short CLICK_THRU
protected short countType
public static final short GLOBAL
protected long goalCount
public static final short IMPRESSION
public static final short LOCAL
protected short logic
public static final short OR
protected short type
Constructor Detail |
public AdCountGoal()
Method Detail |
public void addAdId(String id)
public void addAdPath(String path)
public Collection getAdIds()
public Collection getAdPaths()
public short getCountType()
public long getGoalCount()
public short getLogic()
public short getType()
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 void setCountType(short t)
t
- IMPRESSION or CLICK_THRU.public void setCountType(String t)
t
- IMPRESSION or CLICK_THRU.public void setGoalCount(long count)
public void setLogic(short l)
l
- AND or OR.public void setLogic(String l)
l
- "and" or "or".public void setType(short t)
t
- LOCAL or GLOBAL.public void setType(String t)
t
- LOCAL or GLOBAL.public String toString()
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |