Public Member Functions | Package Functions

alma.acs.component.dynwrapper.CastorUnmarshalMapper Class Reference

Inheritance diagram for alma.acs.component.dynwrapper.CastorUnmarshalMapper:
alma.acs.component.dynwrapper.TypeMapper

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 
)

Constructor for CastorUnmarshalMapper.

Parameters:
delegate 

Member Function Documentation

public<T> Object alma.acs.component.dynwrapper.CastorUnmarshalMapper.translate ( Object  oldObject,
T  newObjectTemplate,
Class< T newObjectClass,
ComponentInvocationHandler  invHandler 
) throws DynWrapperException [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 org.exolab.castor.xml.Unmarshaller.setValidation(), org.exolab.castor.xml.Unmarshaller.setWhitespacePreserve(), and org.exolab.castor.xml.Unmarshaller.unmarshal().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties