gov.nasa.arc.brahms.vm.api.common
Class DefaultStatementOrganizer

java.lang.Object
  extended by gov.nasa.arc.brahms.vm.api.common.DefaultStatementOrganizer
All Implemented Interfaces:
IStatementOrganizer

public class DefaultStatementOrganizer
extends java.lang.Object
implements IStatementOrganizer

The DefaultStatementOrganizer organizes the statements into an array without changing the order.

Version:
$Revision: 1.1 $ $Date: 2007/10/10 14:03:02 $ $Author: rvhoof $
Author:
Ron van Hoof

Field Summary
static DefaultStatementOrganizer SINGLETON
          Singleton for the DefaultStatementOrganizer
 
Constructor Summary
DefaultStatementOrganizer()
           
 
Method Summary
 IStatement[] organize(java.util.Enumeration statements)
          Organizes the specified enumeration of statements and returns the organized set of statements.
 IStatement[] organize(IStatement[] statements)
          Organizes the specified array of statements and returns the organized set of statements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final DefaultStatementOrganizer SINGLETON
Singleton for the DefaultStatementOrganizer

Constructor Detail

DefaultStatementOrganizer

public DefaultStatementOrganizer()
Method Detail

organize

public IStatement[] organize(java.util.Enumeration statements)
                      throws ExternalException
Organizes the specified enumeration of statements and returns the organized set of statements.

Specified by:
organize in interface IStatementOrganizer
Parameters:
statements - the Enumeration of IStatement to be organized
Returns:
IStatement[] the organized statements
Throws:
ExternalException - if an internal error occurs

organize

public IStatement[] organize(IStatement[] statements)
                      throws ExternalException
Organizes the specified array of statements and returns the organized set of statements.

Specified by:
organize in interface IStatementOrganizer
Parameters:
statements - the IStatement array to be organized
Returns:
IStatement[] the organized statements
Throws:
ExternalException - if an internal error occurs


Copyright © 1997-2012 All Rights Reserved.