jpl.mipl.mdms.FileService.komodo.messaging.msg
Class MessageUtils
java.lang.Object
jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageUtils
public class MessageUtils
- extends Object
Purpose:
Message utililies of convenience methods for creating message types.
Copyright 2005, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledge. 2005.
============================================================================
Modification History :
----------------------
Date Who What
----------------------------------------------------------------------------
06/16/2005 Nick Initial Release
============================================================================
- Version:
- $Id: MessageUtils.java,v 1.5 2006/08/19 02:57:00 ntt Exp $
- Author:
- Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageUtils
public MessageUtils()
getOpcode
public static String getOpcode(MessageType mesg)
- Returns the opcode of parameter message if found within tree.
Otherwise, returns null.
- Parameters:
mesg
- MessageType instance
- Returns:
- Opcode of mesg if found, null otherwise
getFileInfo
public static FileType getFileInfo(MessageType mesg)
- Returns the FileType message node that contains all of the
file information iff found within tree. Otherwise, returns null.
- Parameters:
mesg
- MessageType instance
- Returns:
- FileType child of mesg if found, null otherwise