jpl.mipl.mdms.FileService.komodo.messaging.msg
Class AgentMsgType

java.lang.Object
  extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
      extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
          extended by jpl.mipl.mdms.FileService.komodo.messaging.msg.AgentMsgType
All Implemented Interfaces:
MessageType

public class AgentMsgType
extends ComplexType

Purpose: Agent message for non-file operations.

   Copyright 2005, California Institute of Technology.
   ALL RIGHTS RESERVED.
   U.S. Government Sponsorship acknowledge. 2005.
   
 ============================================================================
 Modification History :
 ----------------------

 Date              Who              What
 ----------------------------------------------------------------------------
 06/14/2005        Nick             Initial Release
 ============================================================================
 

Version:
$Id: AgentMsgType.java,v 1.6 2006/08/19 02:57:00 ntt Exp $
Author:
Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)

Field Summary
static String ATTR_OPCODE
           
static String ATTR_REQUESTER
           
static String CHILD_CONNECTIONS
           
static String CHILD_MAX_CONNS
           
static String CHILD_MESSAGE
           
static String ELEMENT_NAME
           
 
Fields inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
_children
 
Fields inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
_attributes, _documentFactory, _name
 
Constructor Summary
AgentMsgType()
           
 
Method Summary
 SimpleType connections()
           
 String[] getAttributeNames()
           
 String[] getChildrenNames()
           
protected  boolean isRequired(String childName)
          Method tests if a child message type is required to form a legal message.
 SimpleType maxConnections()
           
 SimpleType message()
           
 String opcode()
           
 void parseChildren(org.dom4j.Element element)
           
 String requester()
           
 
Methods inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.ComplexType
getAttribute, getChild, getType, setAttribute, setChild, toXml
 
Methods inherited from class jpl.mipl.mdms.FileService.komodo.messaging.msg.MessageBase
getName, parse, parseAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
See Also:
Constant Field Values

CHILD_CONNECTIONS

public static final String CHILD_CONNECTIONS
See Also:
Constant Field Values

CHILD_MAX_CONNS

public static final String CHILD_MAX_CONNS
See Also:
Constant Field Values

CHILD_MESSAGE

public static final String CHILD_MESSAGE
See Also:
Constant Field Values

ATTR_OPCODE

public static final String ATTR_OPCODE
See Also:
Constant Field Values

ATTR_REQUESTER

public static final String ATTR_REQUESTER
See Also:
Constant Field Values
Constructor Detail

AgentMsgType

public AgentMsgType()
Method Detail

getChildrenNames

public String[] getChildrenNames()
Overrides:
getChildrenNames in class ComplexType

getAttributeNames

public String[] getAttributeNames()
Overrides:
getAttributeNames in class MessageBase

connections

public SimpleType connections()

maxConnections

public SimpleType maxConnections()

message

public SimpleType message()

parseChildren

public void parseChildren(org.dom4j.Element element)
                   throws Exception
Overrides:
parseChildren in class MessageBase
Throws:
Exception

isRequired

protected boolean isRequired(String childName)
Description copied from class: ComplexType
Method tests if a child message type is required to form a legal message.

Overrides:
isRequired in class ComplexType
Parameters:
childName - Name to which child message is bound
Returns:
True if child is required, false otherwise.

opcode

public String opcode()

requester

public String requester()