org.eclipse.mtl.engine.event
Class MTLTextGenerationEvent

java.lang.Object
  extended by org.eclipse.mtl.engine.event.MTLTextGenerationEvent

public class MTLTextGenerationEvent
extends java.lang.Object

This event will be fired when text is generated. It will hold references to the generated text, the object which triggered the generation and the Block from which it was generated.


Constructor Summary
MTLTextGenerationEvent(java.lang.String generatedText, Block block, org.eclipse.emf.ecore.EObject source)
          Instantiates a text generation event.
 
Method Summary
 Block getBlock()
          returns the originating block.
 org.eclipse.emf.ecore.EObject getSource()
          Returns the object which triggered generation of this text.
 java.lang.String getText()
          Returns the generated text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTLTextGenerationEvent

public MTLTextGenerationEvent(java.lang.String generatedText,
                              Block block,
                              org.eclipse.emf.ecore.EObject source)
Instantiates a text generation event.

Parameters:
generatedText - Text which generation triggered this event.
block - The block from which generatedText has been generated.
source - EObject which triggered the generation.
Method Detail

getText

public java.lang.String getText()
Returns the generated text.

Returns:
The generated text.

getBlock

public Block getBlock()
returns the originating block.

Returns:
The originating block.

getSource

public org.eclipse.emf.ecore.EObject getSource()
Returns the object which triggered generation of this text.

Returns:
The object which triggered generation of this text.

Copyright 2008 Obeo
All Rights Reserved.