org.scribble.protocol.util
Class InteractionUtil.InitialInteractionVisitor

java.lang.Object
  extended by org.scribble.protocol.model.DefaultVisitor
      extended by org.scribble.protocol.util.InteractionUtil.InitialInteractionVisitor
All Implemented Interfaces:
Visitor
Enclosing class:
InteractionUtil

public static class InteractionUtil.InitialInteractionVisitor
extends DefaultVisitor

This class identifies the initial interaction.


Constructor Summary
InteractionUtil.InitialInteractionVisitor(List<ModelObject> list)
          This is the constructor.
 
Method Summary
 void accept(Interaction elem)
          This method visits an interaction component.
 void accept(Run elem)
          This method indicates the start of a run construct.
 void end(Block elem)
          This method indicates the end of a block.
 void end(Choice elem)
          This method indicates the end of a choice.
 boolean start(Block elem)
          This method indicates the start of a block.
 boolean start(Choice elem)
          This method indicates the start of a choice.
 boolean start(Protocol elem)
          This method indicates the start of a protocol.
 
Methods inherited from class org.scribble.protocol.model.DefaultVisitor
accept, accept, accept, accept, accept, accept, accept, accept, end, end, end, end, end, end, end, end, end, setDefaultGroupReturn, start, start, start, start, start, start, start, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionUtil.InitialInteractionVisitor

public InteractionUtil.InitialInteractionVisitor(List<ModelObject> list)
This is the constructor.

Parameters:
list - The list to contain the interactions
Method Detail

start

public boolean start(Protocol elem)
Description copied from class: DefaultVisitor
This method indicates the start of a protocol.

Specified by:
start in interface Visitor
Overrides:
start in class DefaultVisitor
Parameters:
elem - The protocol
Returns:
Whether to process the contents

start

public boolean start(Choice elem)
Description copied from class: DefaultVisitor
This method indicates the start of a choice.

Specified by:
start in interface Visitor
Overrides:
start in class DefaultVisitor
Parameters:
elem - The choice
Returns:
Whether to process the contents

end

public void end(Choice elem)
Description copied from class: DefaultVisitor
This method indicates the end of a choice.

Specified by:
end in interface Visitor
Overrides:
end in class DefaultVisitor
Parameters:
elem - The choice

start

public boolean start(Block elem)
Description copied from class: DefaultVisitor
This method indicates the start of a block.

Specified by:
start in interface Visitor
Overrides:
start in class DefaultVisitor
Parameters:
elem - The block
Returns:
Whether to process the contents

end

public void end(Block elem)
Description copied from class: DefaultVisitor
This method indicates the end of a block.

Specified by:
end in interface Visitor
Overrides:
end in class DefaultVisitor
Parameters:
elem - The block

accept

public void accept(Interaction elem)
Description copied from class: DefaultVisitor
This method visits an interaction component.

Specified by:
accept in interface Visitor
Overrides:
accept in class DefaultVisitor
Parameters:
elem - The interaction

accept

public void accept(Run elem)
Description copied from class: DefaultVisitor
This method indicates the start of a run construct.

Specified by:
accept in interface Visitor
Overrides:
accept in class DefaultVisitor
Parameters:
elem - The run


Copyright © 2008-Present Scribble.org. All Rights Reserved.