

Public Member Functions | |
| CastorMarshalMapper (Object delegate, Logger logger) | |
| boolean | canTranslate (Class<?> oldObjClass, Class<?> newObjClass, ComponentInvocationHandler invHandler) |
| Object | translate (Object oldObject, Object newObjectTemplate, Class newObjectClass, ComponentInvocationHandler invHandler) throws DynWrapperException |
Private Attributes | |
| EntityTFinder | m_entityTFinder |
A type mapper that can marshal a Castor generated entity object to the IDL struct used for CORBA transport (XmlEntityStruct).
| alma::acs::component::dynwrapper::CastorMarshalMapper::CastorMarshalMapper | ( | Object | delegate, | |
| Logger | logger | |||
| ) | [inline] |
References m_entityTFinder, alma::acs::component::dynwrapper::TypeMapper::m_verbose, and alma::acs::entityutil::EntityTFinder::setVerbose().
| boolean alma::acs::component::dynwrapper::CastorMarshalMapper::canTranslate | ( | Class<?> | oldObjClass, | |
| Class<?> | newObjClass, | |||
| ComponentInvocationHandler | invHandler | |||
| ) | [inline, virtual] |
True if oldObjClass is a Castor generated entity class that has a child of type EntityT, and if newObjClass is the XmlEntityStruct class.
Implements alma::acs::component::dynwrapper::TypeMapper.
References alma::acs::entityutil::EntityTFinder::getEntityTMethod(), m_entityTFinder, alma::acs::component::dynwrapper::TypeMapper::m_logger, and alma::acs::component::dynwrapper::TypeMapper::m_verbose.
| Object alma::acs::component::dynwrapper::CastorMarshalMapper::translate | ( | Object | oldObject, | |
| Object | newObjectTemplate, | |||
| Class | newObjectClass, | |||
| ComponentInvocationHandler | invHandler | |||
| ) | throws DynWrapperException [inline] |
Converts a Castor generated entity object to the marshalled representation as an XmlEntityStruct.
References alma::xmlentity::XmlEntityStruct::entityId, alma::xmlentity::XmlEntityStruct::entityTypeName, alma::acs::entityutil::EntityTFinder::extractEntityT(), m_entityTFinder, alma::acs::component::dynwrapper::TypeMapper::m_logger, alma::acs::component::dynwrapper::TypeMapper::m_verbose, alma::xmlentity::XmlEntityStruct::schemaVersion, and alma::xmlentity::XmlEntityStruct::xmlString.
Referenced by canTranslate(), CastorMarshalMapper(), and translate().
1.6.2