com.prowidesoftware.swift.model
Class SequenceNode

java.lang.Object
  extended by com.prowidesoftware.swift.model.SequenceNode

public class SequenceNode
extends java.lang.Object

Node that identifies a sequence inside a message. Messages may define an arbitrary amount of sequences and nested subsequences. These structures are modeled here as a tree.

Since:
6.3

Method Summary
 SequenceNode addChild(java.lang.String name)
          Adds a sequence to this node
 java.lang.String getName()
          get the name of this sequence
 SequenceNode getParent()
           
static SequenceNode newRootNode()
          Creates a root node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
get the name of this sequence


addChild

public SequenceNode addChild(java.lang.String name)
Adds a sequence to this node

Parameters:
name - the name of the sequence to add
Returns:
the newly created sequence

newRootNode

public static SequenceNode newRootNode()
Creates a root node. this must be the main entry point of all sequences


getParent

public SequenceNode getParent()