Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator Class Reference

Inheritance diagram for alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator:

Inheritance graph
[legend]
Collaboration diagram for alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

ComponentStates componentState ()
String name ()
XmlEntityStruct createObsProposal ()
int dumbMethod (String somevalue)
XmlEntityStruct[] getAllSchedBlocks ()
void addNewSchedBlocks (XmlEntityStruct[] newSchedBlocks)
XmlEntityStruct getBestSchedBlock ()
void xmlInOutMethod (XmlEntityStruct opsPropIn, XmlEntityStructHolder schedBlockOut)
ObsProjectTree getEntireTreeInAStruct ()
String sayHello ()
void exceptionMethod () throws XmlComponentErrorEx

Package Functions

 IFTranslator (XmlComponentJ componentImpl, XmlComponentOperations defaultTranslator, Logger logger)

Private Attributes

boolean m_useDefaultTranslator = true
XmlComponentJ m_componentImpl
XmlComponentOperations m_defaultTranslator
EntitySerializer m_entSer
Logger m_ifTransLogger

Detailed Description

Interface translator class that presents serialized XML toward the container, but presents the corresponding Java binding objects toward the component implementation.

XmlComponentHelper does not really need to provide such a translator class at all, since the container can do all necessary XML (de-)serializations to mediate between the CORBA interface XmlComponentOperations and XmlComponentJ transparently.

Nontheless we want to illustrate the use of the _getInterfaceTranslator method. Even if the container can perform the translation between the various XML method parameters and return types, we still might want to be in full control of this for selected component interface methods.

In the method implementations of IFTranslator, the private instance variable m_useDefaultTranslator controls whether the translation should be delegated to the container (represented by the m_defaultTranslator member object), or if it should be carried out by hand (using the methods marshalEntity and unmarshalEntity). For a real application, we would of course have more fine-grained control on the method level, and likely implement either automatic or manual parameter translation, but not both to choose from. This is done here only for demo purposes.


Constructor & Destructor Documentation

alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::IFTranslator XmlComponentJ  componentImpl,
XmlComponentOperations  defaultTranslator,
Logger  logger
[inline, package]
 


Member Function Documentation

void alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::addNewSchedBlocks XmlEntityStruct[]  newSchedBlocks  )  [inline]
 

See also:
alma.demo.XmlComponentOperations::addNewSchedBlocks(alma.xmlentity.XmlEntityStruct[])

ComponentStates alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::componentState  )  [inline]
 

Implements alma::ACS::ACSComponentOperations.

XmlEntityStruct alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::createObsProposal  )  [inline]
 

See also:
alma.demo.XmlComponentOperations::createObsProposal()

Implements alma::demo::XmlComponentOperations.

int alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::dumbMethod String  somevalue  )  [inline]
 

See also:
alma.demo.XmlComponentOperations::dumbMethod(java.lang.String)

void alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::exceptionMethod  )  throws XmlComponentErrorEx [inline]
 

Implements alma::demo::XmlComponentOperations.

XmlEntityStruct [] alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::getAllSchedBlocks  )  [inline]
 

See also:
alma.demo.XmlComponentOperations::getAllSchedBlocks()

Implements alma::demo::XmlComponentOperations.

XmlEntityStruct alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::getBestSchedBlock  )  [inline]
 

See also:
alma.demo.XmlComponentOperations::getBestSchedBlock()

Implements alma::demo::XmlComponentOperations.

ObsProjectTree alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::getEntireTreeInAStruct  )  [inline]
 

See also:
alma.demo.XmlComponentOperations::getEntireTreeInAStruct()

Implements alma::demo::XmlComponentOperations.

String alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::name  )  [inline]
 

Implements alma::ACS::ACSComponentOperations.

String alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::sayHello  )  [inline]
 

See also:
alma.demo.XmlComponentOperations::sayHello()

Implements alma::demo::XmlComponentOperations.

void alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::xmlInOutMethod XmlEntityStruct  opsPropIn,
XmlEntityStructHolder  schedBlockOut
[inline]
 

See also:
alma.demo.XmlComponentOperations::xmlInOutMethod(alma.xmlentity.XmlEntityStruct, alma.xmlentity.XmlEntityStructHolder)


Member Data Documentation

XmlComponentJ alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::m_componentImpl [private]
 

XmlComponentOperations alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::m_defaultTranslator [private]
 

EntitySerializer alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::m_entSer [private]
 

Logger alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::m_ifTransLogger [private]
 

boolean alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::m_useDefaultTranslator = true [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:04:05 2009 for ACS Java API by doxygen 1.3.8