Public Member Functions

de.fraunhofer.isst.axbench.axlang.api.IAXLangListener Interface Reference

Interface for aXLang listener. More...

List of all members.

Public Member Functions

void elementAdded (IAXLangElement owner, ReferenceKind referenceKind, Role role, IAXLangElement addedElement)
 reacts on addition of an element
void elementChanged (IAXLangElement owner, AXLangAttribute changedAttribute, String newValue, String oldValue)
 reacts on changes of an attribute of an element
void elementChanged (IAXLangElement axlElement, Object event, boolean added, Role theRole)
 Reacts on changes of an element.
void elementDeleted (IAXLangElement axlElement)
 reaction to the notification that an element has been deleted
void elementMoved (IAXLangElement axlMove, IAXLangElement axlFrom, IAXLangElement axlTo)
 Reaction if the move element was moved from one context to another.
void elementRemoved (IAXLangElement owner, ReferenceKind referenceKind, Role role, IAXLangElement removedElement)
 reacts on removal of a link to an element
void elementReplaced (IAXLangElement theReplaced, IAXLangElement theReplacement)
 reaction to the notification that an element has been replaced

Detailed Description

Interface for aXLang listener.

The listener can react to the following events:

Author:
mgrosse
ekleinod
Version:
0.9.0
Since:
0.3

Member Function Documentation

void de.fraunhofer.isst.axbench.axlang.api.IAXLangListener.elementAdded ( IAXLangElement  owner,
ReferenceKind  referenceKind,
Role  role,
IAXLangElement  addedElement 
)

reacts on addition of an element

Parameters:
owner the element to which the new element has been added
referenceKind the reference kind in which the new element has been added: ReferenceKind:CHILD or ReferenceKind.REFERENCE
role the role in which the new element has been added
addedElement the added element

Implemented in de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangListener, and de.fraunhofer.isst.axbench.eastadlinterface.util.BasicListener.

void de.fraunhofer.isst.axbench.axlang.api.IAXLangListener.elementChanged ( IAXLangElement  owner,
AXLangAttribute  changedAttribute,
String  newValue,
String  oldValue 
)

reacts on changes of an attribute of an element

Parameters:
owner the element whose attribute value has changed
changedAttribute the attribute whose value has changed
newValue the new value of the attribute
oldValue the old value of the attribute

Implemented in de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangListener, and de.fraunhofer.isst.axbench.eastadlinterface.util.BasicListener.

void de.fraunhofer.isst.axbench.axlang.api.IAXLangListener.elementChanged ( IAXLangElement  axlElement,
Object  event,
boolean  added,
Role  theRole 
)

Reacts on changes of an element.

Deprecated:
use elementAdded for added references, elementDeleted for deleted references, and elementChanged for changed attribute values instead
Parameters:
axlElement changed element

Implemented in de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangListener, and de.fraunhofer.isst.axbench.eastadlinterface.util.BasicListener.

void de.fraunhofer.isst.axbench.axlang.api.IAXLangListener.elementDeleted ( IAXLangElement  axlElement  ) 

reaction to the notification that an element has been deleted

Parameters:
deletedElement the element that sent the notification that it has been deleted

Implemented in de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangListener, and de.fraunhofer.isst.axbench.eastadlinterface.util.BasicListener.

void de.fraunhofer.isst.axbench.axlang.api.IAXLangListener.elementMoved ( IAXLangElement  axlMove,
IAXLangElement  axlFrom,
IAXLangElement  axlTo 
)

Reaction if the move element was moved from one context to another.

Parameters:
axlMove the moved element
axlFrom the element, the move element was moved from
axlTo the element, the move element was moved to

Implemented in de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangListener, and de.fraunhofer.isst.axbench.eastadlinterface.util.BasicListener.

void de.fraunhofer.isst.axbench.axlang.api.IAXLangListener.elementRemoved ( IAXLangElement  owner,
ReferenceKind  referenceKind,
Role  role,
IAXLangElement  removedElement 
)

reacts on removal of a link to an element

Parameters:
owner the element from which the old element has been removed
referenceKind the reference kind in which the element has been removed: ReferenceKind:CHILD or ReferenceKind.REFERENCE
role the role in which the element has been removed
removedElement the removed element

Implemented in de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangListener, and de.fraunhofer.isst.axbench.eastadlinterface.util.BasicListener.

void de.fraunhofer.isst.axbench.axlang.api.IAXLangListener.elementReplaced ( IAXLangElement  theReplaced,
IAXLangElement  theReplacement 
)

reaction to the notification that an element has been replaced

Parameters:
theReplaced the element that sent the notification that it has been replaced
theReplacement the element that replaces the above element

Implemented in de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangListener, and de.fraunhofer.isst.axbench.eastadlinterface.util.BasicListener.