org.apache.taglibs.rdc.scxml.model
Class TransitionTarget

java.lang.Object
  extended byorg.apache.taglibs.rdc.scxml.model.TransitionTarget
All Implemented Interfaces:
Observable
Direct Known Subclasses:
History, Initial, Parallel, State

public abstract class TransitionTarget
extends java.lang.Object
implements Observable

An abstract base class for elements in SCXML that can serve as a <target> for a <transition>, such as State or Parallel.

Author:
Rahul Akolkar, Jaroslav Gergic

Constructor Summary
TransitionTarget()
          Constructor
 
Method Summary
 void addListener(SCXMLListener lst)
          Register a listener to this document root
 java.lang.String getId()
          Get the identifier for this transition target (may be null).
 NotificationRegistry getNotificationRegistry()
          Get the notification registry.
 OnEntry getOnEntry()
          Get the onentry property.
 OnExit getOnExit()
          Get the onexit property.
 TransitionTarget getParent()
          Get the parent TransitionTarget
 State getParentState()
          Get the parent State
 void removeListener(SCXMLListener lst)
          Deregister a listener from this document root
 void setId(java.lang.String id)
          Set the identifier for this transition target
 void setNotificationRegistry(NotificationRegistry reg)
          Supply this TransitionTarget object a handle to the notification registry.
 void setOnEntry(OnEntry onentry)
          Set the onentry property.
 void setOnExit(OnExit onexit)
          Set the onexit property.
 void setParent(TransitionTarget parent)
          Set the parent TransitionTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransitionTarget

public TransitionTarget()
Constructor

Method Detail

addListener

public void addListener(SCXMLListener lst)
Register a listener to this document root

Specified by:
addListener in interface Observable
Parameters:
lst - The SCXMLListener to add

removeListener

public void removeListener(SCXMLListener lst)
Deregister a listener from this document root

Specified by:
removeListener in interface Observable
Parameters:
lst - The SCXMLListener to remove

setNotificationRegistry

public void setNotificationRegistry(NotificationRegistry reg)
Supply this TransitionTarget object a handle to the notification registry. Called by the Digester after instantiation.

Parameters:
reg - The notification registry

getNotificationRegistry

public NotificationRegistry getNotificationRegistry()
Get the notification registry.

Returns:
The notification registry.

getId

public java.lang.String getId()
Get the identifier for this transition target (may be null).

Returns:
Returns the id.

setId

public void setId(java.lang.String id)
Set the identifier for this transition target

Parameters:
id - The id to set.

getOnEntry

public OnEntry getOnEntry()
Get the onentry property.

Returns:
Returns the onEntry.

setOnEntry

public void setOnEntry(OnEntry onentry)
Set the onentry property.


getOnExit

public OnExit getOnExit()
Get the onexit property.

Returns:
Returns the onExit.

setOnExit

public void setOnExit(OnExit onexit)
Set the onexit property.


getParent

public TransitionTarget getParent()
Get the parent TransitionTarget

Returns:
Returns the parent state (null if parent is <scxml> element)

setParent

public void setParent(TransitionTarget parent)
Set the parent TransitionTarget

Parameters:
parent - The parent state to set

getParentState

public State getParentState()
Get the parent State

Returns:
The parent State


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.