|
Copyright © 2000, 2009, 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.p13n.model.Model com.bea.p13n.model.XmlObjectModel com.bea.campaign.model.CampaignModel
public class CampaignModel
A model representing a campaign. Campaigns will have as children a set that consists of ScenarioLinks and/or ScenarioModels.
Nested Class Summary | |
---|---|
class |
CampaignModel.ScenarioLink
An object representing a link to a scenario model. |
Nested classes/interfaces inherited from class com.bea.p13n.model.Model |
---|
Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug |
Field Summary | |
---|---|
static String |
RULE_TYPE
Rule type for campaign rules. |
Fields inherited from class com.bea.p13n.model.XmlObjectModel |
---|
copyRootXmlObject, instanceUri, isComplete |
Fields inherited from class com.bea.p13n.model.Model |
---|
childrenModels, docModel, parentModel, roChildrenModels |
Constructor Summary | |
---|---|
CampaignModel()
Creates new, unitialized CampaignModel. |
|
CampaignModel(com.bea.campaign.schema.CampaignDocument.Campaign campaignNode)
Creates new CampaignModel from a campaign xml object. |
Method Summary | |
---|---|
ScenarioModel |
addCopyScenarioModel(ScenarioModel model)
Add a copy of the specified ScenarioModel to this campaign. |
void |
addScenarioLink(CampaignModel.ScenarioLink link)
Add a scenario-link to the campaign. |
void |
addScenarioModel(ScenarioModel model)
Add a scenario to the campaign. |
void |
clearCachedData()
Clear any cached data this is holding. |
Model |
copy()
Create a copy of this campaign. |
org.apache.xmlbeans.XmlObject |
createNewXmlObject()
Create a new, empty campaign xml object. |
boolean |
determineIsComplete()
Tell if this campaign is complete. |
com.bea.campaign.schema.CampaignDocument.Campaign |
getCampaign()
Get the underlying campaign xml object. |
String |
getDescription()
Gets the campaign's description. |
String |
getGoalDescription()
Gets the campaign's goal description. |
AdCountGoal[] |
getGoals()
Get the goals for the campaign. |
protected AdCountGoal[] |
getGoalsNoCache()
Get the goals for the campaign directly from the underlying object. |
String |
getId()
Return the id attribute of this campaign. |
String |
getName()
Gets the campaign's name. |
String |
getSponsor()
Gets the campaign's sponsor. |
Calendar |
getStartDate()
Gets the campaign's start date/time. |
Calendar |
getStopDate()
Gets the campaign's stop date/time. |
String |
getValueProposition()
Gets the campaign's value proposition. |
void |
initializeNew()
Initialize this model to be a new, empty campaign. |
boolean |
isActive()
Gets the Campaign's active attribute |
boolean |
isGoalsOrLogic()
Gets the campaign goals boolean combination logic. |
boolean |
isShutdown()
Gets the campaign's shutdown value. |
boolean |
removeScenarioLink(CampaignModel.ScenarioLink model)
Remove a scenario link from the campaign. |
boolean |
removeScenarioModel(ScenarioModel model)
Remove a scenario from the campaign. |
boolean |
removeScenarioModelOrLink(int index)
Remove the index'th scenario or scenario link from this campaign. |
void |
setActive(boolean active)
|
void |
setDescription(String desc)
Sets the campaign's description. |
void |
setGoalDescription(String desc)
Sets the campaign's goal description. |
void |
setGoals(AdCountGoal... goals)
Set the goals for the campaign. |
void |
setGoalsOrLogic(boolean logic)
Sets the campaign goals boolean combination logic. |
void |
setId(String id)
Sets the Campaign's id |
void |
setIsComplete(boolean isComplete)
Override to set on our campaign xml object. |
void |
setName(String name)
Sets the campaign's name. |
void |
setShutdown(boolean shutdown)
Sets the campaign's shutdown value. |
void |
setSponsor(String sponsor)
Sets the campaign's sponsor. |
void |
setStartDate(Calendar date)
Sets the campaign's start date/time. |
void |
setStopDate(Calendar date)
Sets the campaign's stop date/time. |
void |
setValueProposition(String value)
Sets the campaign's value proposition. |
void |
setXmlObject(org.apache.xmlbeans.XmlObject object)
Set the xmlobject for this CampaignModel. |
Methods inherited from class com.bea.p13n.model.XmlObjectModel |
---|
checkElement, childAdded, childRemoved, fixQName, getApplicationInstanceUri, getChild, getCopyXmlObject, getDocument, getLocalName, getParent, getQName, getRootXmlObject, isComplete, isNil, preRemove, propertyChanged, removeAllChildren, removeChild, setApplicationInstanceUri, setIsComplete, setParent, setRootXmlObject |
Methods inherited from class com.bea.p13n.model.Model |
---|
addChangeListener, addChild, addChild, clone, doubleEquals, equals, getChildren, getDebug, getDebug, getDocument, getParent, longEquals, removeChangeListener, removeChild, removeChild, removeEmpties, setDocument |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RULE_TYPE
Constructor Detail |
---|
public CampaignModel()
setXmlObject(org.apache.xmlbeans.XmlObject)
or initializeNew()
to initialize this
instance.
public CampaignModel(com.bea.campaign.schema.CampaignDocument.Campaign campaignNode) throws IllegalArgumentException
IllegalArgumentException
Method Detail |
---|
public void setXmlObject(org.apache.xmlbeans.XmlObject object) throws IllegalArgumentException
CampaignDocument.Campaign
. Setting the
campaign results in a rebuild of the model.
IllegalArgumentException
public com.bea.campaign.schema.CampaignDocument.Campaign getCampaign()
public void clearCachedData()
clearCachedData
in class XmlObjectModel
public Model copy()
copy
in class Model
public org.apache.xmlbeans.XmlObject createNewXmlObject()
public void initializeNew()
public String getId()
public void setId(String id)
public boolean removeScenarioModel(ScenarioModel model)
removeScenarioModelOrLink(int)
public boolean removeScenarioLink(CampaignModel.ScenarioLink model)
removeScenarioModelOrLink(int)
public boolean removeScenarioModelOrLink(int index)
public void addScenarioModel(ScenarioModel model)
id
the scenario to
make sure all scenario id's are unique.
public ScenarioModel addCopyScenarioModel(ScenarioModel model)
public void addScenarioLink(CampaignModel.ScenarioLink link)
public String getName()
public void setName(String name)
public String getSponsor()
public void setSponsor(String sponsor)
public String getDescription()
public void setDescription(String desc)
public String getGoalDescription()
public void setGoalDescription(String desc)
public String getValueProposition()
public void setValueProposition(String value)
public Calendar getStartDate()
public void setStartDate(Calendar date)
public Calendar getStopDate()
public void setStopDate(Calendar date)
public boolean isActive()
public void setActive(boolean active)
public boolean isShutdown()
public void setShutdown(boolean shutdown)
public boolean isGoalsOrLogic()
public void setGoalsOrLogic(boolean logic)
logic
- true for OR logic, false for ANDpublic AdCountGoal[] getGoals()
protected AdCountGoal[] getGoalsNoCache()
public void setGoals(AdCountGoal... goals)
public void setIsComplete(boolean isComplete)
campaign
xml object.
setIsComplete
in class XmlObjectModel
public boolean determineIsComplete()
determineIsComplete
in class XmlObjectModel
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |