com.bea.campaign.model
Class CampaignModel.ScenarioLink

java.lang.Object
  extended by com.bea.p13n.model.Model
      extended by com.bea.campaign.model.CampaignModel.ScenarioLink
All Implemented Interfaces
Serializable, Cloneable
Enclosing class:
CampaignModel

public class CampaignModel.ScenarioLink
extends Model

An object representing a link to a scenario model. These will be the children of CampaignModels from xml parsed out of the Datasync repository.

See Also
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.bea.p13n.model.Model
Model.ChangeEvent, Model.ChangeListener, Model.ChangeSupport, Model.Debug
 
Field Summary
 
Fields inherited from class com.bea.p13n.model.Model
childrenModels, docModel, parentModel, roChildrenModels
 
Constructor Summary
CampaignModel.ScenarioLink(String scenarioUri)
          Constructor from scenario-link.
CampaignModel.ScenarioLink(String schemaUri, String instanceUri, String instanceId)
          Construtor from data-link.
 
Method Summary
 Model copy()
          Make a copy of the ScenarioLink.
 boolean equals(Object o)
           
 String getInstanceId()
          Get the instance id of the scenario in the scenario.
 String getInstanceUri()
          Get the scenario instance uri.
 String getSchemaUri()
          The scenario namespace uri.
 int hashCode()
           
 boolean isDataLink()
          Was this scenario link a data-link?
 
Methods inherited from class com.bea.p13n.model.Model
addChangeListener, addChild, addChild, childAdded, childRemoved, clone, doubleEquals, equals, getChildren, getDebug, getDebug, getDocument, getParent, longEquals, preRemove, propertyChanged, removeChangeListener, removeChild, removeChild, removeEmpties, setDocument, setParent
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CampaignModel.ScenarioLink

public CampaignModel.ScenarioLink(String schemaUri,
                                  String instanceUri,
                                  String instanceId)
Construtor from data-link.

Parameters
schemaUri - the scenario namespace uri.
instanceUri - the scenario instance uri (generally the datasync uri).
instanceId - the scenario id (generally originally the data:id of scenario).

CampaignModel.ScenarioLink

public CampaignModel.ScenarioLink(String scenarioUri)
Constructor from scenario-link.

Parameters
scenarioUri - the scenario uri (generally the datasync uri).
Method Detail

copy

public Model copy()
Make a copy of the ScenarioLink.

Specified by:
copy in class Model

getSchemaUri

public String getSchemaUri()
The scenario namespace uri.


getInstanceUri

public String getInstanceUri()
Get the scenario instance uri. If the campaign was loaded from a datasync repository, this will correspond to the datasync uri of the scenario.


getInstanceId

public String getInstanceId()
Get the instance id of the scenario in the scenario. This will correspond to the data:id attribute of the scenario in the campaign, prior to it be cleaved and replaced with a data-link.


isDataLink

public boolean isDataLink()
Was this scenario link a data-link?


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.