raccoon.tibco.tibrv.badhnati.ae
Class MessageToJava

java.lang.Object
  extended by raccoon.tibco.tibrv.badhnati.ae.AbsParser
      extended by raccoon.tibco.tibrv.badhnati.ae.MessageToJava

public class MessageToJava
extends AbsParser

Converts a valid IMessage instance into a java bean. The IMessage instance must be a valid TIB/Rendezvous message in the AE v3.0 format.

Since:
Raccoon v0.7
Version:
$Id: MessageToJava.java,v 1.3 2003/07/01 17:42:14 crouvrais Exp $
Author:
Cedric ROUVRAIS

Field Summary
 
Fields inherited from class raccoon.tibco.tibrv.badhnati.ae.AbsParser
mAnalyzer, mFactory, mLog, mRepoGenerator, mUtils
 
Constructor Summary
MessageToJava()
           
 
Method Summary
 java.util.Hashtable extractPrefixList(IMessage pTibrvMsg)
          Extracts the prefix list contained in a TibrvMsg.
 boolean isInvokeAdder()
          Should this parser invoke the adder instead of the setter for collection methods.
 java.lang.Object marshal(IMessage pAeRaccoonBean)
          Entry point for converting a TibrvMsg to data bean instance.
 void setInvokeAdder(boolean pInvokeAdder)
          Defines the mutator preference method for collections.
 
Methods inherited from class raccoon.tibco.tibrv.badhnati.ae.AbsParser
getAnalyzer, getFactory, getLog, getRepoGenerator, getUtils, setAnalyzer, setFactory, setLog, setRepoGenerator, setUtils
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageToJava

public MessageToJava()
Method Detail

isInvokeAdder

public boolean isInvokeAdder()
Should this parser invoke the adder instead of the setter for collection methods.

Returns:
true if the adder will be invoked rather than the setter.

setInvokeAdder

public void setInvokeAdder(boolean pInvokeAdder)
Defines the mutator preference method for collections.

Parameters:
pInvokeAdder - should the adder be invoked in preference to the setter.

marshal

public java.lang.Object marshal(IMessage pAeRaccoonBean)
                         throws RaccoonException
Entry point for converting a TibrvMsg to data bean instance.

Parameters:
pAeRaccoonBean - the TibrvMsg instance that complies to the Raccoon specification
Returns:
the corresponding data bean instance
Throws:
RaccoonException - if the message/data bean isn't compliant, or if an internal component during the process of introspecting the TIB/Rendezvous message.

extractPrefixList

public java.util.Hashtable extractPrefixList(IMessage pTibrvMsg)
                                      throws RaccoonException
Extracts the prefix list contained in a TibrvMsg.

The aim of this method is to extract all the referenced packages contained within a TIB/Rendezvous message that is ActiveEnterprise compliant.

Currently this is valid for the Active Enterprise v3.0, which is also use by the TIB/Adapter SDK v4.0

Parameters:
pTibrvMsg - the message received from the TIB
Returns:
a hashtable of PrefixElement elements indexed by their id, the default id is Integer(0)
Throws:
RaccoonException - if the underlying TIB/Rendezvous librairies fail or if the Raccoon Repository generator fires an exception.


Copyright null null. All Rights Reserved.