Actuator
Class XMLMessageActuator

java.lang.Object
  extended by Actuator.Actuator
      extended by Actuator.XMLMessageActuator
All Implemented Interfaces:
IMessageCompose, IMetaOperations, IParseOperations

public class XMLMessageActuator
extends Actuator
implements IMessageCompose, IParseOperations, IMetaOperations

Author:
Paul

Field Summary
 
Fields inherited from class Actuator.Actuator
DSLContent
 
Constructor Summary
XMLMessageActuator(java.lang.String fName)
           
XMLMessageActuator(java.lang.String File, IParseOperations pOperations)
           
 
Method Summary
 void composeAttributeTag(java.lang.String tagName, java.lang.StringBuilder result, AbstractMessage msg)
           
 java.lang.String ComposeField(java.lang.StringBuilder msg, PacketField fieldCompose, java.lang.String Type)
           
 byte[] MessageCompose(AbstractMessage Message)
          Takes an object describing the message and converts it into a stream of bytes that can be sent as a network message.
 
Methods inherited from class Actuator.Actuator
addFunction, addParseOperation, composeTypedValue, decode, getConstantValue, getFunctionResult, getFunctionResult, getTextTypedValue, getTypedValue, inspectFunctions, inspectParseOperations, removeFunction, removeParseOperation, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ParsingFramework.IParseOperations
composeTypedValue, decode, getConstantValue, getFunctionResult, getFunctionResult, getTextTypedValue, getTypedValue, toByteArray
 
Methods inherited from interface ParsingFramework.IMetaOperations
addFunction, addParseOperation, inspectFunctions, inspectParseOperations, removeFunction, removeParseOperation
 

Constructor Detail

XMLMessageActuator

public XMLMessageActuator(java.lang.String File,
                          IParseOperations pOperations)

XMLMessageActuator

public XMLMessageActuator(java.lang.String fName)
Method Detail

ComposeField

public java.lang.String ComposeField(java.lang.StringBuilder msg,
                                     PacketField fieldCompose,
                                     java.lang.String Type)

composeAttributeTag

public void composeAttributeTag(java.lang.String tagName,
                                java.lang.StringBuilder result,
                                AbstractMessage msg)

MessageCompose

public byte[] MessageCompose(AbstractMessage Message)
Description copied from interface: IMessageCompose
Takes an object describing the message and converts it into a stream of bytes that can be sent as a network message.

Specified by:
MessageCompose in interface IMessageCompose
Parameters:
Message - The object describing the data to fill the message
Returns:
A byte array with the network message