alma::acs::component::dynwrapper::CastorUnmarshalMapper Class Reference

Inheritance diagram for alma::acs::component::dynwrapper::CastorUnmarshalMapper:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::component::dynwrapper::CastorUnmarshalMapper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CastorUnmarshalMapper (Object delegate, Logger logger)
boolean canTranslate (Class<?> oldObjClass, Class<?> newObjClass, ComponentInvocationHandler invHandler)

Package Functions

public< T > Object translate (Object oldObject, T newObjectTemplate, Class< T > newObjectClass, ComponentInvocationHandler invHandler) throws DynWrapperException

Detailed Description

A type mapper that takes the IDL struct used for CORBA transport of xml entity objects (XmlEntityStruct) and instantiates the correct Castor binding class from the stringified xml.

Author:
hsommer Dec 4, 2002 6:38:13 PM

Constructor & Destructor Documentation

alma::acs::component::dynwrapper::CastorUnmarshalMapper::CastorUnmarshalMapper ( Object  delegate,
Logger  logger 
) [inline]

Constructor for CastorUnmarshalMapper.

Parameters:
delegate 

Member Function Documentation

boolean alma::acs::component::dynwrapper::CastorUnmarshalMapper::canTranslate ( Class<?>  oldObjClass,
Class<?>  newObjClass,
ComponentInvocationHandler  invHandler 
) [inline, virtual]
public<T> Object alma::acs::component::dynwrapper::CastorUnmarshalMapper::translate ( Object  oldObject,
newObjectTemplate,
Class< T >  newObjectClass,
ComponentInvocationHandler  invHandler 
) throws DynWrapperException [inline, package, virtual]

Translates an XmlEntityStruct to a Castor binding object graph.

This will only happen for in-parameters (server-side) or return values (client-side), since xml entities as out or inout-parameters will be mapped to XmlEntityStructHolders instead of XmlEntityStructs. Therefore preserving object identity (parameter newObjectTemplate) is not an issue.

Returns null if the XmlEntityStruct or the contained XML is null, or if the XML string is empty or whitespace only. Throws an exception if the XML is syntactically invalid.

See also:
alma.acs.component.dynwrapper.TypeMapper::translate(java.lang.Object, java.lang.Object, java.lang.Class, alma.acs.component.dynwrapper.ComponentInvocationHandler)

Implements alma::acs::component::dynwrapper::TypeMapper.

References alma::xmlentity::XmlEntityStruct::entityTypeName, and alma::xmlentity::XmlEntityStruct::xmlString.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2