Public Member Functions

alma.acs.entityutil.EntityTFinder Class Reference

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)

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  ) 

Member Function Documentation

EntityT alma.acs.entityutil.EntityTFinder.extractEntityT ( Object  entityObj  )  throws EntityException

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 alma.acs.entityutil.EntityTFinder.getEntityTMethod().

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

Method alma.acs.entityutil.EntityTFinder.getEntityTMethod ( Class  entityClass  )  throws EntityException

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.

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

void alma.acs.entityutil.EntityTFinder.setVerbose ( boolean  verbose  ) 

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