

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 |
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.
| alma::acs::component::dynwrapper::CastorUnmarshalMapper::CastorUnmarshalMapper | ( | Object | delegate, | |
| Logger | logger | |||
| ) | [inline] |
Constructor for CastorUnmarshalMapper.
| delegate |
| boolean alma::acs::component::dynwrapper::CastorUnmarshalMapper::canTranslate | ( | Class<?> | oldObjClass, | |
| Class<?> | newObjClass, | |||
| ComponentInvocationHandler | invHandler | |||
| ) | [inline, virtual] |
Implements alma::acs::component::dynwrapper::TypeMapper.
References alma::acs::component::dynwrapper::TypeMapper::m_logger, and alma::acs::component::dynwrapper::TypeMapper::m_verbose.
| public<T> Object alma::acs::component::dynwrapper::CastorUnmarshalMapper::translate | ( | Object | oldObject, | |
| T | 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.
Implements alma::acs::component::dynwrapper::TypeMapper.
References alma::xmlentity::XmlEntityStruct::entityTypeName, and alma::xmlentity::XmlEntityStruct::xmlString.
1.6.2