|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Associated Event'.
The AssociatedEvent type allows for associated events to be grouped. It allows for identifying associated events their association engines. The associationEngine may be the reference to the application that created the association.
The following features are supported:
EventPackage.getAssociatedEvent()
Method Summary | |
---|---|
void |
addResolvedEvent(java.lang.String globalInstanceId)
Adds a Common Base Event reference to the array of resolved events. |
void |
clearResolvedEvents()
Removes all Common Base Event references in the array of resolved events. |
java.lang.String |
getAssociationEngine()
Returns the value of the 'Association Engine' attribute. |
AssociationEngine |
getAssociationEngineInfo()
Returns the value of the 'Association Engine Info' containment reference. |
java.lang.String |
getResolvedEvents()
Returns the value of the 'Resolved Events' attribute. |
java.lang.String[] |
getResolvedEventsAsArray()
Returns the value of the 'Resolved Events' attribute. |
void |
init()
Resets the object's properties to their initial (e.g. null) state. |
void |
removeResolvedEvent(java.lang.String globalInstanceId)
Removes a named Common Base Event reference in the array of resolved events. |
void |
setAssociationEngine(java.lang.String value)
Sets the value of the ' Association Engine ' attribute.
|
void |
setAssociationEngineInfo(AssociationEngine value)
Sets the value of the ' Association Engine Info ' containment reference.
|
void |
setAssociationEngineInfo(java.lang.String associationEngineName,
java.lang.String associationEngineType,
java.lang.String associationEngineId)
Helper method for creating and setting the association engine information for this object. |
void |
setResolvedEvents(java.lang.String value)
Sets the value of the ' Resolved Events ' attribute.
|
void |
setResolvedEventsAsArray(java.lang.String[] value)
Sets the value of the ' Resolved Events ' attribute.
|
void |
validate()
Checks whether the contents of this object conforms to the CBE specification. |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public void addResolvedEvent(java.lang.String globalInstanceId)
globalInstanceId
- The new Common Base Event globalInstanceId.CommonBaseEvent
public void clearResolvedEvents()
CommonBaseEvent
public void removeResolvedEvent(java.lang.String globalInstanceId)
globalInstanceId
- The removed Common Base Event globalInstanceId.CommonBaseEvent
public java.lang.String getAssociationEngine()
Returns the value of the 'Association Engine' attribute.
setAssociationEngine(String)
,
EventPackage.getAssociatedEvent_AssociationEngine()
public void setAssociationEngine(java.lang.String value)
Sets the value of the 'Association Engine
' attribute.
Reference to the AssocationEngine that created this AssociatedEvent. The associationEngine and associationEnginInfo properties are mutually exclusive. One of these properties must be defined. If this attribute is set, the 'Association Engine Info' attribute should not be set.
value
- the new value of the 'Association Engine' attribute.
java.lang.IllegalStateException
- if the 'Association Engine Info'
attribute is currently set.
getAssociationEngine()
public java.lang.String getResolvedEvents()
Returns the value of the 'Resolved Events' attribute.
The returned string follows the IDREFS type as stated in the CBE and defined in the XML Schema specification, which is a space-separated list of IDREF strings.
setResolvedEvents(String)
,
EventPackage.getAssociatedEvent_ResolvedEvents()
public java.lang.String[] getResolvedEventsAsArray()
Returns the value of the 'Resolved Events' attribute.
The returned string follows the IDREFS type as stated in the CBE and defined in the XML Schema specification. In this case it will be an array of IDREF strings. If there are no resolved events then an empty array will be returned.
setResolvedEvents(String)
,
setResolvedEventsAsArray(String[])
,
getResolvedEvents()
,
EventPackage.getAssociatedEvent_ResolvedEvents()
public void setResolvedEvents(java.lang.String value)
Sets the value of the 'Resolved Events
' attribute.
This is an array of globalInstanceIds corresponding to the events that are associated with this event.
This is a required property, an array with at least one element.
The parameter should follow the IDREFS type as stated in the CBE and defined in the XML Schema specification, which is a space-separated list of IDREF strings.
value
- the new value of the 'Resolved Events' attribute.getResolvedEvents()
,
validate()
public void setResolvedEventsAsArray(java.lang.String[] value)
Sets the value of the 'Resolved Events
' attribute.
The parameter should follow the IDREFS type as stated in the CBE and defined in the XML Schema specification. In this case it will be an array of IDREF strings.
This method does not validate the parameter, which is left to separate
calls to the validate
method.
value
- the new value of the 'Resolved Events' attribute.setResolvedEvents(String)
,
getResolvedEvents()
,
getResolvedEventsAsArray()
,
validate()
public AssociationEngine getAssociationEngineInfo()
Returns the value of the 'Association Engine Info' containment reference.
setAssociationEngineInfo(AssociationEngine)
,
EventPackage.getAssociatedEvent_AssociationEngineInfo()
public void setAssociationEngineInfo(AssociationEngine value)
Sets the value of the 'Association Engine Info
' containment reference.
Identifies the application that establishes association among related or associated events. In addition, it provides properties to describe the type of the association.
The associationEngine and associationEnginInfo properties are mutually exclusive. One of these properties must be defined.
value
- the new value of the 'Association Engine Info' containment reference.
java.lang.IllegalStateException
- if the 'Association Engine'
attribute is currently set.
getAssociationEngineInfo()
public void setAssociationEngineInfo(java.lang.String associationEngineName, java.lang.String associationEngineType, java.lang.String associationEngineId)
Helper method for creating and setting the association engine information for this object.
It creates an AssociationEngine
object and sets it in
the respective field of this object.
associationEngineName
- name for the association engine.associationEngineType
- type for the association engine.associationEngineId
- identifier for the association engine.public void validate() throws ValidationException
Checks whether the contents of this object conforms to the CBE specification.
ValidationException
- if the object does not follow the CBE specification.public void init()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |