alma::acs::entityutil::EntityTFinder Class Reference

Collaboration diagram for alma::acs::entityutil::EntityTFinder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 EntityTFinder (Logger logger)
Method getEntityTMethod (Class entityClass) throws EntityException
EntityT extractEntityT (Object entityObj) throws EntityException
void setVerbose (boolean verbose)

Private Attributes

Logger m_logger
boolean m_verbose = false

Detailed Description

Takes the binding object that represents an (xml) entity object, and finds the child element of type alma.entities.commonentity.EntityT. This element contains administrational information like id, schema version etc. and is required in the xml schema in order for the object to be an ACS entity object.

Author:
hsommer May 6, 2003 5:31:11 PM

Constructor & Destructor Documentation

alma::acs::entityutil::EntityTFinder::EntityTFinder ( Logger  logger  )  [inline]

References m_logger.


Member Function Documentation

EntityT alma::acs::entityutil::EntityTFinder::extractEntityT ( Object  entityObj  )  throws EntityException [inline]

Extracts the EntityT child of entityObj. Implementation uses getEntityTMethod.

Parameters:
entityObj the entity object, e.g. an alma.xmljbind.test.schedblock.SchedBlock.
Returns:
the administrational data of type EntityT, possibly null.
Exceptions:
EntityException if there is no method returning an EntityT assignable object, or if the invocation of that method fails.

References getEntityTMethod(), m_logger, and m_verbose.

Referenced by alma::acs::entityutil::EntityDeserializer::deserializeEntity(), alma::acs::entityutil::EntitySerializer::serializeEntity(), and alma::acs::component::dynwrapper::CastorMarshalMapper::translate().

Method alma::acs::entityutil::EntityTFinder::getEntityTMethod ( Class  entityClass  )  throws EntityException [inline]

Only finds the method that can return the EntityT object. Uses introspection.

Generally, the users are expected to not call this method, but use extractEntityT(Object) instead.

Parameters:
entityClass the class of the entity object (e.g. alma.xmljbind.test.schedblock.SchedBlock.class)
Returns:
the method of entityClass which returns the EntityT object.
Exceptions:
EntityException if no such method can be found.

References m_logger, and m_verbose.

Referenced by alma::acs::component::dynwrapper::CastorMarshalMapper::canTranslate(), and extractEntityT().

void alma::acs::entityutil::EntityTFinder::setVerbose ( boolean  verbose  )  [inline]

Member Data Documentation


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

Generated by  doxygen 1.6.2